diff --git a/docs/Makefile b/docs/Makefile index 08ade1ff97..23de1f7a3e 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -14,8 +14,9 @@ help: .PHONY: help Makefile +# keep --ignore entries in sync with content in noxfile.py live: - sphinx-autobuild --ignore "_build/*" --ignore "tmp/*" --ignore "_static/hub-*.json" -b dirhtml -n . _build/dirhtml + sphinx-autobuild --ignore "*/_build/*" --ignore "*/tmp/*" --ignore "*/*.json" --ignore "*/*.csv" -b dirhtml -n . _build/dirhtml # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). diff --git a/noxfile.py b/noxfile.py index 8b1ecb8938..a3b9ca9cbe 100644 --- a/noxfile.py +++ b/noxfile.py @@ -26,13 +26,16 @@ def docs(session): session.posargs.pop(session.posargs.index("live")) # Add folders to ignore + # keep this in sync with Makefile AUTOBUILD_IGNORE_DIRS = [ "_build", "tmp", ] # Add files to ignore + # keep this in sync with Makefile AUTOBUILD_IGNORE_FILES = [ - "_static/*.json", + "*.json", + "*.csv", ] cmd = ["sphinx-autobuild"]