doc/main: add TAG make option

This splits the Sphinx tag option from SPHINXOPTS. This allows us to
specify the tag without having to remember to add -W and -t. It also
fixes not being able to specify the tag with make.bat on Windows.

While we are touching this, redundant SOURCEDIR uses are removed (main
is already the default) and the .github/workflows/publish-ide-docs.yml
script is fixed (ide directory no longer exists).
This commit is contained in:
David Lechner
2021-08-30 12:14:34 -05:00
parent 8b0f98d25b
commit 2c4685f594
7 changed files with 26 additions and 12 deletions
+1 -1
View File
@@ -40,4 +40,4 @@ jobs:
sudo apt-get update
sudo apt-get install dvisvgm preview-latex-style texlive texlive-fonts-extra texlive-latex-extra
- name: Build html docs for Pybricks Code IDE
run: poetry run make -C doc html SOURCEDIR=main SPHINXOPTS="-W -tide"
run: poetry run make -C doc html TAG=ide