diff --git a/docs/custom_templates.rst b/docs/custom_templates.rst index fc20e724..8505830b 100644 --- a/docs/custom_templates.rst +++ b/docs/custom_templates.rst @@ -46,33 +46,33 @@ matches the content served. You can generate hashes using www.srihash.org Every default template includes CSS classes in the body designed to support custom styling. -The index template (the top level page at /) gets this:: +The index template (the top level page at ``/``) gets this:: -The database template (/dbname) gets this:: +The database template (``/dbname``) gets this:: -The custom SQL template (/dbname?sql=...) gets this:: +The custom SQL template (``/dbname?sql=...``) gets this:: -The table template (/dbname/tablename) gets:: +The table template (``/dbname/tablename``) gets:: -The row template (/dbname/tablename/rowid) gets:: +The row template (``/dbname/tablename/rowid``) gets:: -The db-x and table-x classes use the database or table names themselves IF +The ``db-x`` and ``table-x`` classes use the database or table names themselves IF they are valid CSS identifiers. If they aren't, we strip any invalid characters out and append a 6 character md5 digest of the original name, in order to ensure that multiple tables which resolve to the same stripped character version still have different CSS classes. -Some examples: +Some examples:: "simple" => "simple" "MixedCase" => "MixedCase"