-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 03.03.2010 18:34, schrieb Sebastian Schaetz: > Hi, > > I am writing an extension for Sphinx that basically is supposed to > provide the following functionality: > > * the user provides a file location using a directive and a parameter > inside the rst file > * the extension fetches parts of the file, processes those parts and > adds them to the doctree in order for them to appear in the generated > document > > I am at a point where this basically works but I am struggling with > the adding the contents to the doctree. Right now I do this by > creating nodes and returning them in the Directive. This is > unsatisfactory because it does not allow a flexible way to modify the > style of the output. I also seem to be unable to find good > documentation for all the nodes (how to create the more complicated > ones e.g. tables, headlines etc).
All the documentation that exists about that can be found at <http://docutils.sourceforge.net/docs/ref/doctree.html> and related documents. > What I would love is to generate rst code in a string (including my > custom user data) and simply telling Sphinx to add this rst code to > the doctree. This would allow me to write small rst templates etc. At which stage would you like to do this? cheers, Georg -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEARECAAYFAku5nN4ACgkQN9GcIYhpnLD0pACeNRj0f6Mw8a+oMUO6urDZFEN3 f8YAoKwTApc7Hop1owkO/80WDIxG0k7A =cWDB -----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 [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.
