rst "markup streamer" for ViewCVS
- Contact:
- axel(at)kollmorgen[dot]net
- Version:
- README.txt 1759 2003-12-05 08:34:17Z ax-
- Web site:
this is a modification of ViewCVS that enables rst .txt files in ViewCVS repositories to be viewed as .html ("markup"). this is achieved by adding a new "markup streamer" markup_stream_rst() to viewcvs.py that basically does the same as docutils' tools/html.py [DOC] [SRC]. once installed, any .txt file w/ a link ending w/ view=auto or view=markup will be rendered as html.
do you think this is useful? please send feedback. much appreciated!
requirements
ViewCVS / docutils CVS 2003-Oct-28. it will probably work with any docutils 0.3 or newer and with newer (and a little older) versions of ViewCVS. if you use a different version of ViewCVS, do a diff of viewcvs.py before overwriting it - the source changes frequently.
install
install docutils
get ViewCVS from CVS (when prompted for a password for anonymous, simply press the Enter key):
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/viewcvs login cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/viewcvs co -D28-Oct-2003 viewcvs
overwrite lib/viewcvs.py with the one supplied
install viewcvs as usual (./viewcvs-install)
todo
error handling (.txt may not be in rst format)
review the code (i'm just starting w/ python ...)