Skip to content

Commit

Permalink
Avoid an inifinite refresh loop when saving the documentation
Browse files Browse the repository at this point in the history
With make run, listening to any file changes in the destination
directory, the script generating the index files will rerun everytime,
creating a new event, rerunning the generation and so on.
Exclude then any index files under those known subdirectories.
  • Loading branch information
didrocks committed Nov 16, 2023
1 parent 00c1e31 commit 88103ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ woke-install:
install: $(VENVDIR) woke-install

run: install
. $(VENV); sphinx-autobuild -b dirhtml "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
. $(VENV); sphinx-autobuild --re-ignore 'reference/policies/.*/index.md' -b dirhtml "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)

# Doesn't depend on $(BUILDDIR) to rebuild properly at every run.
html: install
Expand Down

0 comments on commit 88103ff

Please sign in to comment.