2011/9/20 ashwin <[email protected]>: > Hi All, > > I have a requirement in which I need to do the following: > > a. Generate documentation for different set of products. > b. For all these products, there would be only one set of REST files. > c. We want to have a feature flag in these REST files. > > This is required so that, based on the feature flag(or product) for > which we want the documentation, we want the REST files to be compiled > for that specific product. This feature flag is required to control > the display of output per platform. > > Internally in the REST files, for these feature flags, we may include/ > exclude certain pieces of documentation, or change the limits for > different products etc. These feature flags in a way, should work > similar to the C macros. > > I have searched through the Sphinx directives and am unable to find > anything which matches this requirement. > > So, just wanted to check, if I have missed anything here? Or should a > new directive be added for this purpose? > > Any pointers in this regard would be very helpful, since I am stuck on > this, for my project.
You may want to look at the ".. only::" directive [1]. [1] http://sphinx.pocoo.org/markup/misc.html#including-content-based-on-tags -- 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.
