ringdocdocumentation for Ring packages

Templates and styles

Change how the site and the PDF look.

The page template#

The template of the pages is templates/page.template. A project may have its own page.template and name it in :template. The values are written as %(name)s:

ValueIs
title, leadthe title and the sentence of the page
sitename, tagline, logo, footerthe keys of the project
sidebarthe navigation
tocasidethe table of contents of the page
bodythe content
prev, nextthe links to the neighbours
root, headthe path to the root and extra items for the head of the page

Styles and script#

assets/style.css and assets/site.js are copied to the site. Files of the same names in the folder assets/ of the project are used in their place, so a project can change the colours or add behaviour.

The PDF#

assets/pdf.css is the print style. The assets/pdf.css of a project is added after it, and a pdfdoc.template in the project replaces the document of the PDF (%(css)s, %(cover)s, %(toc)s, %(parts)s).

ringdoc - documentation made with ringdoc.