These are resources (CSS, JavaScript, images, etc.) used by the XSLT 2.0 stylesheets.
Releases are published on the DocBook CDN.
Share and enjoy.
There are three sets of resources: base
resources, used by all
documents. publishers
resources for the Publishers customization
layer, and slides
for the Slides customization layer.
The base
resources include css
, img
, js
, and xml
resources.
-
CSS:
- normalize.css and prism.css are third-party libraries.
default.css
contains the default formatting for HTML generated from DocBook. It includesnormalize.css
.db-prism.css
includes and extendsprism.css
. This handles the case where you’re using Prism JavaScript to do syntax highlighting.db-noprism.css
styles verbatim environments where Prism isn’t being used.paged-media.css
adapts the styling for paged media. It includesdefault.css
anddb-noprism.css
.paged-bw.css
adaptspaged-media.css
for black-and-white output. It includespaged-media.css
.paged-color.css
exists only as an alternative topaged-bw.css
. It does nothing more than includepaged-media.css
.
For HTML output, you should link to
default.css
and eitherdb-prism.css
ordb-noprism.css
depending on whether or not you want to use JavaScript syntax highlighting.For paged media, you should use
paged-media.css
orpaged-bw.css
, if you want only black-and-white output. -
IMG:
Contains a variety of default images:
- Callout numbers , , etc.
- Admonitions , , etc.
- Navigation images , , etc.
- ToC controls , , etc.
- Annotation controls , , etc.
- A “draft” image suitable for watermarking draft documents.
And a few other odds-and-ends.
-
JS:
dbmodnizr.js
a third party library of polyfills.prism.js
the third party syntax highlighterannotations.js
a library to support annotations (somewhat crudely)nhrefs.js
a library to support multi-ended links (also somewhat crudely)
-
XML:
- An empty
$bibliography.collection
document - An empty
$glossary.collection
document
- An empty
Additional CSS for elements added in the Publishers customization.
-
CSS:
publishers.css
, additional styling for publishers elements.
The slides
resources include css
, img
, and js
resources.
-
CSS:
slides.css
, additional styling for slides.
-
IMG:
- Header and footer images and some alternate navigation elements.
-
JS:
slides.js
supports navigation around the slide deck