Hi Alex, To do that, you need to touch toctree database on envdata. Sphinx create the database on reading phase. And it is used to build toctree on writing phase. So modifying the document tree on resolving phase (before writing phase) does not effect to the toctree.
Thanks, Takeshi KOMIYA 2019年3月20日(水) 5:25 Alex Adamson <[email protected]>: > > I have an extension that is similar to the "todo" extension that ships with > Sphinx called "catalog". There is a "catalog" directive and a "cataloglist" > directive. All content inside a "catalog" directive is inserted into each > "cataloglist" directive under a title taken from contextual information > around the "catalog" directive, as is done here: > https://github.com/sphinx-doc/sphinx/blob/master/sphinx/ext/todo.py#L132. > > I have a document that has both a "cataloglist" directive and a "toctree" > directive. After we replace the "cataloglist" directive with the correct > content, the toctree isn't updated. Is there a way to force a re-parsing of > the document so the toctree gets updated to include any sections added? > > -- > You received this message because you are subscribed to the Google Groups > "sphinx-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sphinx-users. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.
