狮身人面像

sphinxcontrib-argdoc的Python项目详细描述


简介

sphinxcontrib-argdocSphinx的扩展 文档引擎。

它自动生成描述命令行参数的表 对于用python编写的可执行脚本,并插入这些表 在为脚本生成的:automodule:文档中 狮身人面像的延伸部分autodoc

唯一的要求是:

  1. The executable scripts use the Python argparse module for argument parsing.
  2. The rst documentation stub file for the scripts include the ^{tt1}$ directive (which they will, by default, if you use sphinx-apidoc).

有关更多信息、详细说明和示例,请参见 sphinxcontrib-argdoc documentation

安装和使用

sphinxcontrib-argdoc 可以从PyPI安装 使用pip。或者, 您可以将开发版本克隆到PYTHONPATH

要使用sphinxcontrib-argdoc, 只需将sphinxcontrollib.argdoc添加到项目的扩展列表中 sphinx配置文件conf.py

# somewhere in conf.pyextensions=['sphinxcontrib.argdoc','another_extension','some_other_extension']

测试

测试是用nose编写的, 可以在子包sphinxcontrib.argdoc.test中找到。要运行测试, 从终端输入:

$ nosetests sphinxcontrib.argdoc.test

许可证

SphinxContrib Argdoc的许可 BSD 3-Clause License

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
JavaSpringMVC控制器测试打印结果JSON字符串   若catch语句返回,那个么为什么它最终会阻塞呢?   java Grails中servletContext在哪里可用?   java Jhipster:如何为现有项目启用多种语言   java异常评估SpringEL表达式:“#fields.hasErrors('something')”   java如何验证SeleniumWebDriver中的文本颜色?   java在绘图时使用JPanel坐标   java如何初始化spring启动到project?   java如何通过JDBC的PreparedStatement将UUID数组插入HyperSQL数据库   java修改JVM以跨线程序列化文件访问   Javascript到Java正则表达式   使用Java运行时调用aspell程序时出现字符集问题。getRuntime()。执行官   执行RDP时的java Sukuli按钮识别   java如何使用okhttp更改connect请求的标头   java无法创建Maven Eclipse项目