Skip to content

Commit

Permalink
CI: Remove broken pdf documentation action
Browse files Browse the repository at this point in the history
  • Loading branch information
scottclowe committed Aug 19, 2021
1 parent 8c3f8ca commit 1a6b1a8
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,40 +59,3 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: "docs/_build/html/"

docs-pdf:
if: |
github.event_name == 'pull_request' ||
startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Check if README.md needs to be converted
id: check_readme
run: |
if [ ! -f "README.rst" ] && [ -f "README.md" ]; then
echo '::set-output name=convert::true';
fi
- name: Convert README.md to README.rst
if: steps.check_readme.outputs.convert == 'true'
uses: docker://pandoc/core:2.9
with:
args: >-
README.md
--from=gfm
--output=README.rst
- name: Build PDF docs
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
pre-build-command: "apt-get update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended"
build-command: "make latexpdf"

- uses: actions/upload-artifact@v2
if: startsWith(github.ref, 'refs/tags')
with:
name: Documentation
path: docs/_build/latex/*.pdf

0 comments on commit 1a6b1a8

Please sign in to comment.