Docutils rst2html.py gives <Error/3> Unknown Directive type "toctree"
grflanagan at gmail.com
Sun Jun 29 22:01:01 CEST 2008
On Jun 19, 11:19 pm, "Calvin Cheng" <calvin.ch... at od-eon.com> wrote:
> I am attempting to convert a bunch of .txt files into html using the
> docutils package.
> It works for most of the txt files except for the index.txt file which
> gives 2 errors:
> (1) <Error/3> Unknown Directive type "toctree"
> (2) (ERROR/3) Unknown interpreted text role "ref".
> Any idea how I can fix this?
> Would be glad if someone who is familiar with docutils could point me
> in the right direction.
"toctree" is a directive specific to the sphinx documentation system:
You must have something like:
in your file. docutils won't recognise this.
More information about the Python-list