summaryrefslogtreecommitdiff
path: root/docs/dev/reST.rst
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2019-12-20 11:01:41 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2019-12-20 11:01:41 +0100
commitb82f61f7044665b900b0d8f556cbe207f3133837 (patch)
treee7dde5085527c62dd7b24968e6ebc34349eaa7f7 /docs/dev/reST.rst
parente1566e68aa9e18e60a86d0eea8772a3673cb3c7b (diff)
doc: reST primer -- describe admonitions & customize their CSS
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'docs/dev/reST.rst')
-rw-r--r--docs/dev/reST.rst72
1 files changed, 68 insertions, 4 deletions
diff --git a/docs/dev/reST.rst b/docs/dev/reST.rst
index 5522f9e15..69e4a9305 100644
--- a/docs/dev/reST.rst
+++ b/docs/dev/reST.rst
@@ -16,8 +16,6 @@ generated and deployed at :docs:`github.io <.>`.
The sources of Searx's documentation are located at :origin:`docs`. Run
:ref:`make docs-live <make docs-live>` to build HTML while editing.
-------
-
.. sidebar:: Further reading
- Sphinx-Primer_
@@ -36,8 +34,6 @@ The sources of Searx's documentation are located at :origin:`docs`. Run
:local:
:backlinks: entry
-------
-
Sphinx_ and reST_ have their place in the python ecosystem. Over that reST is
used in popular projects, e.g the Linux kernel documentation `[kernel doc]`_.
@@ -593,6 +589,74 @@ Further list blocks
- doctest blocks (:duref:`ref <doctest-blocks>`)
+Admonitions
+===========
+
+Admonitions: :dudir:`hint`, :dudir:`note`, :dudir:`tip` :dudir:`attention`,
+:dudir:`caution`, :dudir:`danger`, :dudir:`error`, , :dudir:`important`, ,
+:dudir:`warning` and the generic :dudir:`admonition <admonitions>`.
+
+.. code:: reST
+
+ .. admonition:: generic admonition title
+
+ lorem ipsum ..
+
+ .. hint::
+
+ lorem ipsum ..
+
+ .. note::
+
+ lorem ipsum ..
+
+ .. warning::
+
+ lorem ipsum ..
+
+
+.. admonition:: generic admonition title
+
+ lorem ipsum ..
+
+.. hint::
+
+ lorem ipsum ..
+
+.. note::
+
+ lorem ipsum ..
+
+.. tip::
+
+ lorem ipsum ..
+
+.. attention::
+
+ lorem ipsum ..
+
+.. caution::
+
+ lorem ipsum ..
+
+.. danger::
+
+ lorem ipsum ..
+
+.. important::
+
+ lorem ipsum ..
+
+.. error::
+
+ lorem ipsum ..
+
+.. warning::
+
+ lorem ipsum ..
+
+
+
.. _KISS: https://en.wikipedia.org/wiki/KISS_principle
.. _readability: https://docs.python-guide.org/writing/style/
.. _Sphinx-Primer: