ht2html and reStructured text

Oliver Rutherfurd oliver at rutherfurd.net
Thu Nov 7 08:54:29 EST 2002


Hi Jim,

"Jim Tittsler" <jwt at starship.python.net> wrote in message
news:slrnasko6l.29d.jwt at twin.dskk.co.jp...
> Has anyone merged ht2html and reStructured text?

I've written an '.ht' writer for docutils which will convert
reStructuredText to an '.ht' file. It is not yet part of
docutils, but I hope it will be included in a future release.

It can be found in the docutils sandbox here:

http://docutils.sourceforge.net/sandbox/oliverr/ht/

To use it, you'll need a recent snapshot of docutils and the 2 .py
files from the above location. Copy them like so:

rst2ht.py -> <docutils>/tools/
hthtml.py -> <docutils>/writers/

> In addition to the bulk of my pages which are now in the .ht
> "html fragment" format, I have a number of documents in
> structured text that I would also like to include in a series
> of pages.

In the future I'd like to see tighter integration of the 2 (or it be
easier to use reStructuredText from ht2html), however I'm new to
ht2html and am still trying to figure out how to make it work the way
I'd like it to.  Mainly I want the same nav links throughout a directory
tree and I'd also like breadcrumbs instead of site links on top. I only
spent a little time with ht2html when I started re-working my site a
couple weeks ago, but then got caught up in other things and am
still trying to get back to it.

-Ollie
oliver at rutherfurd.net

ps - I haven't got a nntp server to post to, so I've just sent this to
you and cc'd python-list.





More information about the Python-list mailing list