getpelican/pelican

how to use rst-directive such as "toctree"

yanquer opened this issue · 3 comments

when rst-doc has content as

.. toctree::
    :maxdepth: 2

    xxx

and run pelican content , get error message (ERROR/3) Unknown directive type "toctree".

how to support all-rst-directive-type ?

And where does the toctree directive come from? Docutils has no such built-in directive. If you have a custom directive, you need to add/register it yourself (probably via a plugin).

And where does the toctree directive come from? Docutils has no such built-in directive. If you have a custom directive, you need to add/register it yourself (probably via a plugin).

it is form sphinx, because my doc-project is written with sphinx and I want use pelican now.

I solve the project temporarily with written plugin directive_for_sphinx,
and I will complete-like-sphinx-feature later.

If others encounter this problem, can clone it to his plugin dir.

I'm glad you were able to find a solution to your query. 😊