本文整理汇总了Python中docutils.core.default_description方法的典型用法代码示例。如果您正苦于以下问题:Python core.default_description方法的具体用法?Python core.default_description怎么用?Python core.default_description使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类docutils.core
的用法示例。
在下文中一共展示了core.default_description方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: cm2html
# 需要导入模块: from docutils import core [as 别名]
# 或者: from docutils.core import default_description [as 别名]
def cm2html():
description = ('Generate html document from markdown sources. ' + default_description)
publish_cmdline(writer_name='html',
parser=CommonMarkParser(),
description=description)
示例2: cm2man
# 需要导入模块: from docutils import core [as 别名]
# 或者: from docutils.core import default_description [as 别名]
def cm2man():
description = ('Generate a manpage from markdown sources. ' + default_description)
publish_cmdline(writer_name='manpage',
parser=CommonMarkParser(),
description=description)
示例3: cm2xml
# 需要导入模块: from docutils import core [as 别名]
# 或者: from docutils.core import default_description [as 别名]
def cm2xml():
description = ('Generate XML document from markdown sources. ' + default_description)
publish_cmdline(writer_name='xml',
parser=CommonMarkParser(),
description=description)
示例4: cm2pseudoxml
# 需要导入模块: from docutils import core [as 别名]
# 或者: from docutils.core import default_description [as 别名]
def cm2pseudoxml():
description = ('Generate pseudo-XML document from markdown sources. ' + default_description)
publish_cmdline(writer_name='pseudoxml',
parser=CommonMarkParser(),
description=description)
示例5: cm2latex
# 需要导入模块: from docutils import core [as 别名]
# 或者: from docutils.core import default_description [as 别名]
def cm2latex():
description = ('Generate latex document from markdown sources. ' + default_description)
publish_cmdline(writer_name='latex',
parser=CommonMarkParser(),
description=description)