Skip to content

Update build.sh #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ if [ "${table_rules}" == "yes" ]; then
extra_pandoc_options+=" --lua-filter=table-rules.lua"
fi

mkdir -p "${build_dir}/$(dirname ${input_file})"
cp "${input_file}" "${build_dir}/${input_file}"

# Hacks
Expand Down Expand Up @@ -290,6 +291,7 @@ export MERMAID_FILTER_FORMAT="pdf"

# Generate the pdf
if [ -n "${pdf_output}" ]; then
mkdir -p "$(dirname ${pdf_output})"
echo "Generating PDF Output"
# workaround to make mermaid and crossref play nice together: https://github.com/raghur/mermaid-filter/issues/39#issuecomment-1703911386
pandoc \
Expand Down Expand Up @@ -335,6 +337,7 @@ fi

# Generate the LaTeX output
if [ -n "${latex_output}" ]; then
mkdir -p "$(dirname ${latex_output})"
echo "Generating LaTeX Output"
# workaround to make mermaid and crossref play nice together: https://github.com/raghur/mermaid-filter/issues/39#issuecomment-1703911386
pandoc \
Expand Down Expand Up @@ -380,6 +383,7 @@ fi

# Generate the docx output
if [ -n "${docx_output}" ]; then
mkdir -p "$(dirname ${docx_output})"
echo "Generating DOCX Output"
# workaround to make mermaid and crossref play nice together: https://github.com/raghur/mermaid-filter/issues/39#issuecomment-1703911386
pandoc \
Expand Down Expand Up @@ -417,6 +421,7 @@ export MERMAID_FILTER_FORMAT="svg"

# Generate the html output
if [ -n "${html_output}" ]; then
mkdir -p "$(dirname ${html_output})"
echo "Generating html Output"
# workaround to make mermaid and crossref play nice together: https://github.com/raghur/mermaid-filter/issues/39#issuecomment-1703911386
pandoc \
Expand Down