From: Vladimír Vondruš Date: Thu, 21 Dec 2017 12:04:05 +0000 (+0100) Subject: doc: cross-link to related Pelican plugins from CSS components page. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=c69d063533f0864e0ecbd29ae88e8dfb36e8e927;p=blog.git doc: cross-link to related Pelican plugins from CSS components page. --- diff --git a/doc/css/components.rst b/doc/css/components.rst index 0b267c7f..4b3e254a 100644 --- a/doc/css/components.rst +++ b/doc/css/components.rst @@ -137,6 +137,12 @@ but the CSS class can be used on any block element. +.. note-info:: + + The `Pelican Components plugin <{filename}/plugins/components.rst#blocks-notes-frame>`__ + is able to produce blocks conveniently using :rst:`.. block-::` directives + in your :abbr:`reST ` markup. + `Badges`_ ========= @@ -167,6 +173,11 @@ Only :html:`

` is supported for a badge. get notified when he gets a better avatar.

+.. note-info:: + + The `Pelican Metadata plugin <{filename}/plugins/metadata.rst>`_ is able + to automatically render author and category badges for articles. + `Notes, frame`_ =============== @@ -245,6 +256,12 @@ semantic purposes, but the CSS classes can be used on any block element. +.. note-info:: + + Notes and frames can be created conveniently using :rst:`.. note-::` and + :rst:`.. frame::` directives in your :abbr:`reST ` markup + using the `Pelican Components plugin <{filename}/plugins/components.rst#blocks-notes-frame>`__. + `Text`_ ======= @@ -285,6 +302,12 @@ paragraph or inline text. +.. note-info:: + + Colored text paragraphs can be conveniently created using :rst:`.. text-::` + directives in your :abbr:`reST ` markup using the + `Pelican Components plugin <{filename}/plugins/components.rst#text>`__. + Apply :css:`.m-small` or :css:`.m-big` CSS class together with :css:`.m-text` to make the text appear smaller or larger. @@ -389,6 +412,12 @@ class inside the :html:`` to achieve the following effect: +.. note-info:: + + Buttons can be conveniently created using :rst:`.. button-::` directives in + your :abbr:`reST ` markup using the + `Pelican Components plugin <{filename}/plugins/components.rst#button-links>`__. + `Labels`_ ========= @@ -603,6 +632,12 @@ not the surrounding area: +.. note-info:: + + Images can be conveniently created with an :rst:`.. image::` directive in + your :abbr:`reST ` markup using the + `Pelican Images plugin <{filename}/plugins/images.rst>`_. + `Figures`_ ========== @@ -636,6 +671,12 @@ the border is distracting, apply the :css:`.m-flat` class to hide it. Photo © The Author +.. note-info:: + + Figures can be conveniently created with a :rst:`.. figure::` directive in + your :abbr:`reST ` markup using the + `Pelican Images plugin <{filename}/plugins/images.rst>`_. + `Image grid`_ ============= @@ -737,10 +778,10 @@ Then, percentage width :math:`p_i` of each image is calculated as: p_i = W \cfrac{w_i}{h_i} \cdot 100 \% -.. note-info:: +.. note-success:: - The image width calculation is quite annoying to do manually, that's why - m.css provides a `Pelican plugin <{filename}/plugins/images.rst#image-grid>`_ + The image width calculation is quite annoying to do manually and so there's + an :rst:`.. image-grid::` directive in the `Pelican Image plugin <{filename}/plugins/images.rst#image-grid>`_ that does the hard work for you. `Code`_ @@ -821,10 +862,10 @@ instead of :html:`
`:
 
 .. note-success::
 
-    To make your life easier, m.css provides a
-    `Pelican plugin <{filename}/plugins/math-and-code.rst#code>`__ that
-    integrates Pygments code highlighting as a :abbr:`reST `
-    directive.
+    To make your life easier, the `Pelican Code plugin <{filename}/plugins/math-and-code.rst#code>`__
+    integrates Pygments code highlighting as a :rst:`.. code::`
+    :abbr:`reST ` directive and a :rst:`:code:` inline text
+    role.
 
 `Colored terminal output`_
 ==========================
@@ -858,7 +899,7 @@ might then look similarly to this:
 
 .. note-success::
 
-    The Pelican plugin mentioned above is able to do
+    The Pelican Code plugin mentioned above is able to do
     `colored console highlighting as well <{filename}/plugins/math-and-code.rst#colored-terminal-output>`_.
 
 `Code figure`_
@@ -899,6 +940,12 @@ It's also possible to have matching border for a console output. Just use
 :css:`.m-console-figure` instead of :css:`.m-code-figure` on the :html:`
` element. +.. note-info:: + + Code figures can be conveniently created with a :rst:`.. code-figure::` + directive in your :abbr:`reST ` markup using the + `Pelican Components plugin <{filename}/plugins/components.rst#code-figure>`_. + `Math`_ ======= @@ -1000,11 +1047,13 @@ the ``depth`` value returned on stderr can be taken as a base for the character.

-.. note-warning:: +.. note-success:: - Producing SVG manually using command-line tools is no fun, so m.css - provides a `Pelican plugin <{filename}/plugins/math-and-code.rst#math>`__ - that integrates LaTeX math directly into your markup. Check it out! + Producing SVG manually using command-line tools is no fun. That's why the + :rst:`.. math::` directive and :rst:`:math:` inline text role in the + `Pelican Math plugin <{filename}/plugins/math-and-code.rst#math>`__ + integrates LaTeX math directly into your :abbr:`reST ` + markup for convenient content authoring. `Padding`_ ========== diff --git a/doc/css/typography.rst b/doc/css/typography.rst index e501ccb0..e82b4279 100644 --- a/doc/css/typography.rst +++ b/doc/css/typography.rst @@ -304,6 +304,12 @@ fancy transition, use :css:`.m-transition` on a paragraph. accumsan ante sit amet iaculis. Phasellus rhoncus hendrerit leo vitae lacinia. Maecenas iaculis dui ex, eu interdum lacus ornare sit amet.

+.. note-info:: + + Transitions can be conveniently created with a :rst:`.. transition::` + directive in your :abbr:`reST ` markup using the + `Pelican Components plugin <{filename}/plugins/components.rst#transitions>`_. + `Preformatted blocks`_ ======================