On Jun 19, 11:19 pm, "Calvin Cheng" <[EMAIL PROTECTED]> 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: http://sphinx.pocoo.org/concepts.html#the-toc-tree You must have something like: .. toctree:: in your file. docutils won't recognise this. G. -- http://mail.python.org/mailman/listinfo/python-list