Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 30 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ on:
- master
- develop


jobs:
python-style-checks:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Check out repository
uses: actions/checkout@v2
Expand All @@ -36,7 +37,7 @@ jobs:

build-and-deploy-pages:
needs: python-style-checks
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Check out repository
uses: actions/checkout@v2
Expand All @@ -51,7 +52,33 @@ jobs:

- name: Install dependencies
run: |
pip install -q -r docs/requirements.txt
#pip install -q -r docs/requirements.txt
pip install docutils myst-parser Sphinx sphinx-rtd-theme

- name: Check docs for broken links
run: |
cd docs
make linkcheck

- name: Install ghostscript, its fonts and latexmk
run: |
sudo apt-get update -y
sudo apt-get install -y ghostscript \
fonts-freefont-otf \
gsfonts \
latexmk \
texlive \
texlive-latex-extra \
imagemagick

- name: Generate LaTeX code to check for errors
run: |
cd docs
make apidocs
make latex
#cd _build/latex
#latexmk -pdf -halt-on-error
make latexpdf

- name: Build API and docs
run: |
Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'sphinx.ext.napoleon',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
'sphinx.ext.imgconverter',
]

napoleon_google_docstring = False
Expand Down