Re: publish_parts and table of contents?

Guenter Milde via Docutils-users <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2017-07-25, Tony Narlock wrote:

> What if the user doesn’t want to publish CSS from the tree? 

You can select the used CSS stylsheet(s) as well as toggle between
inclusion and referencing them via Docutils settings.
For programmatic use, "settings_override" is your friend.

See "config.html" and the documentation the publish_* functions for
descriptions and, e.g., the functional tests for usage examples.


> Even if using
> publish_doctree, I prefer the equivalent to publish_parts fragment and
> html_body, usually.


> Here is what I did:

...

> Is the equivalent of this attainable a simpler way? Is something like this
> worth considering as a patch?

I don't know. You may file an enhancement ticket.

Also the addition of "contents" as a part for the HTML writer seems like a
valid enhancement request. (But mind that we don't have many ressources to
really work on it.)

Günter


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.