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

Thijs Triemstra | Collab thijs.triemstra at gmail.com
Sun Jun 29 12:34:14 EDT 2008


Getting the same error in the apache logs here, no idea where it's
coming from:

[Sun Jun 29 18:25:50 2008] [error] <string>:10: (ERROR/3) Unknown
directive type "toctree".
[Sun Jun 29 18:25:50 2008] [error]
[Sun Jun 29 18:25:50 2008] [error] .. toctree::
[Sun Jun 29 18:25:50 2008] [error]    :maxdepth: 2
[Sun Jun 29 18:25:50 2008] [error]
[Sun Jun 29 18:25:50 2008] [error] <string>:16: (ERROR/3) Unknown
interpreted text role "ref".
[Sun Jun 29 18:25:50 2008] [error] <string>:17: (ERROR/3) Unknown
interpreted text role "ref".
[Sun Jun 29 18:25:50 2008] [error] <string>:18: (ERROR/3) Unknown
interpreted text role "ref".



On Jun 19, 11:19 pm, "Calvin Cheng" <calvin.ch... at od-eon.com> 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.
>
> Thank you,
> Calvin



More information about the Python-list mailing list