Skip to content

Commit

Permalink
Fix pdf build (#249)
Browse files Browse the repository at this point in the history
* install full texlive

* update build to checkoutv4

* run documentation on pandoc latex container to install less

* ignore command failure

* update to setup-python v5

* remove sudo

* remove apt-get install

* remove use of pandoc container

* try pandoc ubuntu...

* test

* test fix again...

* update to v4
  • Loading branch information
finger563 authored May 31, 2024
1 parent 9f15771 commit 485f067
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: 'recursive'

Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/build_and_publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ jobs:
fetch-tags: true

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install doxygen texlive
sudo apt-get install doxygen graphviz texlive-full pandoc
pip install -r doc/requirements.txt
- name: Build Documentation
Expand All @@ -38,15 +38,15 @@ jobs:
cp -r _build/en/esp32/html/* ../docs/.
# go to the latex output
cd _build/en/esp32/latex/
# build once
pdflatex -interaction=batchmode refman
# build again to make sure page numbers and refs and such work
pdflatex -interaction=batchmode refman
# build once (ignore if command fails)
pdflatex -interaction=batchmode refman || true
# build again to make sure page numbers and refs and such work (ignore if command fails)
pdflatex -interaction=batchmode refman || true
# rename refman to espp_documentation.pdf
mv refman.pdf espp_documentation.pdf
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
Expand Down

0 comments on commit 485f067

Please sign in to comment.