跳转到主要内容

reST 工具

项目描述

描述

rstctl 是一个帮助您使用 reStructuredText 的脚本

用法

HTML预览

您可以预览一个文件

$ rstctl -w path/to/file.rst

或包的长期描述

$ ls setup.py
setup.py

$ rstctl -w

这将在新浏览器窗口中打开结果。

生成Sphinx文档

转到包根目录,然后使用 --sphinx 选项

$ rstctl --sphinx docs/conf.py
Using /Users/gawel/py/rstctl/rstctl/module.tmpl
Writing docs/modules/rstctl.txt
Skipping rstctl.pdf excluded by conf.py
Skipping rstctl.rst_directive excluded by conf.py
Using /Users/gawel/py/rstctl/rstctl/module.tmpl
Writing docs/modules/rstctl.serve.txt
Using /Users/gawel/py/rstctl/rstctl/module.tmpl
Writing docs/modules/rstctl.template.txt
Using /Users/gawel/py/rstctl/rstctl/module.tmpl
Writing docs/modules/rstctl.utils.txt
Writing index

toctree 中添加 modules/index

如果您想排除某些模块,请将此添加到您的 conf.py

rstctl_exclude = ['rstctl.rst_directive', 'rstctl.pdf']

您还可以在 conf.py 的扩展中添加 rstctl.sphinx

0.4 (2010-03-06)

  • 添加 --sphinx 选项 + Sphinx 扩展

0.1 (2008-11-31)

  • 首次发布

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装软件包的更多信息。

源分布

rstctl-0.4.tar.gz (7.5 kB 查看哈希值)

上传时间