From: G. Milde <milde@us...> - 2008-03-07 11:41:32
Dear docutils users,
is there a way to embedd more than one stylesheet in a HTML file generated
by the html4css1 writer?
* By default, the html4css1 writer embedds the given stylesheet resulting in
a transferable, self-contained file.
* Customisation of the default stylesheet can be done by importing it and
overwriting definitions with custom ones::
/* import the default docutils stylesheet */
/* TODO: consider embedding */
/* new definitions */
This approach has two advantages:
+ the resulting stylesheet is kept small
+ updates of the standard stylesheet are factored in automatically.
However, the generated file is no longer self-contained by default but
relies on the external html4css1.css stylesheet which must be available
at the given URL if viewing the document shall be a satisfying user
From: G. Milde <milde@us...> - 2008-03-13 07:13:57
On 7.03.08, David Goodger wrote:
> [G. Milde - 2008-03-07 06:41]
>> is there a way to embedd more than one stylesheet in a HTML file generated
>> by the html4css1 writer?
What a pity. Otherwise I could have used the following conf settings
# These entries affect HTML output when the html4strict writer is used:
stylesheet: html4css1.css, html4css2.css
for the `html4strict`_ writer (assuming that giving more than one style
sheet were supported in the stylesheet option).
Now how should I best proceed?
* Let the html4css2.css style sheet import html4css1.css
- even with the embedd-stylesheet option, html4css1 is still needed to
be on the right place
* Copy and modify html4css1.css to get an all-inclusive html4css2.css
- all further updates to html4css1.css will need to be transfered to
html4css2.css (diff and patch are a great help here but it still is
a lot of work).
* Ask for the inclusion of the rules in html4css2.css into the docutils
- rules for a sandbox project in the distributed default sheet.
* Ask for inclusion of html4strict in the distribution
- it is not tested yet ...
.. _html4strict: http://docutils.sourceforge.net/sandbox/html4strict/