Skip to main content

Preview Rst Document Instantly

Project description

Version:
0.9

This is a server for preview rst document instantly.

You can use it with instantRst.vim

Install

# Got some issue on pypi
# sudo pip install instant-rst
sudo pip install https://github.com/Rykka/instant-rst.py/archive/master.zip

Useage

usage: instantRst [-h] [-f FILENAME] [-b BROWSER] [-p PORT]

optional arguments:

-h, --help

show this help message and exit

-f FILENAME, --file FILENAME

The local filename for Converting

-b BROWSER, --browser BROWSER

The browser command for viewing Default is ‘firefox’

-p PORT, --port PORT

The port for server to use Default is ‘5676’

To convert a rst document

You can start with instantRst -f file.rst

Then the brower will opened the converted file at http://localhost:<port>

API

Action

Http Method

Request Body or Param

Curl Command

Show Converted file

GET

?file=/pat/to/file.rst

When file is omitted, Then a default index page will be opened.

curl http://localhost:5676?file=/tmp/test.rst

Refresh window with

a file and scroll to a position(a float)

POST

or PUT

{file:file.rst, p:pos}

When file is omitted, Then will only scroll to that pos

curl -d file='file.name' -d p='0.3' http://localhost:5676

Close Server

DELETE

curl -X DELETE http://localhost:5676

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

instant-rst-0.9.0.4.tar.gz (11.5 kB view details)

Uploaded Source

File details

Details for the file instant-rst-0.9.0.4.tar.gz.

File metadata

  • Download URL: instant-rst-0.9.0.4.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for instant-rst-0.9.0.4.tar.gz
Algorithm Hash digest
SHA256 4cf3dbec1cbb1c5d15c13bd5ca13ff55559ee01e9eedc7240ea35e25359171d3
MD5 684d4e890928d85370fa3bb62c60e29e
BLAKE2b-256 66882aaba6176355f70b0f48ea055cb9189526462b3825ec28b3fe3ffc8654b3

See more details on using hashes here.

Supported by

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