Coder Social home page Coder Social logo

wzugang / restview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mgedmin/restview

0.0 1.0 0.0 288 KB

ReStructuredText viewer

Home Page: https://pypi.python.org/pypi/restview

License: GNU General Public License v3.0

Makefile 5.62% Python 86.44% CSS 7.94%

restview's Introduction

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 --version show program's version number and exit -l PORT, --listen=PORT listen on a given port (or interface:port, e.g. *:8080) [default: random port on localhost] --allowed-hosts HOSTS allowed values for the Host header (default: localhost only, unless you specify -l *:port, in which case any Host: is accepted by default) -b, --browser open a web browser [default: only if -l was not specified] -B, --no-browser don't open a web browser -e COMMAND, --execute=COMMAND run a command to produce ReStructuredText on stdout -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] --report-level REPORT_LEVEL set the "report_level" option of docutils; restview will report system messages at or above this level (1=info, 2=warnings, 3=errors, 4=severe) --halt-level HALT_LEVEL set the "halt_level" option of docutils; restview will stop processing the document when a system message at or above this level (1=info, 2=warnings, 3=errors, 4=severe) is logged --strict halt at the slightest problem; equivalent to --halt- level=2 --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

restview's People

Contributors

ericfromcanada avatar gkotian avatar jwilk avatar mgedmin avatar myint avatar rsyring avatar simplyknownasg avatar wks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.