Skip to content

Commit

Permalink
Update docs reference and improve makefile (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 authored Jul 2, 2024
1 parent a132ce6 commit c08b72a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ jobs:
- name: Build Docs
run: |
cd docs
pipenv run make html
pipenv run make html SPHINXOPTS="-W --keep-going"
3 changes: 3 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ help:

.PHONY: help Makefile

cleanall: clean
@rm source/reference/*

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
Expand Down
10 changes: 10 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,21 @@ if errorlevel 9009 (

if "%1" == "" goto help

if "%1" == "cleanall" goto cleanall

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%

:cleanall
REM This is untested, please fix if broken
%SPHINXBUILD% -M clean %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
cd %SOURCEDIR%
cd reference
del .*.
goto end

:end
popd
7 changes: 6 additions & 1 deletion docs/source/contributing/docs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,9 @@ For example,
Tips and Tricks
~~~~~~~~~~~~~~~
Sometimes Sphinx will do some weird stuff and things will stop working nicely.
In this case, a simple ``make clean`` (or ``make.bat clean`` for Windows) should do the trick.
In this case, a simple ``make cleanall`` (or ``make.bat cleanall`` for Windows) should do the trick.

.. warning::

``make.bat cleanall`` is _untested_ on Windows, be careful when using it. You can alternatively
use ``make.bat clean`` and remove the contents of ``docs/source/reference``.
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ Explore some of the technical documentation we have at our disposal!
contributing
reference_index
developers
deploying
production

0 comments on commit c08b72a

Please sign in to comment.