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.csscontains the default formatting for HTML generated from DocBook. It includesnormalize.css.db-prism.cssincludes and extendsprism.css. This handles the case where you’re using Prism JavaScript to do syntax highlighting.db-noprism.cssstyles verbatim environments where Prism isn’t being used.paged-media.cssadapts the styling for paged media. It includesdefault.cssanddb-noprism.css.paged-bw.cssadaptspaged-media.cssfor black-and-white output. It includespaged-media.css.paged-color.cssexists only as an alternative topaged-bw.css. It does nothing more than includepaged-media.css.
For HTML output, you should link to
default.cssand eitherdb-prism.cssordb-noprism.cssdepending on whether or not you want to use JavaScript syntax highlighting.For paged media, you should use
paged-media.cssorpaged-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.
- Callout numbers
-
JS:
dbmodnizr.jsa third party library of polyfills.prism.jsthe third party syntax highlighterannotations.jsa library to support annotations (somewhat crudely)nhrefs.jsa library to support multi-ended links (also somewhat crudely)
-
XML:
- An empty
$bibliography.collectiondocument - An empty
$glossary.collectiondocument
- 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.jssupports navigation around the slide deck