Build System¶
Two equivalent build systems: Makefile and build.py.
Tool Detection¶
Both auto-detect tools in this priority:
Python:
.venv/bin/python3→python3Sphinx:
.venv/bin/sphinx-build→sphinx-buildon PATH →python3 -m sphinxInstaller:
pipx(CLI tools) →pipin.venv→pip3 --break-system-packagesSASS:
dart-sassbinary → Pythonlibsass
Run python build.py info or make info to see what’s detected.
Command Reference¶
Makefile |
build.py |
Description |
|---|---|---|
|
|
Show commands |
|
|
Show detected tools |
|
|
Create |
|
|
Install dependencies |
|
|
Compile SASS → CSS |
|
|
Minified CSS |
|
|
Watch and recompile |
|
|
Build HTML docs |
|
|
Build + minify + gzip |
|
|
Live-reload server |
|
|
Remove artifacts |
build.py supports chaining: python build.py clean css docs
pipx Integration¶
If you use pipx (common on Arch Linux), make deps / build.py deps
uses pipx install for CLI tools and pip for libraries:
make deps # pipx install sphinx; pipx install build; pip install libsass
To install the theme into the pipx-managed Sphinx:
pipx inject sphinx /path/to/manticore-sphinx-theme