Gael Varoquaux schrieb:

> In particular, I have in mind the autosummary directive, and the
> only_directive. Both are all over the place in different projects.
> Autosumary has been discussed here, only_directive can be found by
> googling, but for a quick view, here is an URL:
> https://networkx.lanl.gov/trac/browser/networkx/branches/pre99/doc/sphinxext/only_directives.py?rev=876

"only" is now in trunk, and a bit more extended:

* You can give "tags" on the command line, like ``sphinx-build -t user``
* You can use these tags in the only directive, like ::

   .. only:: user

* The current builder's output format is an automatic tag, so you can do ::

   .. only:: html

* You can use boolean expression, so you can also do ::

   .. only:: html or (latex and userdoc)

* You can manipulate tags in conf.py, via the "tags" object.

I hope this covers all needs for multiple configurations.  If not, yell!

cheers,
Georg

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to