chiark / gitweb /
doc: explicitly put code roles into all files.
authorVladimír Vondruš <mosra@centrum.cz>
Sat, 4 Nov 2017 13:04:44 +0000 (14:04 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Sat, 4 Nov 2017 13:04:44 +0000 (14:04 +0100)
Even though Pelican doesn't complain now, as it depends heavily on the
order in which the files are parsed.

doc/css/components-test.rst
doc/css/components.rst
doc/css/grid.rst
doc/css/page-layout.rst
doc/css/typography.rst
doc/plugins/components.rst
doc/plugins/images.rst
doc/plugins/links.rst

index 3ab65557d5103a1d0f8016423029890a13ed153f..1badc589eb1208b362555cf53ce3c8216d5853c9 100644 (file)
@@ -29,6 +29,9 @@ Test
 :breadcrumb: {filename}/css.rst CSS
              {filename}/css/components.rst Components
 
+.. role:: html(code)
+    :language: html
+
 Blocks
 ======
 
index cc8f19aa29bee9a0e69b6038b3e4bebc974ebd22..4fdabc12c5ddb5088bcd62a96c265ea4f5388262 100644 (file)
@@ -32,6 +32,11 @@ Components
 
         `« Typography <{filename}/css/typography.rst>`_ | `CSS <{filename}/css.rst>`_ | `Page layout » <{filename}/css/page-layout.rst>`_
 
+.. role:: css(code)
+    :language: css
+.. role:: html(code)
+    :language: html
+
 m.css provides a set of basic components for further improving the layout and
 display of authored content.
 
index 0e16ab5254d8601041fe65d23feb03fe3319b97c..a3ccbf754a988b9620d0b8273c9e7e0da65ecb2a 100644 (file)
@@ -34,6 +34,8 @@ Grid system
 
 .. role:: css(code)
     :language: css
+.. role:: html(code)
+    :language: html
 
 Inspired by `Bootstrap <http://getbootstrap.com>`_, the grid system is the
 heart of a responsive website layout. The `m-grid.css <{filename}/css.rst>`_
index e8f3e35142a642de57ae90282b277c9f4b25cdb9..4ef34d8f233dc51505f60003a905f063f5fb3070 100644 (file)
@@ -35,6 +35,10 @@ Page layout
 .. role:: raw-html(raw)
    :format: html
 
+.. role:: css(code)
+    :language: css
+.. role:: html(code)
+    :language: html
 .. role:: sh(code)
     :language: sh
 
index 001552fcca517df034f204f113ed06eb947f531e..a1b1242ddf99118adee84cdd8f17167c8b7cb94a 100644 (file)
@@ -34,6 +34,8 @@ Typography
 
 .. role:: css(code)
     :language: css
+.. role:: html(code)
+    :language: html
 
 Right after being responsive, typography is the second most important thing in
 m.css and so the most often used HTML elements are styled to make them look
index a8e2ecbbffb421aa59b50c1150c6b81ef11ae3ac..1d34db6a7cdbe9d10397f6f917944e5450a67236 100644 (file)
@@ -32,14 +32,12 @@ Components
 
         `« HTML sanity <{filename}/plugins/htmlsanity.rst>`_ | `Pelican plugins <{filename}/plugins.rst>`_ | `Images » <{filename}/plugins/images.rst>`_
 
-.. role:: rst(code)
-    :language: rst
-
 .. role:: html(code)
     :language: html
-
-.. role:: css(code)
-    :language: css
+.. role:: py(code)
+    :language: py
+.. role:: rst(code)
+    :language: rst
 
 Most of m.css `CSS components <{filename}/css/components.rst>`_ are exposed to
 Pelican via custom :abbr:`reST <reStructuredText>` directives. Unlike with pure
index 7f25bc9cb8ff20b7b3f28a68521f55338b22ddc1..9bd69b31e483ebfc3d5c5d88a432caa528f1cd9d 100644 (file)
@@ -32,6 +32,13 @@ Images
 
         `« Components <{filename}/plugins/components.rst>`_ | `Pelican plugins <{filename}/plugins.rst>`_ | `Math and code » <{filename}/plugins/math-and-code.rst>`_
 
+.. role:: css(code)
+    :language: css
+.. role:: py(code)
+    :language: py
+.. role:: rst(code)
+    :language: rst
+
 Gives sane defaults to images and figures and provides a way to present
 beautiful image galleries.
 
index f1b301911dca0d6ea430eba14ea2e39f9baaed76..265d31991194c7ca5f69b2d33067e90b5b1f5558 100644 (file)
@@ -34,7 +34,6 @@ Links
 
 .. role:: py(code)
     :language: py
-
 .. role:: rst(code)
     :language: rst