From 8482379de7e7d914af549f9349714c2233e74ef4 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Mon, 20 May 2024 16:32:45 +0200 Subject: [PATCH] Make docs not auto rebuild --- docs/Makefile | 3 ++- noxfile.py | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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"]