| 1 |
sphinx-quickstart |
| 2 |
================= |
| 3 |
|
| 4 |
Synopsis |
| 5 |
-------- |
| 6 |
|
| 7 |
**sphinx-quickstart** |
| 8 |
|
| 9 |
Description |
| 10 |
----------- |
| 11 |
|
| 12 |
:program:`sphinx-quickstart` is an interactive tool that asks some questions |
| 13 |
about your project and then generates a complete documentation directory and |
| 14 |
sample Makefile to be used with :manpage:`sphinx-build(1)`. |
| 15 |
|
| 16 |
Options |
| 17 |
------- |
| 18 |
|
| 19 |
.. program:: sphinx-quickstart |
| 20 |
|
| 21 |
.. option:: -q, --quiet |
| 22 |
|
| 23 |
Quiet mode that skips the interactive wizard for specifying options. |
| 24 |
This option requires `-p`, `-a` and `-v` options. |
| 25 |
|
| 26 |
.. option:: -h, --help, --version |
| 27 |
|
| 28 |
Display usage summary or Sphinx version. |
| 29 |
|
| 30 |
.. rubric:: Structure Options |
| 31 |
|
| 32 |
.. option:: --sep |
| 33 |
|
| 34 |
If specified, separate source and build directories. |
| 35 |
|
| 36 |
.. option:: --no-sep |
| 37 |
|
| 38 |
If specified, create build directory under source directory. |
| 39 |
|
| 40 |
.. option:: --dot=DOT |
| 41 |
|
| 42 |
Inside the root directory, two more directories will be created; |
| 43 |
"_templates" for custom HTML templates and "_static" for custom stylesheets |
| 44 |
and other static files. You can enter another prefix (such as ".") to |
| 45 |
replace the underscore. |
| 46 |
|
| 47 |
.. rubric:: Project Basic Options |
| 48 |
|
| 49 |
.. option:: -p PROJECT, --project=PROJECT |
| 50 |
|
| 51 |
Project name will be set. (see :confval:`project`). |
| 52 |
|
| 53 |
.. option:: -a AUTHOR, --author=AUTHOR |
| 54 |
|
| 55 |
Author names. (see :confval:`copyright`). |
| 56 |
|
| 57 |
.. option:: -v VERSION |
| 58 |
|
| 59 |
Version of project. (see :confval:`version`). |
| 60 |
|
| 61 |
.. option:: -r RELEASE, --release=RELEASE |
| 62 |
|
| 63 |
Release of project. (see :confval:`release`). |
| 64 |
|
| 65 |
.. option:: -l LANGUAGE, --language=LANGUAGE |
| 66 |
|
| 67 |
Document language. (see :confval:`language`). |
| 68 |
|
| 69 |
.. option:: --suffix=SUFFIX |
| 70 |
|
| 71 |
Source file suffix. (see :confval:`source_suffix`). |
| 72 |
|
| 73 |
.. option:: --master=MASTER |
| 74 |
|
| 75 |
Master document name. (see :confval:`root_doc`). |
| 76 |
|
| 77 |
.. rubric:: Extension Options |
| 78 |
|
| 79 |
.. option:: --ext-autodoc |
| 80 |
|
| 81 |
Enable :py:mod:`sphinx.ext.autodoc` extension. |
| 82 |
|
| 83 |
.. option:: --ext-doctest |
| 84 |
|
| 85 |
Enable `sphinx.ext.doctest` extension. |
| 86 |
|
| 87 |
.. option:: --ext-intersphinx |
| 88 |
|
| 89 |
Enable `sphinx.ext.intersphinx` extension. |
| 90 |
|
| 91 |
.. option:: --ext-todo |
| 92 |
|
| 93 |
Enable `sphinx.ext.todo` extension. |
| 94 |
|
| 95 |
.. option:: --ext-coverage |
| 96 |
|
| 97 |
Enable `sphinx.ext.coverage` extension. |
| 98 |
|
| 99 |
.. option:: --ext-imgmath |
| 100 |
|
| 101 |
Enable `sphinx.ext.imgmath` extension. |
| 102 |
|
| 103 |
.. option:: --ext-mathjax |
| 104 |
|
| 105 |
Enable `sphinx.ext.mathjax` extension. |
| 106 |
|
| 107 |
.. option:: --ext-ifconfig |
| 108 |
|
| 109 |
Enable `sphinx.ext.ifconfig` extension. |
| 110 |
|
| 111 |
.. option:: --ext-viewcode |
| 112 |
|
| 113 |
Enable `sphinx.ext.viewcode` extension. |
| 114 |
|
| 115 |
.. option:: --ext-githubpages |
| 116 |
|
| 117 |
Enable `sphinx.ext.githubpages` extension. |
| 118 |
|
| 119 |
.. option:: --extensions=EXTENSIONS |
| 120 |
|
| 121 |
Enable arbitrary extensions. |
| 122 |
|
| 123 |
.. rubric:: Makefile and Batchfile Creation Options |
| 124 |
|
| 125 |
.. option:: --use-make-mode (-m), --no-use-make-mode (-M) |
| 126 |
|
| 127 |
:file:`Makefile/make.bat` uses (or doesn't use) :ref:`make-mode <make_mode>`. |
| 128 |
Default is ``use``, which generates a more concise :file:`Makefile/make.bat`. |
| 129 |
|
| 130 |
.. versionchanged:: 1.5 |
| 131 |
make-mode is default. |
| 132 |
|
| 133 |
.. versionchanged:: 7.3 |
| 134 |
Support for disabling the make-mode will be removed in Sphinx 8. |
| 135 |
|
| 136 |
.. versionremoved:: 8.0 |
| 137 |
The :option:`!--no-use-make-mode` option. |
| 138 |
The :option:`!--use-make-mode` now has no effect. |
| 139 |
|
| 140 |
.. option:: --makefile, --no-makefile |
| 141 |
|
| 142 |
Create (or not create) makefile. |
| 143 |
|
| 144 |
.. option:: --batchfile, --no-batchfile |
| 145 |
|
| 146 |
Create (or not create) batchfile |
| 147 |
|
| 148 |
.. rubric:: Project templating |
| 149 |
|
| 150 |
.. versionadded:: 1.5 |
| 151 |
Project templating options for sphinx-quickstart |
| 152 |
|
| 153 |
.. option:: -t, --templatedir=TEMPLATEDIR |
| 154 |
|
| 155 |
Template directory for template files. You can modify the templates of |
| 156 |
sphinx project files generated by quickstart. Following Jinja2 template |
| 157 |
files are allowed: |
| 158 |
|
| 159 |
* ``root_doc.rst.jinja`` |
| 160 |
* ``conf.py.jinja`` |
| 161 |
* ``Makefile.jinja`` |
| 162 |
* ``Makefile.new.jinja`` |
| 163 |
* ``make.bat.jinja`` |
| 164 |
* ``make.bat.new.jinja`` |
| 165 |
|
| 166 |
In detail, please refer the system template files Sphinx provides. |
| 167 |
(``sphinx/templates/quickstart``) |
| 168 |
|
| 169 |
.. option:: -d NAME=VALUE |
| 170 |
|
| 171 |
Define a template variable |
| 172 |
|
| 173 |
See also |
| 174 |
-------- |
| 175 |
|
| 176 |
:manpage:`sphinx-build(1)` |