SPHINX-QUICKSTART(1)

✨ SPHINX-QUICKSTART ✨

okay bestie, so this is sphinx-quickstart β€” it lives in the Sphinx manual, section 1, and it's literally the cutest little onboarding wizard for your docs πŸ’–


🌸 NAME 🌸

sphinx-quickstart β€” the Sphinx documentation template generator πŸŽ€ (yes she makes you an entire docs directory, no cap)


πŸ¦‹ SYNOPSIS πŸ¦‹

sphinx-quickstart

πŸ’… DESCRIPTION πŸ’…

So sphinx-quickstart is an interactive tool, right? It asks you a bunch of questions about your project, and then β€” slay β€” it generates a whole complete documentation directory plus a sample Makefile for you to use with sphinx-build(1). It's giving "personal assistant but make it a CLI". πŸ‘‘


✨ OPTIONS ✨

  • -q, --quiet β€” Quiet mode, aka skip the whole interactive wizard for specifying options. ⚠️ but heads up: this option requires -p, -a and -v options, so don't come in quiet with nothing to say, she'll be upset.
  • -h, --help, --version β€” shows you the usage summary, or the Sphinx version. iykyk 🫢

πŸŽ€ Structure Options πŸŽ€

  • --sep β€” if you specify this, source and build directories get separated. two households, both alike in dignity.
  • --no-sep β€” if you specify this, the build directory gets created under the source directory. cozy nesting vibes πŸͺΊ
  • --dot=DOT β€” inside the root directory, two more directories get created: _templates for your custom HTML templates, and _static for custom stylesheets and other static files. you can enter another prefix (like .) to replace the underscore. so _ ➑️ . if that's your thing ✨

πŸ’œ Project Basic Options πŸ’œ

  • -p PROJECT, --project=PROJECT β€” the project name gets set (see project).
  • -a AUTHOR, --author=AUTHOR β€” author names (see copyright).
  • -v VERSION β€” version of the project (see version).
  • -r RELEASE, --release=RELEASE β€” release of the project (see release).
  • -l LANGUAGE, --language=LANGUAGE β€” document language (see language).
  • --suffix=SUFFIX β€” source file suffix (see source_suffix).
  • --master=MASTER β€” master document name (see root_doc).

🌈 Extension Options 🌈

bestie these are all just "turn on the extension" buttons, no cap:

  • --ext-autodoc β€” enable the sphinx.ext.autodoc extension.
  • --ext-doctest β€” enable the sphinx.ext.doctest extension.
  • --ext-intersphinx β€” enable the sphinx.ext.intersphinx extension.
  • --ext-todo β€” enable the sphinx.ext.todo extension.
  • --ext-coverage β€” enable the sphinx.ext.coverage extension.
  • --ext-imgmath β€” enable the sphinx.ext.imgmath extension.
  • --ext-mathjax β€” enable the sphinx.ext.mathjax extension.
  • --ext-ifconfig β€” enable the sphinx.ext.ifconfig extension.
  • --ext-viewcode β€” enable the sphinx.ext.viewcode extension.
  • --ext-githubpages β€” enable the sphinx.ext.githubpages extension.
  • --extensions=EXTENSIONS β€” enable arbitrary extensions. go wild, main character ✨

πŸ“ Makefile and Batchfile Creation Options πŸ“

  • --use-make-mode (-m), --no-use-make-mode (-M) β€” the Makefile/make.bat uses (or doesn't use) make-mode. default is use, which generates a more concise Makefile/make.bat.
    • Changed in version 1.5: make-mode is default.
    • Changed in version 7.3: support for disabling the make-mode will be removed in Sphinx 8.
    • Removed in version 8.0: the --no-use-make-mode option. the --use-make-mode now has no effect. πŸ’€ rip.
  • --makefile, --no-makefile β€” create (or not create) makefile.
  • --batchfile, --no-batchfile β€” create (or not create) batchfile.

🧚 Project templating 🧚

Added in version 1.5: Project templating options for sphinx-quickstart ✨

  • -t, --templatedir=TEMPLATEDIR β€” template directory for template files. you can modify the templates of the sphinx project files that get generated by quickstart. these Jinja2 template files are allowed:
    • root_doc.rst.jinja
    • conf.py.jinja
    • Makefile.jinja
    • Makefile.new.jinja
    • make.bat.jinja
    • make.bat.new.jinja

for the details, please refer to the system template files Sphinx provides. (sphinx/templates/quickstart) 🫢

  • -d NAME=VALUE β€” define a template variable.

πŸ‘€ SEE ALSO πŸ‘€

sphinx-build(1)


2007-2026, the Sphinx developers


okay that's the whole page bestie, you ate πŸ’… version 9.1.0, dated Sep 15, 2026 β€” now go generate some docs and be iconic. periodt. 🌟

πŸ“¦ where this page comes from