Skip to content

Commit

Permalink
doc: simplify doc build CI and local doc config (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
finger563 authored Mar 27, 2024
1 parent 4bfe42a commit b1d1b19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build_and_publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ jobs:
sudo apt-get install doxygen
pip install -r doc/requirements.txt
- name: Checkout main branch
continue-on-error: true
run: git checkout --track origin/main

- name: Build Documentation
run: |
cd doc
Expand Down
12 changes: 2 additions & 10 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,5 @@
# pip install --user -r requirements.txt
#
cairosvg

# we have to pin these versions or we get a "this project needs sphinx v5.0" error
# see https://github.com/sphinx-doc/sphinx/issues/11890
sphinxcontrib-applehelp==1.0.4
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5

esp-docs==1.4.0
sphinx==4.5.0
esp-docs==1.8.0
1 change: 1 addition & 0 deletions docker_build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ export PYTHONPATH=$PYTHONPATH:/project/doc
git config --global --add safe.directory /project
# build the docs
build-docs -t esp32 -l en --project-path /project/ --source-dir /project/doc/ --doxyfile_dir /project/doc/
mkdir -p /project/docs
# copy the docs to the docs folder
cp -rf /project/_build/en/esp32/html/* /project/docs/.

0 comments on commit b1d1b19

Please sign in to comment.