Skip to main content

Preview Python package documentation

Project description

viewdoc is a Python package documentation viewer. It converts reST-formatted text to HTML and displays it in a browser window. It is typically used to check a package’s long description before uploading it to PyPI.

Also see jarn.mkrelease.

Installation

viewdoc requires Python 2.4 or higher. Use easy_install jarn.viewdoc to install the viewdoc script. Then put it on your system PATH by e.g. symlinking it to /usr/local/bin.

Upgrade Note: If you have jarn.viewdoc 1.0 installed, you must delete your existing ~/.viewdoc file to get the updated styles.

Usage

viewdoc [options] [rst-file|egg-dir]

Options

-s style, --style=style, or --style

Select the custom style added to the HTML output. Used to override the configuration file setting of the same name.

-l, --list-styles

Print available styles and exit.

-h, --help

Print the help message and exit.

-v, --version

Print the version string and exit.

rst-file

The reST file to view.

egg-dir

The Python package whose long description to view. Defaults to the current working directory.

Configuration

viewdoc reads style information from its configuration file ~/.viewdoc. Edit this file to add your own styles.

Changelog

1.2 - 2011-07-19

  • Pass the PYTHONPATH to subprocesses. [stefan]

  • Avoid temp file when extracting the long description. [stefan]

  • Add -l option to list available styles. [stefan]

  • Add –style shortcut for -s style. [stefan]

1.1 - 2011-02-08

  • Add -s option to select styles on the command line. [stefan]

  • In pypi styles, only underline reference links. [stefan]

1.0 - 2010-12-30

  • Initial release [stefan]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jarn.viewdoc-1.2.zip (9.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page