RE: [Zope] reStructuredText rendering from commandline
Installed docutils, don't see the file you mention in the install. Only 'html.py' I have is docutils/parsers/rst/directives/html.py and docutils/writers/html.py. Were you referring to one of these files? Thanks. -----Original Message----- From: Ng Pheng Siong [mailto:ngps@netmemetic.com] Sent: Tuesday, September 30, 2003 10:12 To: Samir Mishra Cc: 'zope@zope.org' Subject: Re: [Zope] reStructuredText rendering from commandline On Tue, Sep 30, 2003 at 08:50:19AM +0400, Samir Mishra wrote:
I would like to create an external script, call it reStr, obviously Pythonic, such that, on a command line -
$ reStr some-text-file.txt > some-rendered-html.html
will give me a file that users can view and publish from outside Zope.
docutils-0.3/tools/html.py Turns your restructured text file into html. -- Ng Pheng Siong <ngps@netmemetic.com> http://firewall.rulemaker.net -+- Manage Your Firewall Rulebase Changes http://sandbox.rulemaker.net/ngps -+- Open Source Python Crypto & SSL
On Tue, Sep 30, 2003 at 12:47:51PM +0400, Samir Mishra wrote:
Installed docutils, don't see the file you mention in the install. Only 'html.py' I have is docutils/parsers/rst/directives/html.py and docutils/writers/html.py.
Were you referring to one of these files?
Sorry, I was referring to the source distribution. I use ZReST so that I can edit in Emacs and have automatic rendering to HTML just by viewing thru Zope. IME, the manual transformation of ReST files into HTML is akin to the compile/link step in the edit-compile/link-run cycle, whereas automatic rendering via Zope is like using a "scripting" language like Python: edit and go. Productivity is higher. ;-) Cheers. -- Ng Pheng Siong <ngps@netmemetic.com> http://firewall.rulemaker.net -+- Manage Your Firewall Rulebase Changes http://sandbox.rulemaker.net/ngps -+- Open Source Python Crypto & SSL
participants (2)
-
Ng Pheng Siong -
Samir Mishra