SPHINX-AUTOBUILD(1)
π SPHINX-AUTOBUILD π
okay bestie so this is sphinx-autobuild, a lil tool from the User Commands corner of your system, and honestly? it's giving "your docs rebuild themselves while you vibe". you point it at a Sphinx docs folder, it watches for changes, and boom π₯ β fresh build, live server, no manual re-running. no cap.
πΈ NAME πΈ
sphinx-autobuild β autobuild a Sphinx directory when a change is detected π¦
like literally that's it. change a file, it notices, it rebuilds. the way that it just watches you edit is lowkey iconic.
β¨ DESCRIPTION β¨
here's how you summon it:
usage: sphinx-autobuild [OPTIONS] SOURCEDIR OUTPUTDIR [FILENAMES...]
slay. now let's break it down piece by piece π
π positional arguments
SOURCE_DIRβ the path to your documentation source files. this is where your docs actually live, bestie πOUTPUT_DIRβ the path to your output directory. this is where the built stuff gets dumped β¨filenamesβ (optional) a specific list of files you wanna rebuild. β οΈ heads up: this gets ignored if you pass--write-all. so don't be out here specifying filenames and--write-allat the same time expecting filenames to matter, because they will NOT π
π options
-h,--helpβ shows this help message and dips out. the classic.--versionβ shows the program's version number and exits. go off, version info π«
π§ general options
--builder,-bBUILDERβ which builder to use. default is'html'π--jobs,-jNβ run in parallel with N processes, when possible. and if you pass'auto'? it just uses the number of CPU cores. multitasking queen π₯--write-all,-aβ write all files. by default it only writes new and changed files, so this is the "do the whole thing" button π--fresh-env,-Eβ don't use a saved environment, always read all files. no recycling, we're starting fresh π§Όβ¨
π path options
--doctree-dir,-dPATHβ directory for doctree and environment files. default:OUTPUT_DIR/.doctreesπ--conf-dir,-cPATHβ directory for the configuration file (conf.py). default:SOURCE_DIRποΈ
π«Ά build configuration options
--isolated,-Cβ use no configuration file at all, only use settings from-Doptions. solo mode, main character energy β¨--define,-Dsetting=valueβ override a setting in the configuration file. speak it into existence π«--html-define,-Aname=valueβ pass a value into HTML templates π--tag,-tTAGβ define tag: include"only"blocks with TAG π·οΈ--nitpicky,-nβ nitpicky mode: warn about all missing references. it's in its detail-oriented era and honestly? respect π
π¬ console output options
--verbose,-vβ increase verbosity. can be repeated, so stack it like it's a combo π£οΈ--quiet,-qβ no output on stdout, just warnings on stderr. minimal, mysterious π€«--silent,-Qβ no output at all. not even warnings. total silence, the void, nothing πΆ--colorβ do emit colored output. default: auto-detect π--no-color,-Nβ do not emit colored output. default: auto-detect π«π
β οΈ warning control options
bestie this whole section is about warnings, errors, and how dramatic you want the tool to be about them. choose your fighter.
--warning-file,-wFILEβ write warnings (and errors) to the given file π--fail-on-warning,-Wβ turn warnings into errors. harsh but fair π--show-traceback,-Tβ show full traceback on exception π--pdb,-Pβ run Pdb on exception. debugging era π--exception-on-warningβ raise an exception on warnings. no warnings allowed, periodt π«
πΈ autobuild options
--portPORTβ port to serve documentation on.0means find and use a free port πͺ--hostHOSTβ hostname to serve documentation on π‘--re-ignoreRE_IGNOREβ regular expression for files to ignore, when watching for changes π--ignoreIGNOREβ glob expression for files to ignore, when watching for changes π--no-initialβ skip the initial build. no warm-up, straight to business π€--open-browserβ open the browser after building documentation π--delayDELAYβ how long to wait before opening the browser β³--watchDIRβ additional directories to watch π--pre-buildCOMMANDβ additional command(s) to run prior to building the documentation πβοΈ--post-buildCOMMANDβ additional command(s) to run after building the documentation π¬
aaaand that's the whole thing, bestie π go forth and let your docs rebuild themselves. you're welcome π
mwah π this page is from sphinx-autobuild 2025.08.25, dated September 2025 β catch you in the next rebuild, love u, bye π¦β¨
π¦ where this page comes from
- fedora 43: python3-sphinx-autobuild 2025.08.25-2.fc43 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms