def add_opts(self, optparser):
optlist = [
optparse.make_option("--meta-only",
dest="meta_only",
action="store_true",
help="""Only produce documentation based on the
module metadata"""),
optparse.make_option("--doc-format",
dest="doc_format",
action="store",
type="string",
default="markdown",
help="""Doc output format: markdown, html"""),
optparse.make_option("--strip-ns",
dest="strip_namespace",
action="store_true",
help="""Strip namespace prefixes from
displayed paths"""),
optparse.make_option("--no-structure",
dest="no_structure",
action="store_true",
help="""Do not generate docs for structure-only nodes (e.g., containers)"""),
optparse.make_option("--doc-title",
dest="doc_title",
action="store",
type="string",
help="""Set the title of the output documentation page"""),
]
g = optparser.add_option_group("docs output specific options")
g.add_options(optlist)
评论列表
文章目录