在文档的根目录里,即源代码的”Doc”子目录,有一个叫做”conf.py”的构建配置文件,它包含一些在构建运行时需要使用的变量。
这些变量是:
|version| 的替代,指使用的Python版本。它只包含主版本号和次版本号,如”2.5”,即使Python版本是2.5.1。
A string that is used as a replacement for the |release| reST substitution. It should be the full version string including alpha/beta/release candidate tags, e.g. 2.5.2b3.
Both release and version can be 'auto', which means that they are determined at runtime from the Include/patchlevel.h file, if a complete Python source distribution can be found, or else from the interpreter running Sphinx.
A strftime format that is used to format a replacement for the |today| reST substitution.
A string that can contain a date that should be written to the documentation output literally. If this is nonzero, it is used instead of strftime(today_fmt).
A list of reST filenames that are to be disregarded during building. This could be docs for temporarily disabled modules or documentation that’s not yet ready for public consumption.
If this is not an empty string, it will be given to time.strftime() and written to each generated output file after “last updated on:”.
If true, use SmartyPants to convert quotes and dashes to the typographically correct entities.
If true, () will be appended to the content of :func:, :meth: and :cfunc: cross-references.
关于本评注系统
本站使用上下文关联的评注系统来收集反馈信息。不同于一般对整章做评注的做法, 我们允许你对每一个独立的“文本块”做评注。一个“文本块”看起来是这样的:
一个“文本块”是一个段落,一个列表项,一段代码,或者其他一小段内容。 你选中它会高亮度显示:
要对文本块做评注,你只需要点击它旁边的标识块:
我们会仔细阅读每个评论,如果可能的话我们也会把评注考虑到未来的版本中去:
如果你愿意你的评注被采用,请确保留下你的全名 (注意不是昵称或简称)
Many, many thanks to Jack Slocum; the inspiration and much of the code for the comment system comes from Jack's blog, and this site couldn't have been built without his wonderful
YAHOO.extlibrary. Thanks also to Yahoo for YUI itself.