Docutils gives <Error/3> Unknown Directive type "toctree"

Gerard Flanagan grflanagan at
Sun Jun 29 22:01:01 CEST 2008

On Jun 19, 11:19 pm, "Calvin Cheng" < at> wrote:
> Hi,
> 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:

.. toctree::

in your file. docutils won't recognise this.


More information about the Python-list mailing list