Verified Commit a25a92c3 authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

CI: pregenerate font cache before building docs

parent 2ec53994
...@@ -216,6 +216,7 @@ build documentation: ...@@ -216,6 +216,7 @@ build documentation:
- build:latest - build:latest
stage: test stage: test
script: script:
- python -c 'from matplotlib import pyplot' # Pre-generate font cache
- make -C doc clean; make -C doc html SPHINXOPTS='-A website_deploy=True -n -W -D jupyter_execute_default_kernel=kwant-latest' SOURCE_LINK_TEMPLATE="$CI_PROJECT_URL"/blob/\$\$r/\$\$f - make -C doc clean; make -C doc html SPHINXOPTS='-A website_deploy=True -n -W -D jupyter_execute_default_kernel=kwant-latest' SOURCE_LINK_TEMPLATE="$CI_PROJECT_URL"/blob/\$\$r/\$\$f
artifacts: artifacts:
paths: paths:
...@@ -228,6 +229,7 @@ build PDF documentation: ...@@ -228,6 +229,7 @@ build PDF documentation:
- build:latest - build:latest
stage: test stage: test
script: script:
- python -c 'from matplotlib import pyplot' # Pre-generate font cache
- make -C doc latex SPHINXOPTS='-n -W -D jupyter_execute_default_kernel=kwant-latest' - make -C doc latex SPHINXOPTS='-n -W -D jupyter_execute_default_kernel=kwant-latest'
- cd doc/build/latex - cd doc/build/latex
- make all-pdf - make all-pdf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment