Implement documentation website #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build docs PDFs | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'docs/**' | |
| - '.github/workflows/build-docs-pdf.yaml' | |
| pull_request: | |
| paths: | |
| - 'docs/**' | |
| - '.github/workflows/build-docs-pdf.yaml' | |
| jobs: | |
| build-latex-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install LaTeX dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| texlive-latex-extra \ | |
| texlive-bibtex-extra \ | |
| texlive-fonts-recommended \ | |
| texlive-luatex \ | |
| latexdraw \ | |
| texlive-pictures \ | |
| ghostscript \ | |
| groff-base | |
| - name: Build user guide PDF | |
| working-directory: docs/userguide | |
| run: bash lx | |
| - name: Build technical guide PDF | |
| working-directory: docs/techguide | |
| run: bash lx | |
| - name: Upload documentation PDFs | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: docs-pdf | |
| if-no-files-found: error | |
| path: | | |
| docs/userguide/socrates_userguide.pdf | |
| docs/techguide/socrates_techguide.pdf |