Skip to content

Commit c08b72a

Browse files
Update docs reference and improve makefile (#56)
1 parent a132ce6 commit c08b72a

5 files changed

Lines changed: 21 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ jobs:
8989
- name: Build Docs
9090
run: |
9191
cd docs
92-
pipenv run make html
92+
pipenv run make html SPHINXOPTS="-W --keep-going"

docs/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ help:
1414

1515
.PHONY: help Makefile
1616

17+
cleanall: clean
18+
@rm source/reference/*
19+
1720
# Catch-all target: route all unknown targets to Sphinx using the new
1821
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1922
%: Makefile

docs/make.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,21 @@ if errorlevel 9009 (
2525

2626
if "%1" == "" goto help
2727

28+
if "%1" == "cleanall" goto cleanall
29+
2830
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
2931
goto end
3032

3133
:help
3234
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
3335

36+
:cleanall
37+
REM This is untested, please fix if broken
38+
%SPHINXBUILD% -M clean %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
39+
cd %SOURCEDIR%
40+
cd reference
41+
del .*.
42+
goto end
43+
3444
:end
3545
popd

docs/source/contributing/docs.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,9 @@ For example,
6262
Tips and Tricks
6363
~~~~~~~~~~~~~~~
6464
Sometimes Sphinx will do some weird stuff and things will stop working nicely.
65-
In this case, a simple ``make clean`` (or ``make.bat clean`` for Windows) should do the trick.
65+
In this case, a simple ``make cleanall`` (or ``make.bat cleanall`` for Windows) should do the trick.
66+
67+
.. warning::
68+
69+
``make.bat cleanall`` is _untested_ on Windows, be careful when using it. You can alternatively
70+
use ``make.bat clean`` and remove the contents of ``docs/source/reference``.

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Explore some of the technical documentation we have at our disposal!
2424
contributing
2525
reference_index
2626
developers
27-
deploying
27+
production

0 commit comments

Comments
 (0)