I have a use case where I want to use the same toctree in two different 
contexts.  In one place I want it :hidden: (because it's just being used to 
populate a sidebar), in another, I actually want the content visible on the 
page.   I was hoping to do something like this:


content.rst -       foo
                    bar
                    baz


index.rst -         .. toctree::
                       :maxdepth: 2
                       :hidden:
                       .. include:: ./content.rst


otherpage.rst-         .. toctree::
                          :maxdepth: 4

                          .. include:: ./content.rst

This seems not to work.  Is there a way to factor a toctree  directive like 
this or am I forced to maintain two separate copies of the contents (yuck)?

Thanks

-- 
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.

Reply via email to