Skip to content

Commit

Permalink
CI: Bump tested pandoc integration from v2 to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
kernc committed Mar 9, 2024
1 parent 49e07b2 commit bd262e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,18 @@ jobs:
pip install flake8 coverage mypy types-Markdown
sudo apt update && sudo apt-get install \
texlive-xetex lmodern texlive-fonts-recommended # test_pdf_pandoc
wget -O/tmp/pandoc.deb https://github.com/jgm/pandoc/releases/download/2.10/pandoc-2.10-1-amd64.deb && sudo dpkg -i /tmp/pandoc.deb
wget -O/tmp/pandoc.deb https://github.com/jgm/pandoc/releases/download/3.1.12.2/pandoc-3.1.12.2-1-amd64.deb && sudo dpkg -i /tmp/pandoc.deb
- run: find -name '*.md' | xargs .github/lint-markdown.sh
- run: flake8 pdoc setup.py
- run: mypy -p pdoc
- run: time coverage run -m unittest -v pdoc.test
- run: coverage report
- run: PDOC_TEST_PANDOC=1 time python -m unittest -v pdoc.test.CliTest.test_pdf_pandoc
- uses: actions/upload-artifact@v3
with:
name: Pdoc Documentation.pdf
path: pdoc.pdf

docs:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion pdoc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def docfilter(obj, _filters=args.filter.strip().split(',')):
pandoc --metadata=title:"MyProject Documentation" \\
--from=markdown+abbreviations+tex_math_single_backslash \\
--pdf-engine=xelatex --variable=mainfont:"DejaVu Sans" \\
--toc --toc-depth=4 --output=pdf.pdf pdf.md\
--toc --toc-depth=4 --output=pdoc.pdf pdf.md\
'''


Expand Down

0 comments on commit bd262e2

Please sign in to comment.