From: Guenter M. <mi...@us...> - 2017-07-18 18:31:55
|
On 2017-07-18, Tony Narlock wrote: > Is there a way to get the equivalent to “.. contents::” from publish_parts? According to http://docutils.sourceforge.net/docs/api/publisher.html#publish-parts-details, no. > If not, is there any way to get the table of contents programmatically? This could be done in a wrapper; or a custom writer or front-end. Places to look include the transforms.parts.Content() and the used HTML writer. > If not, is there any reason / issue with it being a feature? I don't know. > The practical use is a developer pulling out parts the HTML output would > like control over the table of contents output. The simple and secure approach would be CSS styling --- unless the task is more complicated. Günter |