I am attempting to build a Sphinx directive that wraps other Sphinx content. Thus I want the following source :
.. nestedBlock:: Overview, "Implmentation id¨, Overview of structure As much Sphinx content as needed. to generate the following HTML: <section id="Overview" class="nsLevel1", id="Implementation id"> <p>Overview of structure</p> ... As much Sphinx content as needed - converted to HTML </section> The generated HTMLwill then be styled with CSS yo produce the final output. I am uncertain about how this should be done, partly as I do not fully understand the implications of the self.content attribute. Any examples of doing this type of work would be greatly appreciated. I expect that these directives will be nested and I am only interested in HTML output. -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/a6bbcc03-106b-45a9-a990-0a15398d27d4n%40googlegroups.com.