Skip to content

Commit 94129e2

Browse files
committed
CI: Bump tested pandoc integration from v2 to v3
1 parent 49e07b2 commit 94129e2

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/ci.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,18 @@ jobs:
3535
pip install flake8 coverage mypy types-Markdown
3636
sudo apt update && sudo apt-get install \
3737
texlive-xetex lmodern texlive-fonts-recommended # test_pdf_pandoc
38-
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
38+
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
3939
4040
- run: find -name '*.md' | xargs .github/lint-markdown.sh
4141
- run: flake8 pdoc setup.py
4242
- run: mypy -p pdoc
4343
- run: time coverage run -m unittest -v pdoc.test
4444
- run: coverage report
4545
- run: PDOC_TEST_PANDOC=1 time python -m unittest -v pdoc.test.CliTest.test_pdf_pandoc
46+
- uses: actions/upload-artifact@v3
47+
with:
48+
name: Pdoc Documentation.pdf
49+
path: pdoc.pdf
4650

4751
docs:
4852
runs-on: ubuntu-latest

pdoc/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ def docfilter(obj, _filters=args.filter.strip().split(',')):
593593
pandoc --metadata=title:"MyProject Documentation" \\
594594
--from=markdown+abbreviations+tex_math_single_backslash \\
595595
--pdf-engine=xelatex --variable=mainfont:"DejaVu Sans" \\
596-
--toc --toc-depth=4 --output=pdf.pdf pdf.md\
596+
--toc --toc-depth=4 --output=pdoc.pdf pdf.md\
597597
'''
598598

599599

pdoc/test/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def test_pdf_pandoc(self):
417417
run('pdoc', pdf=None)
418418
f.write(stdout.getvalue())
419419
subprocess.run(pdoc.cli._PANDOC_COMMAND, shell=True, check=True)
420-
self.assertTrue(os.path.exists('pdf.pdf'))
420+
self.assertTrue(os.path.exists('pdoc.pdf'))
421421

422422
def test_config(self):
423423
with run_html(EXAMPLE_MODULE, config='link_prefix="/foobar/"'):

0 commit comments

Comments
 (0)