Skip to content
Snippets Groups Projects
Commit 53dfb1e8 authored by Joseph Weston's avatar Joseph Weston
Browse files

convert SVG to PDF when using latex builder

parent 213e0880
No related branches found
No related tags found
No related merge requests found
......@@ -239,7 +239,8 @@ build documentation:
- build:latest
stage: test
script:
- pip install git+https://github.com/jupyter-widgets/jupyter-sphinx
- apt-get update && apt-get install -y librsvg2-bin # for converting svgs to pdfs
- pip install git+https://github.com/jupyter-widgets/jupyter-sphinx sphinxcontrib-svg2pdfconverter
- python -m ipykernel install --user --name kwant-latest
- 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:
......@@ -253,7 +254,8 @@ build PDF documentation:
- build:latest
stage: test
script:
- pip install git+https://github.com/jupyter-widgets/jupyter-sphinx
- apt-get update && apt-get install -y librsvg2-bin # for converting svgs to pdfs
- pip install git+https://github.com/jupyter-widgets/jupyter-sphinx sphinxcontrib-svg2pdfconverter
- python -m ipykernel install --user --name kwant-latest
- make -C doc latex SPHINXOPTS='-n -W -D jupyter_execute_default_kernel=kwant-latest'
- cd doc/build/latex
......
......@@ -38,7 +38,8 @@ sys.path.insert(0, os.path.abspath('../sphinxext'))
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.autosummary',
'sphinx.ext.todo', 'sphinx.ext.mathjax', 'numpydoc',
'kwantdoc', 'sphinx.ext.linkcode', 'jupyter_sphinx.execute']
'kwantdoc', 'sphinx.ext.linkcode', 'jupyter_sphinx.execute',
'sphinxcontrib.rsvgconverter']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['../templates']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment