Add/override some stylesheet rules to work better for DocBook-generated HTML

This commit is contained in:
Ben Hutchings 2023-06-26 21:54:30 +02:00
parent 5a73950758
commit 88fa33d2e9
3 changed files with 18 additions and 1 deletions

2
debian/changelog vendored
View file

@ -3,6 +3,8 @@ kernel-handbook (1.0.22) UNRELEASED; urgency=medium
* Just link to the GNU GPL without mentioning a filename or mailing address
* Add and apply Debian stylesheet to HTML output
* stylesheet.xsl: Use namespaced tags to allow embedding un-namespaced HTML
* Add/override some stylesheet rules to work better for DocBook-generated
HTML
-- Ben Hutchings <benh@debian.org> Mon, 26 Jun 2023 18:07:00 +0200

View file

@ -0,0 +1,15 @@
@import url('debian.css');
/* Duplicate the #content rule, because we use different ids */
div.book, div.chapter {
margin: 0 10px 0 52px;
}
/* DocBook sets the "toc" class on both div and dl elements in a table
* of contents. Override the properties we don't want to duplicate on
* the dl. */
div.toc dl.toc {
border-bottom: none;
margin: 0;
max-width: 100%;
}

View file

@ -13,5 +13,5 @@
<!-- Put each <term> on a separate line, with no other separator -->
<xsl:param name="variablelist.term.break.after">1</xsl:param>
<xsl:param name="variablelist.term.separator"/>
<xsl:param name="html.stylesheet">debian.css</xsl:param>
<xsl:param name="html.stylesheet">kernel-handbook.css</xsl:param>
</xsl:stylesheet>