Skip to main content

Description

rstctl is a script to help you with reStructuredText

Usage

HTML preview

You can preview a file:

$ rstctl -w path/to/file.rst

Or the long description of a package:

$ ls setup.py
setup.py

$ rstctl -w

This will open the result in your favorite browser.

Generating Sphinx documentation

Go to the package root then use the --sphinx option:

$ 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

Add modules/index in a toctree

If you want to exclude some modules add this to your conf.py:

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

You can also add rstctl.sphinx in conf.py’s extensions

0.4 (2010-03-06)

  • add --sphinx option + sphinx extension

0.1 (2008-11-31)

  • initial release

Release files for rstctl 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rstctl 0.4
File Size Uploaded
rstctl-0.4.tar.gz 7.5 kB Details

Release files / rstctl-0.4.tar.gz

Download URL rstctl-0.4.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
da7e6da6b3d222140beaf8380b89fd14903a0f2ccd2a13da5f3a03625e3467b9
BLAKE2b-256 checksum
How to use checksums
9565abfa1e2c81bda1521c6d41116a0720ee68b17c8f57c2717473a24aa85a9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page