Hi,

I'm trying to exclude whole sub-sections based on a condition as follows:

*****************

index.rst:

======
My doc
======

.. toctree::
   :maxdepth: 2

   section-a


section-a.rst:

=========
Section a
=========

.. toctree::
   :maxdepth: 2

   section-1

.. only:: 2

   .. toctree::
      :maxdepth: 2

      section-2

.. toctree::
   :maxdepth: 2

   section-3


******************

However, when the condition is true, "section-2" appears twice in the HTML
output's toc:

    Section a
        section-1
        section-2
        section-2
        section-3

Thanks for your help.

Olivier Carrère

-- 
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 http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to