狮身人面像/摊铺机集成
sphinxcontrib-paverutils的Python项目详细描述
基本用法
要使用此模块,请将其作为 从 sphinxcontrib导入paverutils ,然后为 使用任务中描述的选项输出"html"和/或"pdf" 帮助。
例如:
import paver import paver.misctasks from paver.path import path from paver.easy import * import paver.setuputils paver.setuputils.install_distutils_tasks() try: from sphinxcontrib import paverutils except: import warnings warnings.warn('sphinxcontrib.paverutils was not found, you will not be able to produce documentation') options( setup=Bunch( name = 'MyProject', version = '1.0', # ... more options here ... ), # Defaults for sphinxcontrib.paverutils sphinx = Bunch( docroot='.', sourcedir='docsource', builder='html', ), # One configuration to build HTML for the package html=Bunch( builddir='docs', confdir='sphinx/pkg', ), # Another configuration with different templates # to build HTML to upload to the website website=Bunch( builddir = 'web', confdir='sphinx/web', ), # We also want a PDF file for the website, # so the instructions are included in the web # configuration directory. pdf=Bunch( builddir='web', builder='latex', confdir='sphinx/web', ), )