Skip to content

Commit

Permalink
Make docs not auto rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed May 20, 2024
1 parent 2aa6762 commit e9d59e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
5 changes: 4 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit e9d59e2

Please sign in to comment.