Skip to content

Commit

Permalink
make the pdf title appear correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Laguna1989 committed Aug 28, 2024
1 parent 8a68a3f commit 63aa9a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/chameleon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,17 @@ jobs:
sudo apt-get install pandoc weasyprint texlive-latex-base texlive-fonts-recommended texlive-extra-utils texlive-latex-extra fonts-roboto
sudo pip install pandoc-secnos
# setting the metadata title changes the title displayed by pdf-viewers, but introduces a separate heading (which is undesired). To remove that, set the title variable to null
- name: Build Fancy Version
run: |
cd ${{github.workspace}}/chameleon/manual
pandoc *.md -o chameleon_manual.pdf --filter pandoc-secnos --pdf-engine=weasyprint --css ${{github.workspace}}/common/style_dark.css
pandoc *.md -o chameleon_manual.pdf --filter pandoc-secnos --pdf-engine=weasyprint --css ${{github.workspace}}/common/style_dark.css --metadata title="Chameleon" -V "title:"
# setting the metadata title changes the title displayed by pdf-viewers, but introduces a separate heading (which is undesired). To remove that, set the title variable to null
- name: Build Print Version
run: |
cd ${{github.workspace}}/chameleon/manual
pandoc *.md -o chameleon_manual_print.pdf --filter pandoc-secnos --pdf-engine=weasyprint --css ${{github.workspace}}/common/style_print.css
pandoc *.md -o chameleon_manual_print.pdf --filter pandoc-secnos --pdf-engine=weasyprint --css ${{github.workspace}}/common/style_print.css --metadata title="Chameleon" -V "title:"
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 63aa9a3

Please sign in to comment.