SPHINX-AUTOBUILD(1)

πŸ“¦
version 2025.08.25 Β· 3 versions
, in fedora 43

πŸ’– 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-all at 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, -b BUILDER β€” which builder to use. default is 'html' πŸ’–
  • --jobs, -j N β€” 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, -d PATH β€” directory for doctree and environment files. default: OUTPUT_DIR/.doctrees πŸ“
  • --conf-dir, -c PATH β€” 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 -D options. solo mode, main character energy ✨
  • --define, -D setting=value β€” override a setting in the configuration file. speak it into existence πŸ’«
  • --html-define, -A name=value β€” pass a value into HTML templates πŸŽ€
  • --tag, -t TAG β€” 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, -w FILE β€” 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

  • --port PORT β€” port to serve documentation on. 0 means find and use a free port πŸšͺ
  • --host HOST β€” hostname to serve documentation on 🏑
  • --re-ignore RE_IGNORE β€” regular expression for files to ignore, when watching for changes πŸ™ˆ
  • --ignore IGNORE β€” 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 🌐
  • --delay DELAY β€” how long to wait before opening the browser ⏳
  • --watch DIR β€” additional directories to watch πŸ‘€
  • --pre-build COMMAND β€” additional command(s) to run prior to building the documentation πŸƒβ™€οΈ
  • --post-build COMMAND β€” 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