mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
fix: Ignore the build directories for sphinx builds (#1984)
If we don't ignore the build directories it will build multiple times unnecessarily when doing the live build.
This commit is contained in:
@ -14,7 +14,7 @@ help:
|
||||
.PHONY: help Makefile
|
||||
|
||||
livehtml:
|
||||
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) --open-browser
|
||||
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) --ignore "**/.*" --ignore "*build*" --open-browser
|
||||
|
||||
# Catch-all target: route all unknown targets to Sphinx using the new
|
||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||
|
||||
@ -190,3 +190,9 @@ Then you can open the site at `http://localhost:8000/`.
|
||||
|
||||
If you ever run the **melos doc-clean** or the **make clean** command, the server will need to be
|
||||
restarted, because the clean command deletes the entire `html` directory.
|
||||
|
||||
```note
|
||||
Avoid having spaces in the paths to the docs since that will keep you from
|
||||
building the project due to
|
||||
[this bug](https://github.com/ipython/ipython/pull/13765).
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user