mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #3918 from stephenfin/improved-man-pages
Improved man pages
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,6 +10,7 @@
|
||||
TAGS
|
||||
.tags
|
||||
.tox
|
||||
.venv
|
||||
.DS_Store
|
||||
sphinx/pycode/Grammar*pickle
|
||||
distribute-*
|
||||
|
||||
@@ -84,6 +84,8 @@ man_pages = [
|
||||
'template generator', '', 1),
|
||||
('man/sphinx-apidoc', 'sphinx-apidoc', 'Sphinx API doc generator tool',
|
||||
'', 1),
|
||||
('man/sphinx-autogen', 'sphinx-autogen', 'Generate autodoc stub pages',
|
||||
'', 1),
|
||||
]
|
||||
|
||||
texinfo_documents = [
|
||||
|
||||
@@ -9,7 +9,7 @@ Sphinx documentation contents
|
||||
|
||||
intro
|
||||
tutorial
|
||||
invocation
|
||||
man/index
|
||||
rest
|
||||
markup/index
|
||||
domains
|
||||
|
||||
@@ -125,6 +125,9 @@ text of the form::
|
||||
If the ``-o`` option is not given, the script will place the output files in the
|
||||
directories specified in the ``:toctree:`` options.
|
||||
|
||||
For more information, refer to the :doc:`sphinx-autogen documentation
|
||||
</man/sphinx-autogen>`
|
||||
|
||||
|
||||
Generating stub pages automatically
|
||||
-----------------------------------
|
||||
|
||||
@@ -1,566 +0,0 @@
|
||||
.. default-role:: any
|
||||
|
||||
.. _invocation:
|
||||
|
||||
Invocation of sphinx-quickstart
|
||||
===============================
|
||||
|
||||
The :program:`sphinx-quickstart` script generates a Sphinx documentation set.
|
||||
It is called like this:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ sphinx-quickstart [options] [projectdir]
|
||||
|
||||
where *projectdir* is the Sphinx documentation set directory in which you want
|
||||
to place. If you omit *projectdir*, files are generated into current directory
|
||||
by default.
|
||||
|
||||
The :program:`sphinx-quickstart` script has several options:
|
||||
|
||||
.. program:: sphinx-quickstart
|
||||
|
||||
.. option:: -q, --quiet
|
||||
|
||||
Quiet mode that will skips interactive wizard to specify options.
|
||||
This option requires `-p`, `-a` and `-v` options.
|
||||
|
||||
.. option:: -h, --help, --version
|
||||
|
||||
Display usage summary or Sphinx version.
|
||||
|
||||
|
||||
Structure options
|
||||
-----------------
|
||||
|
||||
.. option:: --sep
|
||||
|
||||
If specified, separate source and build directories.
|
||||
|
||||
.. option:: --dot=DOT
|
||||
|
||||
Inside the root directory, two more directories will be created;
|
||||
"_templates" for custom HTML templates and "_static" for custom stylesheets
|
||||
and other static files. You can enter another prefix (such as ".") to
|
||||
replace the underscore.
|
||||
|
||||
Project basic options
|
||||
---------------------
|
||||
|
||||
.. option:: -p PROJECT, --project=PROJECT
|
||||
|
||||
Project name will be set. (see :confval:`project`).
|
||||
|
||||
.. option:: -a AUTHOR, --author=AUTHOR
|
||||
|
||||
Author names. (see :confval:`copyright`).
|
||||
|
||||
.. option:: -v VERSION
|
||||
|
||||
Version of project. (see :confval:`version`).
|
||||
|
||||
.. option:: -r RELEASE, --release=RELEASE
|
||||
|
||||
Release of project. (see :confval:`release`).
|
||||
|
||||
.. option:: -l LANGUAGE, --language=LANGUAGE
|
||||
|
||||
Document language. (see :confval:`language`).
|
||||
|
||||
.. option:: --suffix=SUFFIX
|
||||
|
||||
Source file suffix. (see :confval:`source_suffix`).
|
||||
|
||||
.. option:: --master=MASTER
|
||||
|
||||
Master document name. (see :confval:`master_doc`).
|
||||
|
||||
.. option:: --epub
|
||||
|
||||
Use epub.
|
||||
|
||||
Extension options
|
||||
-----------------
|
||||
|
||||
.. option:: --ext-autodoc
|
||||
|
||||
Enable `sphinx.ext.autodoc` extension.
|
||||
|
||||
.. option:: --ext-doctest
|
||||
|
||||
Enable `sphinx.ext.doctest` extension.
|
||||
|
||||
.. option:: --ext-intersphinx
|
||||
|
||||
Enable `sphinx.ext.intersphinx` extension.
|
||||
|
||||
.. option:: --ext-todo
|
||||
|
||||
Enable `sphinx.ext.todo` extension.
|
||||
|
||||
.. option:: --ext-coverage
|
||||
|
||||
Enable `sphinx.ext.coverage` extension.
|
||||
|
||||
.. option:: --ext-imgmath
|
||||
|
||||
Enable `sphinx.ext.imgmath` extension.
|
||||
|
||||
.. option:: --ext-mathjax
|
||||
|
||||
Enable `sphinx.ext.mathjax` extension.
|
||||
|
||||
.. option:: --ext-ifconfig
|
||||
|
||||
Enable `sphinx.ext.ifconfig` extension.
|
||||
|
||||
.. option:: --ext-viewcode
|
||||
|
||||
Enable `sphinx.ext.viewcode` extension.
|
||||
|
||||
.. option:: --extensions=EXTENSIONS
|
||||
|
||||
Enable arbitary extensions.
|
||||
|
||||
|
||||
Makefile and Batchfile creation options
|
||||
---------------------------------------
|
||||
|
||||
.. option:: --use-make-mode, --no-use-make-mode
|
||||
|
||||
Makefile/make.bat uses (or not use) make-mode. Default is use.
|
||||
|
||||
.. versionchanged:: 1.5
|
||||
make-mode is default.
|
||||
|
||||
.. option:: --makefile, --no-makefile
|
||||
|
||||
Create (or not create) makefile.
|
||||
|
||||
.. option:: --batchfile, --no-batchfile
|
||||
|
||||
Create (or not create) batchfile
|
||||
|
||||
|
||||
.. versionadded:: 1.3
|
||||
Add various options for sphinx-quickstart invocation.
|
||||
|
||||
Project templating
|
||||
------------------
|
||||
|
||||
.. option:: -t, --templatedir=TEMPLATEDIR
|
||||
|
||||
Template directory for template files. You can modify the templates of
|
||||
sphinx project files generated by quickstart. Following Jinja2 template
|
||||
files are allowed:
|
||||
|
||||
* master_doc.rst_t
|
||||
* conf.py_t
|
||||
* Makefile_t
|
||||
* Makefile.new_t
|
||||
* make.bat_t
|
||||
* make.bat.new_t
|
||||
|
||||
In detail, please refer the system template files Sphinx provides.
|
||||
(sphinx/templates/quickstart)
|
||||
|
||||
.. option:: -d NAME=VALUE
|
||||
|
||||
Define a template variable
|
||||
|
||||
.. versionadded:: 1.5
|
||||
Project templating options for sphinx-quickstart
|
||||
|
||||
|
||||
Invocation of sphinx-build
|
||||
==========================
|
||||
|
||||
The :program:`sphinx-build` script builds a Sphinx documentation set. It is
|
||||
called like this:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ sphinx-build [options] sourcedir builddir [filenames]
|
||||
|
||||
where *sourcedir* is the :term:`source directory`, and *builddir* is the
|
||||
directory in which you want to place the built documentation. Most of the time,
|
||||
you don't need to specify any *filenames*.
|
||||
|
||||
The :program:`sphinx-build` script has several options:
|
||||
|
||||
.. program:: sphinx-build
|
||||
|
||||
.. option:: -b buildername
|
||||
|
||||
The most important option: it selects a builder. The most common builders
|
||||
are:
|
||||
|
||||
**html**
|
||||
Build HTML pages. This is the default builder.
|
||||
|
||||
**dirhtml**
|
||||
Build HTML pages, but with a single directory per document. Makes for
|
||||
prettier URLs (no ``.html``) if served from a webserver.
|
||||
|
||||
**singlehtml**
|
||||
Build a single HTML with the whole content.
|
||||
|
||||
**htmlhelp**, **qthelp**, **devhelp**, **epub**
|
||||
Build HTML files with additional information for building a documentation
|
||||
collection in one of these formats.
|
||||
|
||||
**applehelp**
|
||||
Build an Apple Help Book. Requires :program:`hiutil` and
|
||||
:program:`codesign`, which are not Open Source and presently only
|
||||
available on Mac OS X 10.6 and higher.
|
||||
|
||||
**latex**
|
||||
Build LaTeX sources that can be compiled to a PDF document using
|
||||
:program:`pdflatex`.
|
||||
|
||||
**man**
|
||||
Build manual pages in groff format for UNIX systems.
|
||||
|
||||
**texinfo**
|
||||
Build Texinfo files that can be processed into Info files using
|
||||
:program:`makeinfo`.
|
||||
|
||||
**text**
|
||||
Build plain text files.
|
||||
|
||||
**gettext**
|
||||
Build gettext-style message catalogs (``.pot`` files).
|
||||
|
||||
**doctest**
|
||||
Run all doctests in the documentation, if the :mod:`~sphinx.ext.doctest`
|
||||
extension is enabled.
|
||||
|
||||
**linkcheck**
|
||||
Check the integrity of all external links.
|
||||
|
||||
**xml**
|
||||
Build Docutils-native XML files.
|
||||
|
||||
**pseudoxml**
|
||||
Build compact pretty-printed "pseudo-XML" files displaying the
|
||||
internal structure of the intermediate document trees.
|
||||
|
||||
See :ref:`builders` for a list of all builders shipped with Sphinx.
|
||||
Extensions can add their own builders.
|
||||
|
||||
.. option:: -a
|
||||
|
||||
If given, always write all output files. The default is to only write output
|
||||
files for new and changed source files. (This may not apply to all
|
||||
builders.)
|
||||
|
||||
.. option:: -E
|
||||
|
||||
Don't use a saved :term:`environment` (the structure caching all
|
||||
cross-references), but rebuild it completely. The default is to only read
|
||||
and parse source files that are new or have changed since the last run.
|
||||
|
||||
.. option:: -t tag
|
||||
|
||||
Define the tag *tag*. This is relevant for :rst:dir:`only` directives that
|
||||
only include their content if this tag is set.
|
||||
|
||||
.. versionadded:: 0.6
|
||||
|
||||
.. option:: -d path
|
||||
|
||||
Since Sphinx has to read and parse all source files before it can write an
|
||||
output file, the parsed source files are cached as "doctree pickles".
|
||||
Normally, these files are put in a directory called :file:`.doctrees` under
|
||||
the build directory; with this option you can select a different cache
|
||||
directory (the doctrees can be shared between all builders).
|
||||
|
||||
.. option:: -j N
|
||||
|
||||
Distribute the build over *N* processes in parallel, to make building on
|
||||
multiprocessor machines more effective. Note that not all parts and not all
|
||||
builders of Sphinx can be parallelized.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
This option should be considered *experimental*.
|
||||
|
||||
.. option:: -c path
|
||||
|
||||
Don't look for the :file:`conf.py` in the source directory, but use the given
|
||||
configuration directory instead. Note that various other files and paths
|
||||
given by configuration values are expected to be relative to the
|
||||
configuration directory, so they will have to be present at this location
|
||||
too.
|
||||
|
||||
.. versionadded:: 0.3
|
||||
|
||||
.. option:: -C
|
||||
|
||||
Don't look for a configuration file; only take options via the ``-D`` option.
|
||||
|
||||
.. versionadded:: 0.5
|
||||
|
||||
.. option:: -D setting=value
|
||||
|
||||
Override a configuration value set in the :file:`conf.py` file. The value
|
||||
must be a number, string, list or dictionary value.
|
||||
|
||||
For lists, you can separate elements with a comma like this: ``-D
|
||||
html_theme_path=path1,path2``.
|
||||
|
||||
For dictionary values, supply the setting name and key like this:
|
||||
``-D latex_elements.docclass=scrartcl``.
|
||||
|
||||
For boolean values, use ``0`` or ``1`` as the value.
|
||||
|
||||
.. versionchanged:: 0.6
|
||||
The value can now be a dictionary value.
|
||||
|
||||
.. versionchanged:: 1.3
|
||||
The value can now also be a list value.
|
||||
|
||||
.. option:: -A name=value
|
||||
|
||||
Make the *name* assigned to *value* in the HTML templates.
|
||||
|
||||
.. versionadded:: 0.5
|
||||
|
||||
.. option:: -n
|
||||
|
||||
Run in nit-picky mode. Currently, this generates warnings for all missing
|
||||
references. See the config value :confval:`nitpick_ignore` for a way to
|
||||
exclude some references as "known missing".
|
||||
|
||||
.. option:: -N
|
||||
|
||||
Do not emit colored output.
|
||||
|
||||
.. option:: -v
|
||||
|
||||
Increase verbosity (loglevel). This option can be given up to three times
|
||||
to get more debug logging output. It implies :option:`-T`.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. option:: -q
|
||||
|
||||
Do not output anything on standard output, only write warnings and errors to
|
||||
standard error.
|
||||
|
||||
.. option:: -Q
|
||||
|
||||
Do not output anything on standard output, also suppress warnings. Only
|
||||
errors are written to standard error.
|
||||
|
||||
.. option:: -w file
|
||||
|
||||
Write warnings (and errors) to the given file, in addition to standard error.
|
||||
|
||||
.. option:: -W
|
||||
|
||||
Turn warnings into errors. This means that the build stops at the first
|
||||
warning and ``sphinx-build`` exits with exit status 1.
|
||||
|
||||
.. option:: -T
|
||||
|
||||
Display the full traceback when an unhandled exception occurs. Otherwise,
|
||||
only a summary is displayed and the traceback information is saved to a file
|
||||
for further analysis.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. option:: -P
|
||||
|
||||
(Useful for debugging only.) Run the Python debugger, :mod:`pdb`, if an
|
||||
unhandled exception occurs while building.
|
||||
|
||||
.. option:: -h, --help, --version
|
||||
|
||||
Display usage summary or Sphinx version.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
You can also give one or more filenames on the command line after the source and
|
||||
build directories. Sphinx will then try to build only these output files (and
|
||||
their dependencies).
|
||||
|
||||
Environment variables
|
||||
---------------------
|
||||
|
||||
The :program:`sphinx-build` refers following environment variables:
|
||||
|
||||
.. describe:: MAKE
|
||||
|
||||
A path to make command. A command name is also allowed.
|
||||
:program:`sphinx-build` uses it to invoke sub-build process on make-mode.
|
||||
|
||||
Makefile options
|
||||
----------------
|
||||
|
||||
The :file:`Makefile` and :file:`make.bat` files created by
|
||||
:program:`sphinx-quickstart` usually run :program:`sphinx-build` only with the
|
||||
:option:`-b` and :option:`-d` options. However, they support the following
|
||||
variables to customize behavior:
|
||||
|
||||
.. describe:: PAPER
|
||||
|
||||
The value for '"papersize"` key of :confval:`latex_elements`.
|
||||
|
||||
.. describe:: SPHINXBUILD
|
||||
|
||||
The command to use instead of ``sphinx-build``.
|
||||
|
||||
.. describe:: BUILDDIR
|
||||
|
||||
The build directory to use instead of the one chosen in
|
||||
:program:`sphinx-quickstart`.
|
||||
|
||||
.. describe:: SPHINXOPTS
|
||||
|
||||
Additional options for :program:`sphinx-build`.
|
||||
|
||||
.. _when-deprecation-warnings-are-displayed:
|
||||
|
||||
Deprecation Warnings
|
||||
--------------------
|
||||
|
||||
If any deprecation warning like ``RemovedInSphinxXXXWarning`` are displayed
|
||||
when building a user's document, some Sphinx extension is using deprecated
|
||||
features. In that case, please report it to author of the extension.
|
||||
|
||||
To disable the deprecation warnings, please set ``PYTHONWARNINGS=`` environment
|
||||
variable to your environment. For example:
|
||||
|
||||
* ``PYTHONWARNINGS= make html`` (Linux/Mac)
|
||||
* ``export PYTHONWARNINGS=`` and do ``make html`` (Linux/Mac)
|
||||
* ``set PYTHONWARNINGS=`` and do ``make html`` (Windows)
|
||||
* modify your Makefile/make.bat and set the environment variable
|
||||
|
||||
|
||||
.. _invocation-apidoc:
|
||||
|
||||
Invocation of sphinx-apidoc
|
||||
===========================
|
||||
|
||||
The :program:`sphinx-apidoc` generates completely automatic API documentation
|
||||
for a Python package. It is called like this:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ sphinx-apidoc [options] -o outputdir packagedir [pathnames]
|
||||
|
||||
where *packagedir* is the path to the package to document, and *outputdir* is
|
||||
the directory where the generated sources are placed. Any *pathnames* given
|
||||
are paths to be excluded ignored during generation.
|
||||
|
||||
.. warning::
|
||||
|
||||
``sphinx-apidoc`` generates reST files that use :mod:`sphinx.ext.autodoc` to
|
||||
document all found modules. If any modules have side effects on import,
|
||||
these will be executed by ``autodoc`` when ``sphinx-build`` is run.
|
||||
|
||||
If you document scripts (as opposed to library modules), make sure their main
|
||||
routine is protected by a ``if __name__ == '__main__'`` condition.
|
||||
|
||||
|
||||
The :program:`sphinx-apidoc` script has several options:
|
||||
|
||||
.. program:: sphinx-apidoc
|
||||
|
||||
.. option:: -o outputdir
|
||||
|
||||
Gives the directory in which to place the generated output.
|
||||
|
||||
.. option:: -f, --force
|
||||
|
||||
Normally, sphinx-apidoc does not overwrite any files. Use this option to
|
||||
force the overwrite of all files that it generates.
|
||||
|
||||
.. option:: -n, --dry-run
|
||||
|
||||
With this option given, no files will be written at all.
|
||||
|
||||
.. option:: -e, --separate
|
||||
|
||||
Put documentation for each module on its own page.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. option:: -P, --private
|
||||
|
||||
Include "_private" modules.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. option:: -s suffix
|
||||
|
||||
This option selects the file name suffix of output files. By default, this
|
||||
is ``rst``.
|
||||
|
||||
.. option:: -d maxdepth
|
||||
|
||||
This sets the maximum depth of the table of contents, if one is generated.
|
||||
|
||||
.. option:: -l, --follow-links
|
||||
|
||||
This option makes sphinx-apidoc follow symbolic links when recursing the
|
||||
filesystem to discover packages and modules. You may need it if you want
|
||||
to generate documentation from a source directory managed by
|
||||
`collective.recipe.omelette
|
||||
<https://pypi.python.org/pypi/collective.recipe.omelette/>`_.
|
||||
By default, symbolic links are skipped.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. option:: -T, --no-toc
|
||||
|
||||
This prevents the generation of a table-of-contents file ``modules.rst``.
|
||||
This has no effect when :option:`--full` is given.
|
||||
|
||||
.. option:: -E, --no-headings
|
||||
|
||||
Don't create headings for the module/package packages (e.g. when the
|
||||
docstrings already contain them).
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. option:: -F, --full
|
||||
|
||||
This option makes sphinx-apidoc create a full Sphinx project, using the same
|
||||
mechanism as :program:`sphinx-quickstart`. Most configuration values are set
|
||||
to default values, but you can influence the most important ones using the
|
||||
following options.
|
||||
|
||||
.. option:: --implicit-namespaces
|
||||
|
||||
By default sphinx-apidoc processes sys.path searching for modules only.
|
||||
Python 3.3 introduced :pep:`420` implicit namespaces that allow module path
|
||||
structures such as ``foo/bar/module.py`` or ``foo/bar/baz/__init__.py``
|
||||
(notice that ``bar`` and ``foo`` are namespaces, not modules).
|
||||
|
||||
Specifying this option interprets paths recursively according to PEP-0420.
|
||||
|
||||
.. option:: -M
|
||||
|
||||
This option makes sphinx-apidoc put module documentation before submodule
|
||||
documentation.
|
||||
|
||||
.. option:: -a
|
||||
|
||||
Append module_path to sys.path.
|
||||
|
||||
.. option:: -H project
|
||||
|
||||
Sets the project name to put in generated files (see :confval:`project`).
|
||||
|
||||
.. option:: -A author
|
||||
|
||||
Sets the author name(s) to put in generated files (see :confval:`copyright`).
|
||||
|
||||
.. option:: -V version
|
||||
|
||||
Sets the project version to put in generated files (see :confval:`version`).
|
||||
|
||||
.. option:: -R release
|
||||
|
||||
Sets the project release to put in generated files (see :confval:`release`).
|
||||
22
doc/man/index.rst
Normal file
22
doc/man/index.rst
Normal file
@@ -0,0 +1,22 @@
|
||||
Man Pages
|
||||
=========
|
||||
|
||||
These are the applications provided as part of Sphinx.
|
||||
|
||||
Core Applications
|
||||
-----------------
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 3
|
||||
|
||||
sphinx-quickstart
|
||||
sphinx-build
|
||||
|
||||
Additional Applications
|
||||
-----------------------
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 3
|
||||
|
||||
sphinx-apidoc
|
||||
sphinx-autogen
|
||||
@@ -1,23 +1,21 @@
|
||||
:orphan:
|
||||
|
||||
sphinx-apidoc manual page
|
||||
=========================
|
||||
sphinx-apidoc
|
||||
=============
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
**sphinx-apidoc** [*options*] -o <*outputdir*> <*sourcedir*> [*pathnames* ...]
|
||||
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
:program:`sphinx-apidoc` is a tool for automatic generation of Sphinx sources
|
||||
that, using the autodoc extension, document a whole package in the style of
|
||||
other automatic API documentation tools.
|
||||
that, using the :rst:dir:`autodoc` extension, document a whole package in the
|
||||
style of other automatic API documentation tools.
|
||||
|
||||
*sourcedir* must point to a Python package. Any *pathnames* given are paths to
|
||||
be excluded from the generation.
|
||||
*sourcedir* is the path to a Python package to document, and *outputdir* is the
|
||||
directory where the generated sources are placed. Any *pathnames* given are
|
||||
paths to be excluded from the generation.
|
||||
|
||||
.. warning::
|
||||
|
||||
@@ -28,42 +26,99 @@ be excluded from the generation.
|
||||
If you document scripts (as opposed to library modules), make sure their main
|
||||
routine is protected by a ``if __name__ == '__main__'`` condition.
|
||||
|
||||
|
||||
Options
|
||||
-------
|
||||
|
||||
-o <outputdir> Directory to place the output files. If it does not exist,
|
||||
it is created.
|
||||
-f, --force Usually, apidoc does not overwrite files, unless this option
|
||||
is given.
|
||||
-l, --follow-links Follow symbolic links.
|
||||
-n, --dry-run If given, apidoc does not create any files.
|
||||
-s <suffix> Suffix for the source files generated, default is ``rst``.
|
||||
-d <maxdepth> Maximum depth for the generated table of contents file.
|
||||
-T, --no-toc Do not create a table of contents file.
|
||||
-F, --full If given, a full Sphinx project is generated (``conf.py``,
|
||||
``Makefile`` etc.) using sphinx-quickstart.
|
||||
-e, --separate Put each module file in its own page.
|
||||
-E, --no-headings Don't create headings for the modules/packages
|
||||
-P, --private Include "_private" modules
|
||||
.. program:: sphinx-apidoc
|
||||
|
||||
These options are used with ``-F``:
|
||||
.. option:: -o <outputdir>
|
||||
|
||||
-a Append module_path to sys.path.
|
||||
-H <project> Project name to put into the configuration.
|
||||
-A <author> Author name(s) to put into the configuration.
|
||||
-V <version> Project version.
|
||||
-R <release> Project release.
|
||||
Directory to place the output files. If it does not exist, it is created.
|
||||
|
||||
.. option:: -f, --force
|
||||
|
||||
Force overwritting of any existing generated files.
|
||||
|
||||
.. option:: -l, --follow-links
|
||||
|
||||
Follow symbolic links.
|
||||
|
||||
.. option:: -n, --dry-run
|
||||
|
||||
Do not create any files.
|
||||
|
||||
.. option:: -s <suffix>
|
||||
|
||||
Suffix for the source files generated. Defaults to ``rst``.
|
||||
|
||||
.. option:: -d <maxdepth>
|
||||
|
||||
Maximum depth for the generated table of contents file.
|
||||
|
||||
.. option:: -T, --no-toc
|
||||
|
||||
Do not create a table of contents file. Ignored when :option:`--full` is
|
||||
provided.
|
||||
|
||||
.. option:: -F, --full
|
||||
|
||||
Generate a full Sphinx project (``conf.py``, ``Makefile`` etc.) using
|
||||
the same mechanism as :program:`sphinx-quickstart`.
|
||||
|
||||
.. option:: -e, --separate
|
||||
|
||||
Put documentation for each module on its own page.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. option:: -E, --no-headings
|
||||
|
||||
Do not create headings for the modules/packages. This is useful, for
|
||||
example, when docstrings already contain headings.
|
||||
|
||||
.. option:: -P, --private
|
||||
|
||||
Include "_private" modules.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. option:: --implicit-namespaces
|
||||
|
||||
By default sphinx-apidoc processes sys.path searching for modules only.
|
||||
Python 3.3 introduced :pep:`420` implicit namespaces that allow module path
|
||||
structures such as ``foo/bar/module.py`` or ``foo/bar/baz/__init__.py``
|
||||
(notice that ``bar`` and ``foo`` are namespaces, not modules).
|
||||
|
||||
Interpret paths recursively according to PEP-0420.
|
||||
|
||||
.. option:: -M
|
||||
|
||||
Put module documentation before submodule documentation.
|
||||
|
||||
These options are used when :option:`--full` is specified:
|
||||
|
||||
.. option:: -a
|
||||
|
||||
Append module_path to sys.path.
|
||||
|
||||
.. option:: -H <project>
|
||||
|
||||
Sets the project name to put in generated files (see :confval:`project`).
|
||||
|
||||
.. option:: -A <author>
|
||||
|
||||
Sets the author name(s) to put in generated files (see
|
||||
:confval:`copyright`).
|
||||
|
||||
.. option:: -V <version>
|
||||
|
||||
Sets the project version to put in generated files (see :confval:`version`).
|
||||
|
||||
.. option:: -R <release>
|
||||
|
||||
Sets the project release to put in generated files (see :confval:`release`).
|
||||
|
||||
See also
|
||||
--------
|
||||
|
||||
:manpage:`sphinx-build(1)`
|
||||
|
||||
|
||||
Author
|
||||
------
|
||||
|
||||
Etienne Desautels, <etienne.desautels@gmail.com>, Georg Brandl
|
||||
<georg@python.org> et al.
|
||||
:manpage:`sphinx-build(1)`, :manpage:`sphinx-autogen(1)`
|
||||
|
||||
93
doc/man/sphinx-autogen.rst
Normal file
93
doc/man/sphinx-autogen.rst
Normal file
@@ -0,0 +1,93 @@
|
||||
sphinx-autogen
|
||||
==============
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
**sphinx-autogen** [*options*] <sourcefile> ...
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
:program:`sphinx-autogen` is a tool for automatic generation of Sphinx sources
|
||||
that, using the :rst:dir:`autodoc` extension, document items included in
|
||||
:rst:dir:`autosummary` listing(s).
|
||||
|
||||
*sourcefile* is the path to one or more reStructuredText documents containing
|
||||
:rst:dir:`autosummary` entries with the ``:toctree::`` option set. *sourcefile*
|
||||
can be an :py:module:`fnmatch`-style pattern.
|
||||
|
||||
Options
|
||||
-------
|
||||
|
||||
.. program:: sphinx-autogen
|
||||
|
||||
.. option:: -o <outputdir>
|
||||
|
||||
Directory to place the output file. If it does not exist, it is created.
|
||||
Defaults to the value passed to the ``:toctree:`` option.
|
||||
|
||||
.. option:: -s <suffix>, --suffix <suffix>
|
||||
|
||||
Default suffix to use for generated files. Defaults to ``rst``.
|
||||
|
||||
.. option:: -t <templates>, --templates <templates>
|
||||
|
||||
Custom template directory. Defaults to ``None``.
|
||||
|
||||
.. option:: -i, --imported-members
|
||||
|
||||
Document imported members.
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
Given the following directory structure::
|
||||
|
||||
docs
|
||||
├── index.rst
|
||||
└── ...
|
||||
foobar
|
||||
├── foo
|
||||
│ └── __init__.py
|
||||
└── bar
|
||||
├── __init__.py
|
||||
└── baz
|
||||
└── __init__.py
|
||||
|
||||
and assuming ``docs/index.rst`` contained the following:
|
||||
|
||||
.. code-block:: rst
|
||||
|
||||
Modules
|
||||
=======
|
||||
|
||||
.. autosummary::
|
||||
:toctree: modules
|
||||
|
||||
foobar.foo
|
||||
foobar.bar
|
||||
foobar.bar.baz
|
||||
|
||||
If you run the following:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
$ sphinx-autodoc doc/index.rst
|
||||
|
||||
then the following stub files will be created in ``docs``::
|
||||
|
||||
docs
|
||||
├── index.rst
|
||||
└── modules
|
||||
├── foobar.bar.rst
|
||||
├── foobar.bar.baz.rst
|
||||
└── foobar.foo.rst
|
||||
|
||||
and each of those files will contain a :rst:dir:`autodoc` directive and some
|
||||
other information.
|
||||
|
||||
See also
|
||||
--------
|
||||
|
||||
:manpage:`sphinx-build(1)`, :manpage:`sphinx-apidoc(1)`
|
||||
@@ -1,132 +1,282 @@
|
||||
:orphan:
|
||||
|
||||
sphinx-build manual page
|
||||
========================
|
||||
sphinx-build
|
||||
============
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
**sphinx-build** [*options*] <*sourcedir*> <*outdir*> [*filenames* ...]
|
||||
|
||||
**sphinx-build** [*options*] <*sourcedir*> <*outputdir*> [*filenames* ...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
:program:`sphinx-build` generates documentation from the files in
|
||||
``<sourcedir>`` and places it in the ``<outdir>``.
|
||||
``<sourcedir>`` and places it in the ``<outputdir>``.
|
||||
|
||||
:program:`sphinx-build` looks for ``<sourcedir>/conf.py`` for the configuration
|
||||
settings. :manpage:`sphinx-quickstart(1)` may be used to generate template
|
||||
files, including ``conf.py``.
|
||||
|
||||
:program:`sphinx-build` can create documentation in different formats. A format
|
||||
is selected by specifying the builder name on the command line; it defaults to
|
||||
HTML. Builders can also perform other tasks related to documentation
|
||||
processing.
|
||||
:program:`sphinx-build` can create documentation in different formats. A
|
||||
format is selected by specifying the builder name on the command line; it
|
||||
defaults to HTML. Builders can also perform other tasks related to
|
||||
documentation processing.
|
||||
|
||||
By default, everything that is outdated is built. Output only for selected
|
||||
files can be built by specifying individual filenames.
|
||||
|
||||
List of available builders:
|
||||
|
||||
html
|
||||
HTML file generation. This is the default builder.
|
||||
|
||||
dirhtml
|
||||
HTML file generation with every HTML file named "index.html" in a separate
|
||||
directory.
|
||||
|
||||
singlehtml
|
||||
HTML file generation with all content in a single HTML file.
|
||||
|
||||
htmlhelp
|
||||
Generates files for CHM (compiled help files) generation.
|
||||
|
||||
qthelp
|
||||
Generates files for Qt help collection generation.
|
||||
|
||||
devhelp
|
||||
Generates files for the GNOME Devhelp help viewer.
|
||||
|
||||
latex
|
||||
Generates LaTeX output that can be compiled to a PDF document.
|
||||
|
||||
man
|
||||
Generates manual pages.
|
||||
|
||||
texinfo
|
||||
Generates Texinfo output that can be processed by :program:`makeinfo` to
|
||||
generate an Info document.
|
||||
|
||||
epub
|
||||
Generates an ePub e-book version of the HTML output.
|
||||
|
||||
text
|
||||
Generates a plain-text version of the documentation.
|
||||
|
||||
gettext
|
||||
Generates Gettext message catalogs for content translation.
|
||||
|
||||
changes
|
||||
Generates HTML files listing changed/added/deprecated items for
|
||||
the current version of the documented project.
|
||||
|
||||
linkcheck
|
||||
Checks the integrity of all external links in the source.
|
||||
|
||||
pickle / json
|
||||
Generates serialized HTML files for use in web applications.
|
||||
|
||||
xml
|
||||
Generates Docutils-native XML files.
|
||||
|
||||
pseudoxml
|
||||
Generates compact pretty-printed "pseudo-XML" files displaying the
|
||||
internal structure of the intermediate document trees.
|
||||
|
||||
For a list of available options, refer to :option:`sphinx-build -b`.
|
||||
|
||||
Options
|
||||
-------
|
||||
|
||||
-b <builder> Builder to use; defaults to html. See the full list
|
||||
of builders above.
|
||||
-a Generate output for all files; without this option only
|
||||
output for new and changed files is generated.
|
||||
-E Ignore cached files, forces to re-read all source files
|
||||
from disk.
|
||||
-d <path> Path to cached files; defaults to <outdir>/.doctrees.
|
||||
-j <N> Build in parallel with N processes where possible.
|
||||
-c <path> Locate the conf.py file in the specified path instead of
|
||||
<sourcedir>.
|
||||
-C Specify that no conf.py file at all is to be used.
|
||||
Configuration can only be set with the -D option.
|
||||
-D <setting=value> Override a setting from the configuration file.
|
||||
-t <tag> Define *tag* for use in "only" blocks.
|
||||
-A <name=value> Pass a value into the HTML templates (only for HTML
|
||||
builders).
|
||||
-n Run in nit-picky mode, warn about all missing references.
|
||||
-v Increase verbosity (can be repeated).
|
||||
-N Prevent colored output.
|
||||
-q Quiet operation, just print warnings and errors on stderr.
|
||||
-Q Very quiet operation, don't print anything except for
|
||||
errors.
|
||||
-w <file> Write warnings and errors into the given file, in addition
|
||||
to stderr.
|
||||
-W Turn warnings into errors.
|
||||
-T Show full traceback on exception.
|
||||
-P Run Pdb on exception.
|
||||
.. program:: sphinx-build
|
||||
|
||||
.. option:: -b buildername
|
||||
|
||||
The most important option: it selects a builder. The most common builders
|
||||
are:
|
||||
|
||||
**html**
|
||||
Build HTML pages. This is the default builder.
|
||||
|
||||
**dirhtml**
|
||||
Build HTML pages, but with a single directory per document. Makes for
|
||||
prettier URLs (no ``.html``) if served from a webserver.
|
||||
|
||||
**singlehtml**
|
||||
Build a single HTML with the whole content.
|
||||
|
||||
**htmlhelp**, **qthelp**, **devhelp**, **epub**
|
||||
Build HTML files with additional information for building a documentation
|
||||
collection in one of these formats.
|
||||
|
||||
**applehelp**
|
||||
Build an Apple Help Book. Requires :program:`hiutil` and
|
||||
:program:`codesign`, which are not Open Source and presently only
|
||||
available on Mac OS X 10.6 and higher.
|
||||
|
||||
**latex**
|
||||
Build LaTeX sources that can be compiled to a PDF document using
|
||||
:program:`pdflatex`.
|
||||
|
||||
**man**
|
||||
Build manual pages in groff format for UNIX systems.
|
||||
|
||||
**texinfo**
|
||||
Build Texinfo files that can be processed into Info files using
|
||||
:program:`makeinfo`.
|
||||
|
||||
**text**
|
||||
Build plain text files.
|
||||
|
||||
**gettext**
|
||||
Build gettext-style message catalogs (``.pot`` files).
|
||||
|
||||
**doctest**
|
||||
Run all doctests in the documentation, if the :mod:`~sphinx.ext.doctest`
|
||||
extension is enabled.
|
||||
|
||||
**linkcheck**
|
||||
Check the integrity of all external links.
|
||||
|
||||
**xml**
|
||||
Build Docutils-native XML files.
|
||||
|
||||
**pseudoxml**
|
||||
Build compact pretty-printed "pseudo-XML" files displaying the
|
||||
internal structure of the intermediate document trees.
|
||||
|
||||
See :ref:`builders` for a list of all builders shipped with Sphinx.
|
||||
Extensions can add their own builders.
|
||||
|
||||
.. option:: -a
|
||||
|
||||
If given, always write all output files. The default is to only write output
|
||||
files for new and changed source files. (This may not apply to all
|
||||
builders.)
|
||||
|
||||
.. option:: -E
|
||||
|
||||
Don't use a saved :term:`environment` (the structure caching all
|
||||
cross-references), but rebuild it completely. The default is to only read
|
||||
and parse source files that are new or have changed since the last run.
|
||||
|
||||
.. option:: -t tag
|
||||
|
||||
Define the tag *tag*. This is relevant for :rst:dir:`only` directives that
|
||||
only include their content if this tag is set.
|
||||
|
||||
.. versionadded:: 0.6
|
||||
|
||||
.. option:: -d path
|
||||
|
||||
Since Sphinx has to read and parse all source files before it can write an
|
||||
output file, the parsed source files are cached as "doctree pickles".
|
||||
Normally, these files are put in a directory called :file:`.doctrees` under
|
||||
the build directory; with this option you can select a different cache
|
||||
directory (the doctrees can be shared between all builders).
|
||||
|
||||
.. option:: -j N
|
||||
|
||||
Distribute the build over *N* processes in parallel, to make building on
|
||||
multiprocessor machines more effective. Note that not all parts and not all
|
||||
builders of Sphinx can be parallelized.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
This option should be considered *experimental*.
|
||||
|
||||
.. option:: -c path
|
||||
|
||||
Don't look for the :file:`conf.py` in the source directory, but use the given
|
||||
configuration directory instead. Note that various other files and paths
|
||||
given by configuration values are expected to be relative to the
|
||||
configuration directory, so they will have to be present at this location
|
||||
too.
|
||||
|
||||
.. versionadded:: 0.3
|
||||
|
||||
.. option:: -C
|
||||
|
||||
Don't look for a configuration file; only take options via the ``-D`` option.
|
||||
|
||||
.. versionadded:: 0.5
|
||||
|
||||
.. option:: -D setting=value
|
||||
|
||||
Override a configuration value set in the :file:`conf.py` file. The value
|
||||
must be a number, string, list or dictionary value.
|
||||
|
||||
For lists, you can separate elements with a comma like this: ``-D
|
||||
html_theme_path=path1,path2``.
|
||||
|
||||
For dictionary values, supply the setting name and key like this:
|
||||
``-D latex_elements.docclass=scrartcl``.
|
||||
|
||||
For boolean values, use ``0`` or ``1`` as the value.
|
||||
|
||||
.. versionchanged:: 0.6
|
||||
The value can now be a dictionary value.
|
||||
|
||||
.. versionchanged:: 1.3
|
||||
The value can now also be a list value.
|
||||
|
||||
.. option:: -A name=value
|
||||
|
||||
Make the *name* assigned to *value* in the HTML templates.
|
||||
|
||||
.. versionadded:: 0.5
|
||||
|
||||
.. option:: -n
|
||||
|
||||
Run in nit-picky mode. Currently, this generates warnings for all missing
|
||||
references. See the config value :confval:`nitpick_ignore` for a way to
|
||||
exclude some references as "known missing".
|
||||
|
||||
.. option:: -N
|
||||
|
||||
Do not emit colored output.
|
||||
|
||||
.. option:: -v
|
||||
|
||||
Increase verbosity (loglevel). This option can be given up to three times
|
||||
to get more debug logging output. It implies :option:`-T`.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. option:: -q
|
||||
|
||||
Do not output anything on standard output, only write warnings and errors to
|
||||
standard error.
|
||||
|
||||
.. option:: -Q
|
||||
|
||||
Do not output anything on standard output, also suppress warnings. Only
|
||||
errors are written to standard error.
|
||||
|
||||
.. option:: -w file
|
||||
|
||||
Write warnings (and errors) to the given file, in addition to standard error.
|
||||
|
||||
.. option:: -W
|
||||
|
||||
Turn warnings into errors. This means that the build stops at the first
|
||||
warning and ``sphinx-build`` exits with exit status 1.
|
||||
|
||||
.. option:: -T
|
||||
|
||||
Display the full traceback when an unhandled exception occurs. Otherwise,
|
||||
only a summary is displayed and the traceback information is saved to a file
|
||||
for further analysis.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. option:: -P
|
||||
|
||||
(Useful for debugging only.) Run the Python debugger, :mod:`pdb`, if an
|
||||
unhandled exception occurs while building.
|
||||
|
||||
.. option:: -h, --help, --version
|
||||
|
||||
Display usage summary or Sphinx version.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
You can also give one or more filenames on the command line after the source
|
||||
and build directories. Sphinx will then try to build only these output files
|
||||
(and their dependencies).
|
||||
|
||||
Environment Variables
|
||||
---------------------
|
||||
|
||||
The :program:`sphinx-build` refers following environment variables:
|
||||
|
||||
.. describe:: MAKE
|
||||
|
||||
A path to make command. A command name is also allowed.
|
||||
:program:`sphinx-build` uses it to invoke sub-build process on make-mode.
|
||||
|
||||
.. rubric:: Makefile Options
|
||||
|
||||
The :file:`Makefile` and :file:`make.bat` files created by
|
||||
:program:`sphinx-quickstart` usually run :program:`sphinx-build` only with the
|
||||
:option:`-b` and :option:`-d` options. However, they support the following
|
||||
variables to customize behavior:
|
||||
|
||||
.. describe:: PAPER
|
||||
|
||||
The value for '"papersize"` key of :confval:`latex_elements`.
|
||||
|
||||
.. describe:: SPHINXBUILD
|
||||
|
||||
The command to use instead of ``sphinx-build``.
|
||||
|
||||
.. describe:: BUILDDIR
|
||||
|
||||
The build directory to use instead of the one chosen in
|
||||
:program:`sphinx-quickstart`.
|
||||
|
||||
.. describe:: SPHINXOPTS
|
||||
|
||||
Additional options for :program:`sphinx-build`.
|
||||
|
||||
.. _when-deprecation-warnings-are-displayed:
|
||||
|
||||
Deprecation Warnings
|
||||
--------------------
|
||||
|
||||
If any deprecation warning like ``RemovedInSphinxXXXWarning`` are displayed
|
||||
when building a user's document, some Sphinx extension is using deprecated
|
||||
features. In that case, please report it to author of the extension.
|
||||
|
||||
To disable the deprecation warnings, please set ``PYTHONWARNINGS=`` environment
|
||||
variable to your environment. For example:
|
||||
|
||||
* ``PYTHONWARNINGS= make html`` (Linux/Mac)
|
||||
* ``export PYTHONWARNINGS=`` and do ``make html`` (Linux/Mac)
|
||||
* ``set PYTHONWARNINGS=`` and do ``make html`` (Windows)
|
||||
* modify your Makefile/make.bat and set the environment variable
|
||||
|
||||
See also
|
||||
--------
|
||||
|
||||
:manpage:`sphinx-quickstart(1)`
|
||||
|
||||
Author
|
||||
------
|
||||
|
||||
Georg Brandl <georg@python.org>, Armin Ronacher <armin.ronacher@active-4.com> et
|
||||
al.
|
||||
|
||||
This manual page was initially written by Mikhail Gusarov
|
||||
<dottedmag@dottedmag.net>, for the Debian project.
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
:orphan:
|
||||
|
||||
sphinx-quickstart manual page
|
||||
=============================
|
||||
sphinx-quickstart
|
||||
=================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
**sphinx-quickstart**
|
||||
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -16,18 +13,152 @@ Description
|
||||
about your project and then generates a complete documentation directory and
|
||||
sample Makefile to be used with :manpage:`sphinx-build(1)`.
|
||||
|
||||
Options
|
||||
-------
|
||||
|
||||
.. program:: sphinx-quickstart
|
||||
|
||||
.. option:: -q, --quiet
|
||||
|
||||
Quiet mode that will skips interactive wizard to specify options.
|
||||
This option requires `-p`, `-a` and `-v` options.
|
||||
|
||||
.. option:: -h, --help, --version
|
||||
|
||||
Display usage summary or Sphinx version.
|
||||
|
||||
.. rubric:: Structure Options
|
||||
|
||||
.. option:: --sep
|
||||
|
||||
If specified, separate source and build directories.
|
||||
|
||||
.. option:: --dot=DOT
|
||||
|
||||
Inside the root directory, two more directories will be created;
|
||||
"_templates" for custom HTML templates and "_static" for custom stylesheets
|
||||
and other static files. You can enter another prefix (such as ".") to
|
||||
replace the underscore.
|
||||
|
||||
.. rubric:: Project Basic Options
|
||||
|
||||
.. option:: -p PROJECT, --project=PROJECT
|
||||
|
||||
Project name will be set. (see :confval:`project`).
|
||||
|
||||
.. option:: -a AUTHOR, --author=AUTHOR
|
||||
|
||||
Author names. (see :confval:`copyright`).
|
||||
|
||||
.. option:: -v VERSION
|
||||
|
||||
Version of project. (see :confval:`version`).
|
||||
|
||||
.. option:: -r RELEASE, --release=RELEASE
|
||||
|
||||
Release of project. (see :confval:`release`).
|
||||
|
||||
.. option:: -l LANGUAGE, --language=LANGUAGE
|
||||
|
||||
Document language. (see :confval:`language`).
|
||||
|
||||
.. option:: --suffix=SUFFIX
|
||||
|
||||
Source file suffix. (see :confval:`source_suffix`).
|
||||
|
||||
.. option:: --master=MASTER
|
||||
|
||||
Master document name. (see :confval:`master_doc`).
|
||||
|
||||
.. option:: --epub
|
||||
|
||||
Use epub.
|
||||
|
||||
.. rubric:: Extension Options
|
||||
|
||||
.. option:: --ext-autodoc
|
||||
|
||||
Enable `sphinx.ext.autodoc` extension.
|
||||
|
||||
.. option:: --ext-doctest
|
||||
|
||||
Enable `sphinx.ext.doctest` extension.
|
||||
|
||||
.. option:: --ext-intersphinx
|
||||
|
||||
Enable `sphinx.ext.intersphinx` extension.
|
||||
|
||||
.. option:: --ext-todo
|
||||
|
||||
Enable `sphinx.ext.todo` extension.
|
||||
|
||||
.. option:: --ext-coverage
|
||||
|
||||
Enable `sphinx.ext.coverage` extension.
|
||||
|
||||
.. option:: --ext-imgmath
|
||||
|
||||
Enable `sphinx.ext.imgmath` extension.
|
||||
|
||||
.. option:: --ext-mathjax
|
||||
|
||||
Enable `sphinx.ext.mathjax` extension.
|
||||
|
||||
.. option:: --ext-ifconfig
|
||||
|
||||
Enable `sphinx.ext.ifconfig` extension.
|
||||
|
||||
.. option:: --ext-viewcode
|
||||
|
||||
Enable `sphinx.ext.viewcode` extension.
|
||||
|
||||
.. option:: --extensions=EXTENSIONS
|
||||
|
||||
Enable arbitary extensions.
|
||||
|
||||
.. rubric:: Makefile and Batchfile Creation Options
|
||||
|
||||
.. option:: --use-make-mode, --no-use-make-mode
|
||||
|
||||
Makefile/make.bat uses (or not use) make-mode. Default is use.
|
||||
|
||||
.. versionchanged:: 1.5
|
||||
make-mode is default.
|
||||
|
||||
.. option:: --makefile, --no-makefile
|
||||
|
||||
Create (or not create) makefile.
|
||||
|
||||
.. option:: --batchfile, --no-batchfile
|
||||
|
||||
Create (or not create) batchfile
|
||||
|
||||
.. rubric:: Project templating
|
||||
|
||||
.. versionadded:: 1.5
|
||||
Project templating options for sphinx-quickstart
|
||||
|
||||
.. option:: -t, --templatedir=TEMPLATEDIR
|
||||
|
||||
Template directory for template files. You can modify the templates of
|
||||
sphinx project files generated by quickstart. Following Jinja2 template
|
||||
files are allowed:
|
||||
|
||||
* ``master_doc.rst_t``
|
||||
* ``conf.py_t``
|
||||
* ``Makefile_t``
|
||||
* ``Makefile.new_t``
|
||||
* ``make.bat_t``
|
||||
* ``make.bat.new_t``
|
||||
|
||||
In detail, please refer the system template files Sphinx provides.
|
||||
(``sphinx/templates/quickstart``)
|
||||
|
||||
.. option:: -d NAME=VALUE
|
||||
|
||||
Define a template variable
|
||||
|
||||
See also
|
||||
--------
|
||||
|
||||
:manpage:`sphinx-build(1)`
|
||||
|
||||
|
||||
Author
|
||||
------
|
||||
|
||||
Georg Brandl <georg@python.org>, Armin Ronacher <armin.ronacher@active-4.com> et
|
||||
al.
|
||||
|
||||
This manual page was initially written by Mikhail Gusarov
|
||||
<dottedmag@dottedmag.net>, for the Debian project.
|
||||
|
||||
@@ -36,7 +36,7 @@ configuration values from a few questions it asks you. Just run ::
|
||||
and answer its questions. (Be sure to say yes to the "autodoc" extension.)
|
||||
|
||||
There is also an automatic "API documentation" generator called
|
||||
:program:`sphinx-apidoc`; see :ref:`invocation-apidoc` for details.
|
||||
:program:`sphinx-apidoc`; see :doc:`/man/sphinx-apidoc` for details.
|
||||
|
||||
|
||||
Defining document structure
|
||||
@@ -126,8 +126,8 @@ directory in which you want to place the built documentation.
|
||||
The :option:`-b <sphinx-build -b>` option selects a builder; in this example
|
||||
Sphinx will build HTML files.
|
||||
|
||||
|more| See :ref:`invocation` for all options that :program:`sphinx-build`
|
||||
supports.
|
||||
|more| Refer to the :program:`sphinx-build man page <sphinx-build>` for all
|
||||
options that :program:`sphinx-build` supports.
|
||||
|
||||
However, :program:`sphinx-quickstart` script creates a :file:`Makefile` and a
|
||||
:file:`make.bat` which make life even easier for you: with them you only need
|
||||
@@ -317,8 +317,8 @@ More topics to be covered
|
||||
.. rubric:: Footnotes
|
||||
|
||||
.. [#] This is the usual layout. However, :file:`conf.py` can also live in
|
||||
another directory, the :term:`configuration directory`. See
|
||||
:ref:`invocation`.
|
||||
another directory, the :term:`configuration directory`. Refer to the
|
||||
:program:`sphinx-build man page <sphinx-build>` for more information.
|
||||
|
||||
.. |more| image:: more.png
|
||||
:align: middle
|
||||
|
||||
Reference in New Issue
Block a user