Skip to content

Resources (CSS, JavaScript, images, etc.) used by the XSLT 2.0 stylesheets and their output

Notifications You must be signed in to change notification settings

docbook/xslt20-resources

Repository files navigation

DocBook XSLT 2.0 Resources

These are resources (CSS, JavaScript, images, etc.) used by the XSLT 2.0 stylesheets.

Releases are published on the DocBook CDN.

Share and enjoy.

Brief summary

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.

Base resources

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 includes normalize.css.
    • db-prism.css includes and extends prism.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 includes default.css and db-noprism.css.
    • paged-bw.css adapts paged-media.css for black-and-white output. It includes paged-media.css.
    • paged-color.css exists only as an alternative to paged-bw.css. It does nothing more than include paged-media.css.

    For HTML output, you should link to default.css and either db-prism.css or db-noprism.css depending on whether or not you want to use JavaScript syntax highlighting.

    For paged media, you should use paged-media.css or paged-bw.css, if you want only black-and-white output.

  • IMG:

    Contains a variety of default images:

    • Callout numbers 1, 2, etc.
    • Admonitions Note, Caution, etc.
    • Navigation images Next, Next, etc.
    • ToC controls Plus, Minus, etc.
    • Annotation controls Open, Close, 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 highlighter
    • annotations.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

Publishers resources

Additional CSS for elements added in the Publishers customization.

  • CSS:

    • publishers.css, additional styling for publishers elements.

Slides resources

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

About

Resources (CSS, JavaScript, images, etc.) used by the XSLT 2.0 stylesheets and their output

Resources

Stars

Watchers

Forks

Packages

No packages published