Skip to main content

View your rendered Sphinx or ReStructuredText documents in a browser

Project description

Latest Published Version Build Status Documentation Build Status

sphinx-view

View your rendered Sphinx or ReStrucutredText documents in a browswer

If you’ve ever done much work with Sphinx (or any ReStructuredText) documents, you know how important it is to regularly check how they look when rendered into html. Often, you get your formatting wrong or introduce a syntax error. Constantly running sphinx-build by hand is really annoying.

There is a very nice tool called restview that can be used to view ReStructuredText files, but it doesn’t support all the sphinx keywords and features. Furthermore, it doesn’t render with a style

The sphinx-view application automatically renders the documents using the ‘alabaster’ theme. It renders them using Sphinx itself. It is even capable of rendering an entire directory at once and producing a full html page with navigation between sub-pages. This is very handy if, for instance, you are editing the docs folder of a python project.

In addition, sphinx-view will watch for changes to the documents, rebuild the pages, and refresh the browser any time you save the documents you are viewing.

Super-quick Start

  • requirements: python3.5

  • install through pip: $ pip install sphinx-view

  • view a document: $ sphinx-view README.rst

Using a custom config file

You can try to use sphinx-view with your own sphinx config file:

$ sphinx-view --config conf.py

However, it should be noted that many settings will not work if you have not installed dependencies and any additional features that you activate have not been tested. So, there are no guarantees that sphinx-view will work as intended with custom config files

Full Documentation

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

sphinx-view-0.1.4.tar.gz (5.9 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