Skip to content

Commit 485f067

Browse files
authored
Fix pdf build (#249)
* 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
1 parent 9f15771 commit 485f067

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126

127127
steps:
128128
- name: Checkout repo
129-
uses: actions/checkout@v2
129+
uses: actions/checkout@v4
130130
with:
131131
submodules: 'recursive'
132132

.github/workflows/build_and_publish_docs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
fetch-tags: true
2020

2121
- name: Set up Python
22-
uses: actions/setup-python@v3
22+
uses: actions/setup-python@v5
2323
with:
2424
python-version: "3.11"
2525

2626
- name: Install Dependencies
2727
run: |
2828
sudo apt-get update
29-
sudo apt-get install doxygen texlive
29+
sudo apt-get install doxygen graphviz texlive-full pandoc
3030
pip install -r doc/requirements.txt
3131
3232
- name: Build Documentation
@@ -38,15 +38,15 @@ jobs:
3838
cp -r _build/en/esp32/html/* ../docs/.
3939
# go to the latex output
4040
cd _build/en/esp32/latex/
41-
# build once
42-
pdflatex -interaction=batchmode refman
43-
# build again to make sure page numbers and refs and such work
44-
pdflatex -interaction=batchmode refman
41+
# build once (ignore if command fails)
42+
pdflatex -interaction=batchmode refman || true
43+
# build again to make sure page numbers and refs and such work (ignore if command fails)
44+
pdflatex -interaction=batchmode refman || true
4545
# rename refman to espp_documentation.pdf
4646
mv refman.pdf espp_documentation.pdf
4747
4848
- name: Deploy to GitHub Pages
49-
uses: peaceiris/actions-gh-pages@v3
49+
uses: peaceiris/actions-gh-pages@v4
5050
with:
5151
github_token: ${{ secrets.GITHUB_TOKEN }}
5252
publish_dir: ./docs

0 commit comments

Comments
 (0)