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). 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. Is there a way to easily do this? If not, is there documentation about how to create complex nodes? Thanks in advance, Sebastian -- 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.
