I have one rst file with a structure like this: dialogs.rst
.. _dialogs: ====================== Codescape Dialogs ====================== .. ifconfig:: ifconf_product in ('main','') .. toctree:: :maxdepth: 1 :glob: * .. ifconfig:: ifconf_product in ('mini','') .. toctree:: :maxdepth: 1 BreakpointConfigDialog ConfigureScriptingDialog DefectReportDialog DiagnosticsDialog ExpressionDialog And another rst file that references this file in a toc Overview.rst .. toctree:: :maxdepth: 2 interfaceElements . . dialoghelp/dialogs When I build the project, the toc in Overview.rst includes both tocs from 'dialogs'; the toc in the 'main' and the 'mini' one. The dialogs rst file builds correctly, with one toc. It looks like the contents of dialogs.rst are being pulled into the toc in overview.rst before the ifconfig conditions are applied. -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.