diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2026-07-02 13:22:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-02 13:22:12 +0200 |
| commit | 0f9e30e3f9229015df8e9df2ea63a338a81b931a (patch) | |
| tree | 8c3c3f1baddda9a0f0b75f9d763b4e2120bae233 /utils/lib.sh | |
| parent | 640f88c9bd58e58e98a73068d44d69bcc85e31f6 (diff) | |
[fix] docs.live (sphinx-autobuild) - watch .rst, .py, .yml and .conf (#6348)
So far, any change to any file triggered a new build, and changes to the
doc-strings (in ./searx) were not taken into account. With this patch, a build
is only triggered when files with the specified file extensions change.
The watch has been expanded to ./searx so that changes to doc strings also
trigger a new build.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/lib.sh')
| -rwxr-xr-x | utils/lib.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/lib.sh b/utils/lib.sh index 4ae50c31f..3ab0e12d8 100755 --- a/utils/lib.sh +++ b/utils/lib.sh @@ -776,8 +776,11 @@ docs.live() { pyenv.install docs.prebuild # shellcheck disable=SC2086 - PATH="${PY_ENV_BIN}:${PATH}" pyenv.cmd sphinx-autobuild \ - ${SPHINX_VERBOSE} ${SPHINXOPTS} --open-browser --host 0.0.0.0 \ + SPHINX_AUTOBUILD_DEBUG=1 PATH="${PY_ENV_BIN}:${PATH}" pyenv.cmd sphinx-autobuild \ + ${SPHINX_VERBOSE} ${SPHINXOPTS} \ + --watch ./searx \ + --re-ignore '(^|/)\.#|^(?!.*\.(rst|py|yml)$).*'\ + --open-browser --host 0.0.0.0 \ -b html -c ./docs -d "${DOCS_BUILD}/.doctrees" ./docs "${DOCS_DIST}" dump_return $? } |
