ReStructuredText viewer
Python CSS Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/restview
.coveragerc
.gitignore
.travis.yml
CHANGES.rst
LICENSE Rename LICENCE to LICENSE Sep 22, 2016
MANIFEST.in
Makefile Add 'make diff-cover' Jun 21, 2016
README.rst Add an appveyor.yml Dec 11, 2015
appveyor.yml Claim Python 3.6 support Jan 2, 2017
sample.rst
setup.cfg Fix pytest deprecation warning Sep 10, 2016
setup.py
tox.ini

README.rst

restview

buildstatus appveyor coverage

A viewer for ReStructuredText documents that renders them on the fly.

Pass the name of a ReStructuredText document to restview, and it will launch a web server on localhost:random-port and open a web browser. Every time you reload the page, restview will reload the document from disk and render it. This is very convenient for previewing a document while you're editing it.

You can also pass the name of a directory, and restview will recursively look for files that end in .txt or .rst and present you with a list.

Finally, you can make sure your Python package has valid ReStructuredText in the long_description field by using

restview --long-description

Synopsis

Usage: restview [options] filename-or-directory [...]

-h, --help show this help message and exit
-l PORT, --listen=PORT
 listen on a given port (or interface:port, e.g. *:8080) [default: random port on localhost]
-b, --browser open a web browser [default: only if -l was not specified]
-e COMMAND, --execute=COMMAND
 run a command to produce ReStructuredText
-w FILENAME, --watch=FILENAME
 reload the page when a file changes (use with --execute); can be specified multiple times
--long-description
 run "python setup.py --long-description" to produce ReStructuredText; also enables --pypi-strict and watches the usual long description sources (setup.py, README.rst, CHANGES.rst)
--css=URL-or-FILENAME
 use the specified stylesheet; can be specified multiple times [default: html4css1.css,restview.css]
--strict halt at the slightest problem
--pypi-strict enable additional restrictions that PyPI performs

Installation

On .deb based systems (e.g. Ubuntu)

sudo apt-get install python-pip
sudo pip install restview

On .rpm based systems (e.g. Fedora)

su
yum install python-pip
pip install restview