-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 11.12.2010 02:50, schrieb Stéphane Wirtel: > Hi all, > > .. ifconfig:: technical > > It's just a test > <<------ docutils.paragraph > > This section won't be included why ? <---------- > docutils.section > =========================== > > I tried to use the ifconfig extension because I want to split the > technical > of the functional side in a document for a customer. > > So, I thought that extension was the right one, but after reading the > source code, I noticed that the "ifconfig" directive is replaced by > the > children nodes, but in this case, it's a paragraph and a paragraph > only contains paragraphs and not an other kind of element (section, > list, image, ...) > > I would like to know if it is possible and how to replace the > paragraph of > ifconfig by a section, image, list, etc... > > Do you have some ideas or advices ?
Actually your example should work (anything in the body of the "ifconfig" directive will be included conditionally) -- provided that "technical" is a config value. Otherwise you should see an error in the output of sphinx-build that "technical" is not defined. ifconfig is actually more of a demo extension, and for this kind of conditional inclusion, you'd better use the "only" directive (which is always available, no extension needed). It works similary, see http://sphinx.pocoo.org/markup/misc.html#directive-only cheers, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk0DM2EACgkQN9GcIYhpnLCvFgCcCLXdj4p6hILDeP9J2TjTRKpO eUMAnjAPp4ev0Pdpx/Ycnhkrw76OMME/ =gheZ -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to sphinx-...@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.