Debian Codegraph @

data/meow.readme.rst

raw
1 ====
2 Meow
3 ====
4
5 About
6 =====
7
8 Meow is an editor-agnostic Markdown, reStructuredText and Textile live previewer.
9 Once you save your file, the rendered HTML will automatically get reloaded
10 in your favourite browser.
11
12 The Original Version is moo_ . Meow fork from moo ( `commit history`_ ), And add function of
13 reStructuredText live previewer.
14
15 .. _moo: https://github.com/pyrocat101/moo
16 .. _`commit history`: https://github.com/pyrocat101/moo/commits/876de66f792ac42df7dba2e1416fb7aeae8feeb2
17
18 Installation
19 ============
20
21 .. code-block:: bash
22
23 pip install meow
24
25 Requirements
26 ============
27
28 meow requires
29
30 * mistune_ (optional)
31 * `python-textile`_ (optional)
32 * `bottle.py`_
33 * pygments_
34 * docutils_
35 * CherryPy_
36 * docopt_
37
38 .. _mistune: https://github.com/lepture/mistune
39 .. _`python-textile`: https://github.com/sebix/python-textile
40 .. _`bottle.py`: http://bottlepy.org/
41 .. _pygments: http://pygments.org/
42 .. _docutils: https://pypi.python.org/pypi/docutils
43 .. _CherryPy: http://www.cherrypy.org/
44 .. _docopt: https://github.com/docopt/docopt
45
46 Usage
47 =====
48
49 Opens preview in browser with server listening on 3000::
50
51 meow --port 3000 your-doc.markdown
52
53 Export to HTML only::
54
55 meow -o exported.html your-doc.markdown
56
57 To specify file type::
58
59 meow --filetype rst README
60
61 RESTful API
62 ===========
63
64 +-------------------------+-------------+----------------------------------+-------------------------+
65 | Action | HTTP Method | Request URL | Response Body |
66 +=========================+=============+==================================+=========================+
67 | Get preview | GET | http://localhost:\<port\> | \<Preview content\> |
68 +-------------------------+-------------+----------------------------------+-------------------------+
69 | Get updated content | POST | http://localhost:\<port\>/update | \<Rendered body\> |
70 +-------------------------+-------------+----------------------------------+-------------------------+
71 | Close server | DELETE | http://localhost:\<port\> | |
72 +-------------------------+-------------+----------------------------------+-------------------------+
73
74 See `source files`_ for more details.
75
76 .. _`source files`: https://github.com/hhatto/meow
77
78 License
79 =======
80
81 (The MIT License)
82
83 Links
84 =====
85 * GitHub_
86 * PyPI_
87
88 .. _GitHub: https://github.com/hhatto/meow
89 .. _PyPI: https://pypi.python.org/pypi/meow/