程序会提示输入一些选项,如输入根目录
[url=][/url] Welcome to the Sphinx quickstart utility.
Please enter values for the following settings (just press Enter to
accept a default value, if one is given in brackets).
Enter the root path for documentation.
> Root path for the documentation [.]:
[url=][/url]
大部分使用默认选项,直接按回车即可。
需要指定的选项
分离source和build目录,方便管理
> Separate source and build directories (y/N) [n]: y
指定工程名、作者名、版本号
[url=][/url] The project name will occur in several places in the built documentation.
> Project name: Note
> Author name(s): LK
Sphinx has the notion of a "version" and a "release" for the
software. Each version can have multiple releases. For example, for
Python the version is something like 2.5 or 3.0, while the release is
something like 2.5.1 or 3.0a1. If you don't need this dual structure,
just set both to the same value.
> Project version: 0.1
> Project release [0.1]:
[url=][/url]
文档文件的后缀名,默认是.rst,个人认为用.txt更方便些。
The file name suffix for source files. Commonly, this is either ".txt"
or ".rst". Only files with this suffix are considered documents.
> Source file suffix [.rst]: .txt
language (语言) 对应于sphinx的locale目录下的文件夹,里面是本地化配置。
官方版本只支持繁体中文(zh_TW),可以下载 sphinx简体中文包 (javaEye topman制作)
下载后放到locale目录下,然后language选项修改为zh_CN即可
html_theme (输出html的主题):
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
html_theme = 'sphinxdoc'