..  _reST primer: 
  
						
						
						
							
  
						
						
						
							=========== 
 
						
						
						
							reST primer 
 
						
						
						
							=========== 
 
						
						
						
							
  
						
						
						
							..  sidebar ::  KISS_ and readability_
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:docs: `github.io <.>` .  For build prerequisites read
  
						
						
						
							:ref: `docs build` .
  
						
						
						
							
  
						
						
						
							:origin: `docs` .  Sphinx
  
						
						
						
							
  
						
						
						
							<make docs-live> ` to build HTML while editing.
  
						
						
						
							
  
						
						
						
							..  sidebar ::  Further reading
  
						
						
						
							 
						
						
						
							   -  Sphinx-Primer_
  
						
						
						
							-  `Sphinx markup constructs`_ 
  
						
						
						
							-  reST_, docutils_, `docutils FAQ`_ 
  
						
						
						
							-  Sphinx_, `sphinx-doc FAQ`_ 
  
						
						
						
							-  `sphinx config`_ , doctree_
  
						
						
						
							-  `sphinx cross references`_ 
  
						
						
						
							-  linuxdoc_
  
						
						
						
							-  intersphinx_
  
						
						
						
							-  sphinx-jinja_
  
						
						
						
							-  `Sphinx's autodoc`_ 
  
						
						
						
							-  `Sphinx's Python domain`_ , `Sphinx's C domain`_ 
  
						
						
						
							-  SVG_, ImageMagick_
  
						
						
						
							-  DOT_, `Graphviz's dot`_ , Graphviz_
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  contents ::  Contents
  
						
						
						
							:depth:  3 
  
						
						
						
							:local: 
  
						
						
						
							:backlinks:  entry 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							`[kernel doc]`_ .
  
						
						
						
							
  
						
						
						
							..  _[kernel doc]:  https://www.kernel.org/doc/html/latest/doc-guide/sphinx.html
  
						
						
						
							
  
						
						
						
							..  sidebar ::  Content matters
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							**reST**  is a plaintext markup language, its markup is *mostly*  intuitive and
  
						
						
						
							
  
						
						
						
							*mostly* : like everything in live, reST has its advantages and
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Soft skills 
 
						
						
						
							=========== 
 
						
						
						
							
  
						
						
						
							**soft skills**  a
  
						
						
						
							
  
						
						
						
							 
						
						
						
							-  Documentation is dedicated to an audience and answers questions from the
  
						
						
						
							
  
						
						
						
							-  Don't detail things which are general knowledge from the audience point of
  
						
						
						
							
  
						
						
						
							-  Limit the subject, use cross links for any further reading.
  
						
						
						
							
  
						
						
						
							*point of view*  means.  In the (:origin: `docs` )
  
						
						
						
							*blog*  folder), each dedicate to a
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:origin: `docs/user` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:origin: `docs/admin` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:origin: `docs/dev` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST inline markup: 
  
						
						
						
							
  
						
						
						
							Basic inline markup 
 
						
						
						
							=================== 
 
						
						
						
							
  
						
						
						
							..  sidebar ::  Inline markup
  
						
						
						
							 
						
						
						
							   -  :ref: `reST roles` 
  
						
						
						
							-  :ref: `reST smart ref` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							`` \*pointer `` ).
  
						
						
						
							
  
						
						
						
							..  table ::  basic inline markup
  
						
						
						
							:widths:  4 3 7 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							*italics*             `` *italics* `` 
  
						
						
						
							**boldface**          `` **boldface** `` 
  
						
						
						
							`` foo() ``             `` ` ` foo() ` ` `` 
  
						
						
						
							`` \*foo is a pointer `` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST basic structure: 
  
						
						
						
							
  
						
						
						
							Basic article structure 
 
						
						
						
							======================= 
 
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST template: 
  
						
						
						
							
  
						
						
						
							reST template 
 
						
						
						
							------------- 
 
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							    ..  _doc refname: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:ref: `chapter refname` .
  
						
						
						
							
  
						
						
						
							    ..  _chapter refname: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							    ..  _section refname: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							    ..  _subsection refname: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Headings 
 
						
						
						
							-------- 
 
						
						
						
							
 
						
						
						
							#.  title - with overline for document title:
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							 
						
						
						
							
 
						
						
						
							#.  chapter - with anchor named `` anchor name `` :
  
						
						
						
							
  
						
						
						
							   ..  code ::  reST 
 
						
						
						
							
 
						
						
						
							      ..  _anchor name: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							#.  section
  
						
						
						
							
  
						
						
						
							   ..  code ::  reST 
 
						
						
						
							
 
						
						
						
							      Section
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							#.  subsection
  
						
						
						
							
  
						
						
						
							   ..  code ::  reST 
 
						
						
						
							
 
						
						
						
							      Subsection
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Anchors & Links 
 
						
						
						
							=============== 
 
						
						
						
							
  
						
						
						
							..  _reST anchor: 
  
						
						
						
							
  
						
						
						
							Anchors 
 
						
						
						
							------- 
 
						
						
						
							
  
						
						
						
							..  _ref role: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							*"Chapters"* 
  
						
						
						
							`` chapter title `` .  Another example from *this*  document,
  
						
						
						
							`` reST anchor `` :
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  _reST anchor: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							`ref role`_  markup:
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   Visit chapter :ref: `reST anchor` .  Or set hyperlink text manualy :ref:`foo
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  admonition ::  `` :ref: ``  role
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							:ref: `reST anchor` .  Or set hyperlink text manualy :ref:`foo
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST ordinary ref: 
  
						
						
						
							
  
						
						
						
							Link ordinary URL 
 
						
						
						
							----------------- 
 
						
						
						
							
  
						
						
						
							*named*  hyperlinks to maintain
  
						
						
						
							*this*  article:
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  _Sphinx Field Lists: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							*named*  hyperlink `Sphinx Field Lists`_ , the raw text is much more
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  admonition ::  Named hyperlink
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							*named*  hyperlink `Sphinx Field Lists`_ , the raw text is much more
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST smart ref: 
  
						
						
						
							
  
						
						
						
							Smart refs 
 
						
						
						
							---------- 
 
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  table ::  smart refs with sphinx.ext.extlinks_ and intersphinx_
  
						
						
						
							:widths:  4 3 7 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:rst:role: `rfc`             :rfc: `822`                          `` :rfc: ` 822 ` `` 
  
						
						
						
							:rst:role: `pep`             :pep: `8`                            `` :pep: ` 8 ` `` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:wiki: `Offline-engines`             `` :wiki: ` Offline-engines ` `` 
  
						
						
						
							:docs: `dev/reST.html`               `` :docs: ` dev/reST.html ` `` 
  
						
						
						
							:origin: `docs/dev/reST.rst`         `` :origin: ` docs/dev/reST.rst ` `` 
  
						
						
						
							:pull: `1756`                        `` :pull: ` 1756 ` `` 
  
						
						
						
							:patch: `af2cae6`                    `` :patch: ` af2cae6 ` `` 
  
						
						
						
							:pypi: `searx`                       `` :pypi: ` searx ` `` 
  
						
						
						
							:man: `bash`                         `` :man: ` bash ` `` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:ref: `python:and`                   `` :ref: ` python:and ` `` 
  
						
						
						
							:doc: `jinja:templates`              `` :doc: ` jinja:templates ` `` 
  
						
						
						
							:py:obj: `datetime.datetime`         `` :py:obj: ` datetime.datetime ` `` 
  
						
						
						
							:py:obj: `flask.Flask`               `` :py:obj: ` flask.Flask ` `` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:origin: `docs/conf.py` :
  
						
						
						
							
  
						
						
						
							..  code ::  python 
 
						
						
						
							
 
						
						
						
							    intersphinx_mapping  =  { 
 
						
						
						
							        " python " :  ( " https://docs.python.org/3/ " ,  None ) , 
 
						
						
						
							        " flask " :  ( " https://flask.palletsprojects.com/ " ,  None ) , 
 
						
						
						
							        " jinja " :  ( " https://jinja.palletsprojects.com/ " ,  None ) , 
 
						
						
						
							        " linuxdoc "  :  ( " https://return42.github.io/linuxdoc/ " ,  None ) , 
 
						
						
						
							        " sphinx "  :  ( " https://www.sphinx-doc.org/en/master/ " ,  None ) , 
 
						
						
						
							    } 
 
						
						
						
							
 
						
						
						
							
 
						
						
						
							To list all anchors of the inventory (e.g. `` python `` ) use:
  
						
						
						
							
  
						
						
						
							..  code ::  sh 
 
						
						
						
							
 
						
						
						
							   $ python -m sphinx.ext.intersphinx https://docs.python.org/3/objects.inv
 
						
						
						
							
 
						
						
						
							Literal blocks 
 
						
						
						
							============== 
 
						
						
						
							
  
						
						
						
							:duref: `literal-blocks`  is a indented block introduced by
  
						
						
						
							`` :: `` ).  For highlighting use :dudir: `highlight`  or :ref:`reST
  
						
						
						
							
  
						
						
						
							:rst:dir: `literalinclude`  or :ref: `kernel-include <kernel-include-directive>` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST literal: 
  
						
						
						
							
  
						
						
						
							``::`` 
 
						
						
						
							------ 
 
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   :: 
 
						
						
						
							
 
						
						
						
							      Literal block 
 
						
						
						
							
  
						
						
						
							:: 
 
						
						
						
							
 
						
						
						
							      Literal block 
 
						
						
						
							
  
						
						
						
							
  
						
						
						
							:: 
 
						
						
						
							
 
						
						
						
							      Literal block 
 
						
						
						
							
  
						
						
						
							..  admonition ::  Literal block
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							:: 
 
						
						
						
							
 
						
						
						
							      Literal block 
 
						
						
						
							
  
						
						
						
							:: 
 
						
						
						
							
 
						
						
						
							      Literal block 
 
						
						
						
							
  
						
						
						
							
  
						
						
						
							:: 
 
						
						
						
							
 
						
						
						
							      Literal block 
 
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST code: 
  
						
						
						
							
  
						
						
						
							``code-block`` 
 
						
						
						
							-------------- 
 
						
						
						
							
  
						
						
						
							..  _pygments:  https://pygments.org/languages/
  
						
						
						
							
  
						
						
						
							..  sidebar ::  Syntax highlighting
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:rst:dir: `code-block`  directive is a variant of the :dudir: `code`  directive
  
						
						
						
							
  
						
						
						
							:ref: `sphinx:code-examples` .
  
						
						
						
							
  
						
						
						
							..  code-block ::  reST 
 
						
						
						
							
 
						
						
						
							   The URL `` /stats ``  handle is shown in :ref: `stats-handle` 
  
						
						
						
							
  
						
						
						
							   ..  code-block ::  Python
  
						
						
						
							:caption:  python code block 
  
						
						
						
							:name:  stats-handle 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  code-block ::  reST
  
						
						
						
							
  
						
						
						
							..  admonition ::  Code block
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							`` /stats ``  handle is shown in :ref: `stats-handle` 
  
						
						
						
							
  
						
						
						
							   ..  code-block ::  Python
  
						
						
						
							:caption:  python code block 
  
						
						
						
							:name:  stats-handle 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Unicode substitution 
 
						
						
						
							==================== 
 
						
						
						
							
  
						
						
						
							:dudir: `unicode directive <unicode-character-codes>`  converts Unicode
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  code-block ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  |copy|  unicode ::  0xA9 .. copyright sign
  
						
						
						
							   ..  |(TM)|  unicode ::  U+2122
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  admonition ::  Unicode
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							   ..  |copy|  unicode ::  0xA9 .. copyright sign
  
						
						
						
							   ..  |(TM)|  unicode ::  U+2122
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST roles: 
  
						
						
						
							
  
						
						
						
							Roles 
 
						
						
						
							===== 
 
						
						
						
							
  
						
						
						
							..  sidebar ::  Further reading
  
						
						
						
							 
						
						
						
							   -  `Sphinx Roles`_ 
  
						
						
						
							-  :doc: `sphinx:usage/restructuredtext/domains` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							*custom interpreted text role*  (:duref: `ref <roles>` ) is an inline piece of
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   :rolename: `ref-name` 
  
						
						
						
							:rolename: `ref text <ref-name>` 
  
						
						
						
							
  
						
						
						
							..  table ::  smart refs with sphinx.ext.extlinks_ and intersphinx_
  
						
						
						
							:widths:  4 3 7 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:rst:role: `guilabel`        :guilabel: `&Cancel`                 `` :guilabel: ` &Cancel ` `` 
  
						
						
						
							:rst:role: `kbd`             :kbd: `C-x C-f`                      `` :kbd: ` C-x C-f ` `` 
  
						
						
						
							:rst:role: `menuselection`   :menuselection: `Open --> File`      `` :menuselection: ` Open --> File ` `` 
  
						
						
						
							:rst:role: `download`        :download: `this file <reST.rst>`    `` :download: ` this file <reST.rst> ` `` 
  
						
						
						
							:math: `a^2 + b^2 = c^2`             `` :math: ` a^2 + b^2 = c^2 ` `` 
  
						
						
						
							:rst:role: `ref`             :ref: `svg image example`            `` :ref: ` svg image example ` `` 
  
						
						
						
							:rst:role: `command`         :command: `ls -la`                   `` :command: ` ls -la ` `` 
  
						
						
						
							:durole: `emphasis`          :emphasis: `italic`                  `` :emphasis: ` italic ` `` 
  
						
						
						
							:durole: `strong`            :strong: `bold`                      `` :strong: ` bold ` `` 
  
						
						
						
							:durole: `literal`           :literal: `foo()`                    `` :literal: ` foo() ` `` 
  
						
						
						
							:durole: `subscript`         H\ :sub: `2` \ O                     `` H\ :sub: ` 2 ` \ O `` 
  
						
						
						
							:durole: `superscript`       E = mc\ :sup: `2`                    `` E = mc\ :sup: ` 2 ` `` 
  
						
						
						
							:durole: `title-reference`   :title: `Time`                       `` :title: ` Time ` `` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Figures & Images 
 
						
						
						
							================ 
 
						
						
						
							
  
						
						
						
							..  sidebar ::  Image processing
  
						
						
						
							
  
						
						
						
							:ref: `linuxdoc <linuxdoc:kfigure>`  the build process
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:ref: `linuxdoc:kfigure` .  Scaleable here means;
  
						
						
						
							
  
						
						
						
							’ 
  
						
						
						
							
  
						
						
						
							:ref: `linuxdoc:kfigure`  the build process
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							`` kernel-figure ``  (inheritance
  
						
						
						
							:dudir: `figure` ) and `` kernel-image ``  (inheritance of :dudir: `image` )
  
						
						
						
							
  
						
						
						
							:ref: `svg image example` ):
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  _svg image example: 
  
						
						
						
							
  
						
						
						
							   ..  kernel-figure ::  svg_image.svg
  
						
						
						
							:alt:  SVG image example 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:ref: `svg image example` .
  
						
						
						
							
  
						
						
						
							..  _svg image example: 
  
						
						
						
							
  
						
						
						
							..  kernel-figure ::  svg_image.svg
  
						
						
						
							:alt:  SVG image example 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:ref: `svg image example` .
  
						
						
						
							
  
						
						
						
							DOT files (aka Graphviz) 
 
						
						
						
							------------------------ 
 
						
						
						
							
  
						
						
						
							:ref: `linuxdoc:kernel-figure`  reST support for **DOT**  formatted files is
  
						
						
						
							
  
						
						
						
							 
						
						
						
							-  `Graphviz's dot`_ 
  
						
						
						
							-  DOT_
  
						
						
						
							-  Graphviz_
  
						
						
						
							
  
						
						
						
							:ref: `dot file example` :
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  _dot file example: 
  
						
						
						
							
  
						
						
						
							   ..  kernel-figure ::  hello.dot
  
						
						
						
							:alt:  hello world 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  admonition ::  hello.dot
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							   ..  _dot file example: 
  
						
						
						
							
  
						
						
						
							   ..  kernel-figure ::  hello.dot
  
						
						
						
							:alt:  hello world 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							``kernel-render`` DOT 
 
						
						
						
							--------------------- 
 
						
						
						
							
  
						
						
						
							*render*  markups (or languages) like Graphviz's **DOT**  is provided by the
  
						
						
						
							:ref: `linuxdoc:kernel-render`  directive.  A simple example of embedded DOT_ is
  
						
						
						
							:ref: `dot render example` :
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  _dot render example: 
  
						
						
						
							
  
						
						
						
							   ..  kernel-render ::  DOT
  
						
						
						
							:alt:  digraph 
  
						
						
						
							:caption:  Embedded  DOT (Graphviz) code 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							`` caption ``  is needed, if you want to refer the figure: :ref:`dot
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:ref: `build tools <linuxdoc:kfigure_build_tools>` .  If Graphviz_ is
  
						
						
						
							
  
						
						
						
							*literal-block* .
  
						
						
						
							
  
						
						
						
							..  admonition ::  kernel-render DOT
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							   ..  _dot render example: 
  
						
						
						
							
  
						
						
						
							   ..  kernel-render ::  DOT
  
						
						
						
							:alt:  digraph 
  
						
						
						
							:caption:  Embedded  DOT (Graphviz) code 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							`` caption ``  is needed, if you want to refer the figure: :ref:`dot
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							``kernel-render`` SVG 
 
						
						
						
							--------------------- 
 
						
						
						
							
  
						
						
						
							:ref: `svg render example` :
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  _svg render example: 
  
						
						
						
							
  
						
						
						
							   ..  kernel-render ::  SVG
  
						
						
						
							:caption:  Embedded **SVG** markup 
  
						
						
						
							:alt:  so-nw-arrow 
  
						
						
						
							..
  
						
						
						
							
  
						
						
						
							  .. code:: xml
  
						
						
						
							
  
						
						
						
							      <?xml version="1.0" encoding="UTF-8"?>
  
						
						
						
							      <svg xmlns="http://www.w3.org/2000/svg" version="1.1"
  
						
						
						
							           baseProfile="full" width="70px" height="40px"
  
						
						
						
							           viewBox="0 0 700 400"
  
						
						
						
							           >
  
						
						
						
							        <line x1="180" y1="370"
  
						
						
						
							              x2="500" y2="50"
  
						
						
						
							              stroke="black" stroke-width="15px"
  
						
						
						
							              />
  
						
						
						
							        <polygon points="585 0 525 25 585 50"
  
						
						
						
							                 transform="rotate(135 525 25)"
  
						
						
						
							                 />
  
						
						
						
							      </svg>
  
						
						
						
							
  
						
						
						
							..  admonition ::  kernel-render SVG
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							   ..  _svg render example: 
  
						
						
						
							
  
						
						
						
							   ..  kernel-render ::  SVG
  
						
						
						
							:caption:  Embedded **SVG** markup 
  
						
						
						
							:alt:  so-nw-arrow 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST lists: 
  
						
						
						
							
  
						
						
						
							List markups 
 
						
						
						
							============ 
 
						
						
						
							
  
						
						
						
							Bullet list 
 
						
						
						
							----------- 
 
						
						
						
							
  
						
						
						
							:duref: `ref <bullet-lists>` ) is simple:
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   -  This is a bulleted list.
  
						
						
						
							 
						
						
						
							     1.  Nested lists are possible, but be aware that they must be separated from
  
						
						
						
							
  
						
						
						
							2.  Second item of nested list
  
						
						
						
							 
						
						
						
							   -  It has two items, the second
  
						
						
						
							
  
						
						
						
							 
						
						
						
							   #.  This is a numbered list.
  
						
						
						
							#.  It has two items too.
  
						
						
						
							
  
						
						
						
							..  admonition ::  bullet list
  
						
						
						
							:class:  rst-example 
  
						
						
						
							 
						
						
						
							   -  This is a bulleted list.
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							2.  Second item of nested list
  
						
						
						
							 
						
						
						
							   -  It has two items, the second
  
						
						
						
							
  
						
						
						
							 
						
						
						
							   #.  This is a numbered list.
  
						
						
						
							#.  It has two items too.
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Horizontal list 
 
						
						
						
							--------------- 
 
						
						
						
							
  
						
						
						
							:rst:dir: `.. hlist:: <hlist>`  transforms a bullet list into a more compact
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  hlist :: 
  
						
						
						
							 
						
						
						
							      -  first list item
  
						
						
						
							-  second list item
  
						
						
						
							-  third list item
  
						
						
						
							      ...
  
						
						
						
							
  
						
						
						
							..  admonition ::  hlist
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							   ..  hlist :: 
  
						
						
						
							 
						
						
						
							      -  first list item
  
						
						
						
							-  second list item
  
						
						
						
							-  third list item
  
						
						
						
							-  next list item
  
						
						
						
							-  next list item xxxx
  
						
						
						
							-  next list item yyyy
  
						
						
						
							-  next list item zzzz
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Definition list 
 
						
						
						
							--------------- 
 
						
						
						
							
  
						
						
						
							..  sidebar ::  Note ..
  
						
						
						
							 
						
						
						
							   -  the term cannot have more than one line of text
  
						
						
						
							 
						
						
						
							   -  there is **no blank line between term and definition block**  // this
  
						
						
						
							:duref: `ref <definition-lists>` ) from block
  
						
						
						
							:duref: `ref <block-quotes>` ).
  
						
						
						
							
  
						
						
						
							:duref: `ref <definition-lists>` ) item contains a term,
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							**space, colon, space** ).  A definition is a block indented
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							*this distinguishes definition lists from block quotes* ).  Blank lines are
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   term 1 (up to a line of text)
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							**There is a blank line**  in between
  
						
						
						
							
  
						
						
						
							**block quote**  (:duref: `ref <block-quotes>` ) and not as term's definition!
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  admonition ::  definition list
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							**There is a blank line**  in between
  
						
						
						
							
  
						
						
						
							**block quote**  (:duref: `ref <block-quotes>` ) and not as term's definition!
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Quoted paragraphs 
 
						
						
						
							----------------- 
 
						
						
						
							
  
						
						
						
							:duref: `ref <block-quotes>` ) are created by just indenting
  
						
						
						
							
  
						
						
						
							<line-blocks> `) are a way of preserving line breaks:
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   normal paragraph ...
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							 
						
						
						
							   |  These lines are
  
						
						
						
							|  broken exactly like in
  
						
						
						
							|  the source file.
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  admonition ::  Quoted paragraph and line block
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							 
						
						
						
							   |  These lines are
  
						
						
						
							|  broken exactly like in
  
						
						
						
							|  the source file.
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST field list: 
  
						
						
						
							
  
						
						
						
							Field Lists 
 
						
						
						
							----------- 
 
						
						
						
							
  
						
						
						
							..  _Sphinx Field Lists: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  sidebar ::   bibliographic fields
  
						
						
						
							
  
						
						
						
							`Sphinx Field Lists`_ .
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   :fieldname:  Field content 
  
						
						
						
							:foo:        first paragraph in field foo 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:bar:        Field content 
  
						
						
						
							
  
						
						
						
							..  admonition ::  Field List
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							:fieldname:  Field content 
  
						
						
						
							:foo:        first paragraph in field foo 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:bar:        Field content 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  code ::  python 
 
						
						
						
							
 
						
						
						
							   def  my_function ( my_arg ,  my_other_arg ) : 
 
						
						
						
							       """ A function just for me. 
  
						
						
						
							
  
						
						
						
							       :param my_arg: The first of my arguments. 
  
						
						
						
							       :param my_other_arg: The second of my arguments. 
  
						
						
						
							
  
						
						
						
							       :returns: A message (just for me, of course). 
  
						
						
						
							        """ 
 
						
						
						
							
 
						
						
						
							Further list blocks 
 
						
						
						
							------------------- 
 
						
						
						
							
 
						
						
						
							-  field lists (:duref: `ref <field-lists>` , with caveats noted in
  
						
						
						
							:ref: `reST field list` )
  
						
						
						
							-  option lists (:duref: `ref <option-lists>` )
  
						
						
						
							-  quoted literal blocks (:duref: `ref <quoted-literal-blocks>` )
  
						
						
						
							-  doctest blocks (:duref: `ref <doctest-blocks>` )
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Admonitions 
 
						
						
						
							=========== 
 
						
						
						
							
  
						
						
						
							Sidebar 
 
						
						
						
							------- 
 
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  sidebar ::  KISS_ and readability_
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Generic admonition 
 
						
						
						
							------------------ 
 
						
						
						
							
  
						
						
						
							:dudir: `admonition <admonitions>`  needs a title:
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  admonition ::  generic admonition title
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  admonition ::  generic admonition title
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Specific admonitions 
 
						
						
						
							-------------------- 
 
						
						
						
							
  
						
						
						
							:dudir: `hint` , :dudir: `note` , :dudir: `tip`  :dudir: `attention` ,
  
						
						
						
							:dudir: `caution` , :dudir: `danger` , :dudir: `error` , , :dudir: `important` , and
  
						
						
						
							:dudir: `warning`  .
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  hint :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							   ..  note :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							   ..  warning :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  hint :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  note :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  tip :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  attention :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  caution :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  danger :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  important :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  error :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  warning :: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							Tables 
 
						
						
						
							====== 
 
						
						
						
							
  
						
						
						
							..  sidebar ::  Nested tables
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:ref: `reST simple table`  and :ref: `reST grid table`  might
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  sidebar ::  List tables
  
						
						
						
							
  
						
						
						
							:ref: `reST flat table` .
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							 
						
						
						
							*  `Emacs Table Mode`_ 
  
						
						
						
							*  `Online Tables Generator`_ 
  
						
						
						
							
  
						
						
						
							..  _reST simple table: 
  
						
						
						
							
  
						
						
						
							Simple tables 
 
						
						
						
							------------- 
 
						
						
						
							
  
						
						
						
							:duref: `Simple tables <simple-tables>`  allow *colspan*  but not *rowspan* .  If
  
						
						
						
							`` .. table::
  
						
						
						
							directive ``  :dudir: `(ref) <table>`  in front and place the table in its body:
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  table ::  foo gate truth table
  
						
						
						
							:widths:  grid 
  
						
						
						
							:align:  left 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  admonition ::  Simple ASCII table
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							   ..  table ::  foo gate truth table
  
						
						
						
							:widths:  grid 
  
						
						
						
							:align:  left 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST grid table: 
  
						
						
						
							
  
						
						
						
							Grid tables 
 
						
						
						
							----------- 
 
						
						
						
							
  
						
						
						
							:duref: `Grid tables <grid-tables>`  allow colspan *colspan*  and *rowspan* :
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  table ::  grid table example
  
						
						
						
							:widths:  1 1 5 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							|  Header 1   | Header 2   | Header 3  |
  
						
						
						
							
  
						
						
						
							|  body row 1 | column 2   | column 3  |
  
						
						
						
							
  
						
						
						
							|  body row 2 | Cells may span columns.|
  
						
						
						
							
  
						
						
						
							|  body row 3 | Cells may  | - Cells   |
  
						
						
						
							
  
						
						
						
							|  body row 4 |            | - blocks. |
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  admonition ::  ASCII grid table
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							   ..  table ::  grid table example
  
						
						
						
							:widths:  1 1 5 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							|  Header 1   | Header 2   | Header 3  |
  
						
						
						
							
  
						
						
						
							|  body row 1 | column 2   | column 3  |
  
						
						
						
							
  
						
						
						
							|  body row 2 | Cells may span columns.|
  
						
						
						
							
  
						
						
						
							|  body row 3 | Cells may  | - Cells   |
  
						
						
						
							
  
						
						
						
							|  body row 4 |            | - blocks. |
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _reST flat table: 
  
						
						
						
							
  
						
						
						
							flat-table 
 
						
						
						
							---------- 
 
						
						
						
							
  
						
						
						
							`` flat-table ``  is a further developed variant of the :ref:`list tables
  
						
						
						
							<linuxdoc:list-table-directives> `.  It is a double-stage list similar to the
  
						
						
						
							:dudir: `list-table`  with some additional features:
  
						
						
						
							
  
						
						
						
							`` cspan `` 
  
						
						
						
							`` cspan ``  a cell can be extended through additional columns
  
						
						
						
							
  
						
						
						
							`` rspan `` 
  
						
						
						
							`` rspan ``  a cell can be extended through additional rows
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							`` :fill-cells: ``  this behavior can changed
  
						
						
						
							*auto span*  to *auto fill* , which automatically inserts (empty) cells
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							*morecols* )
  
						
						
						
							*morerows* )
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							*table-row* . In the *table-row*  there is only one markup allowed,
  
						
						
						
							*table-row* . Exception are *comments*  ( `` .. ``  )
  
						
						
						
							*targets*  (e.g. a ref to :ref: `row 2 of table's body <row body 2>` ).
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  flat-table ::  `` flat-table ``  example
  
						
						
						
							:header-rows:  2 
  
						
						
						
							:stub-columns:  1 
  
						
						
						
							:widths:  1 1 1 1 2 
  
						
						
						
							 
						
						
						
							      *  - :rspan: `1`  head / stub
  
						
						
						
							-  :cspan: `3`  head 1.1-4
  
						
						
						
							 
						
						
						
							      *  - head 2.1
  
						
						
						
							-  head 2.2
  
						
						
						
							-  head 2.3
  
						
						
						
							-  head 2.4
  
						
						
						
							 
						
						
						
							      *  .. row body 1 / this is a comment
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							-  :rspan: `2`  cell 1-3.1
  
						
						
						
							-  cell 1.2
  
						
						
						
							-  cell 1.3
  
						
						
						
							-  cell 1.4
  
						
						
						
							 
						
						
						
							      *  .. Comments and targets are allowed on *table-row*  stage.
  
						
						
						
							        ..  _`row body 2`: 
  
						
						
						
							 
						
						
						
							        -  row 2
  
						
						
						
							-  cell 2.2
  
						
						
						
							-  :rspan: `1`  :cspan: `1` 
  
						
						
						
							
  
						
						
						
							 
						
						
						
							          *  col 3-4 &
  
						
						
						
							*  row 2-3
  
						
						
						
							 
						
						
						
							      *  - row 3
  
						
						
						
							-  cell 3.2
  
						
						
						
							 
						
						
						
							      *  - row 4
  
						
						
						
							-  cell 4.1
  
						
						
						
							-  cell 4.2
  
						
						
						
							-  cell 4.3
  
						
						
						
							-  cell 4.4
  
						
						
						
							 
						
						
						
							      *  - row 5
  
						
						
						
							-  cell 5.1 with automatic span to rigth end
  
						
						
						
							 
						
						
						
							      *  - row 6
  
						
						
						
							-  cell 6.1
  
						
						
						
							-  ..
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  admonition ::  List table
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							   ..  flat-table ::  `` flat-table ``  example
  
						
						
						
							:header-rows:  2 
  
						
						
						
							:stub-columns:  1 
  
						
						
						
							:widths:  1 1 1 1 2 
  
						
						
						
							 
						
						
						
							      *  - :rspan: `1`  head / stub
  
						
						
						
							-  :cspan: `3`  head 1.1-4
  
						
						
						
							 
						
						
						
							      *  - head 2.1
  
						
						
						
							-  head 2.2
  
						
						
						
							-  head 2.3
  
						
						
						
							-  head 2.4
  
						
						
						
							 
						
						
						
							      *  .. row body 1 / this is a comment
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							-  :rspan: `2`  cell 1-3.1
  
						
						
						
							-  cell 1.2
  
						
						
						
							-  cell 1.3
  
						
						
						
							-  cell 1.4
  
						
						
						
							 
						
						
						
							      *  .. Comments and targets are allowed on *table-row*  stage.
  
						
						
						
							        ..  _`row body 2`: 
  
						
						
						
							 
						
						
						
							        -  row 2
  
						
						
						
							-  cell 2.2
  
						
						
						
							-  :rspan: `1`  :cspan: `1` 
  
						
						
						
							
  
						
						
						
							 
						
						
						
							          *  col 3-4 &
  
						
						
						
							*  row 2-3
  
						
						
						
							 
						
						
						
							      *  - row 3
  
						
						
						
							-  cell 3.2
  
						
						
						
							 
						
						
						
							      *  - row 4
  
						
						
						
							-  cell 4.1
  
						
						
						
							-  cell 4.2
  
						
						
						
							-  cell 4.3
  
						
						
						
							-  cell 4.4
  
						
						
						
							 
						
						
						
							      *  - row 5
  
						
						
						
							-  cell 5.1 with automatic span to rigth end
  
						
						
						
							 
						
						
						
							      *  - row 6
  
						
						
						
							-  cell 6.1
  
						
						
						
							-  ..
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							CSV table 
 
						
						
						
							--------- 
 
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   ..  csv-table ::  CSV table example
  
						
						
						
							:header:  .. , Column 1, Column 2 
  
						
						
						
							:widths:  2 5 5 
  
						
						
						
							:stub-columns:  1 
  
						
						
						
							:file:  csv_table.txt 
  
						
						
						
							
  
						
						
						
							`` csv_table.txt `` :
  
						
						
						
							
  
						
						
						
							..  literalinclude ::  csv_table.txt
  
						
						
						
							
  
						
						
						
							..  admonition ::  CSV table
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							   ..  csv-table ::  CSV table example
  
						
						
						
							:header:  .. , Column 1, Column 2 
  
						
						
						
							:widths:  3 5 5 
  
						
						
						
							:stub-columns:  1 
  
						
						
						
							:file:  csv_table.txt 
  
						
						
						
							
  
						
						
						
							Templating 
 
						
						
						
							========== 
 
						
						
						
							
  
						
						
						
							..  sidebar ::  Build environment
  
						
						
						
							
  
						
						
						
							*generic-doc*  tasks are running in the :ref:`build environment <make
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:ref: `engines generic` .  Below the jinja directive from the
  
						
						
						
							:origin: `docs/admin/engines.rst`  is shown:
  
						
						
						
							
  
						
						
						
							..  literalinclude ::  ../admin/engines.rst
  
						
						
						
							:language:  reST 
  
						
						
						
							:start-after:  .. _configured engines: 
  
						
						
						
							
  
						
						
						
							`` .. jinja:: webapp `` .  In
  
						
						
						
							:origin: `docs/conf.py` ) the `` webapp ``  context
  
						
						
						
							`` webapp `` .
  
						
						
						
							
  
						
						
						
							..  code ::  py 
 
						
						
						
							
 
						
						
						
							   from  searx  import  webapp 
 
						
						
						
							   jinja_contexts  =  { 
 
						
						
						
							       ' webapp ' :  dict ( * * webapp . __dict__ ) 
 
						
						
						
							   } 
 
						
						
						
							
 
						
						
						
							
 
						
						
						
							Tabbed views 
 
						
						
						
							============ 
 
						
						
						
							
  
						
						
						
							..  _sphinx-tabs:  https://github.com/djungelorm/sphinx-tabs
  
						
						
						
							..  _basic-tabs:  https://github.com/djungelorm/sphinx-tabs#basic-tabs
  
						
						
						
							..  _group-tabs:  https://github.com/djungelorm/sphinx-tabs#group-tabs
  
						
						
						
							..  _code-tabs:  https://github.com/djungelorm/sphinx-tabs#code-tabs
  
						
						
						
							
  
						
						
						
							`sphinx-tabs`_  extension we have *tabbed views* .  To provide installation
  
						
						
						
							`group-tabs`_  directive,
  
						
						
						
							*group-tab*  example from
  
						
						
						
							:ref: `docs build`  is shown:
  
						
						
						
							
  
						
						
						
							..  literalinclude ::  ../admin/buildhosts.rst
  
						
						
						
							:language:  reST 
  
						
						
						
							:start-after:  .. SNIP sh lint requirements 
  
						
						
						
							:end-before:  .. SNAP sh lint requirements 
  
						
						
						
							
  
						
						
						
							..  _math: 
  
						
						
						
							
  
						
						
						
							Math equations 
 
						
						
						
							============== 
 
						
						
						
							
  
						
						
						
							..  _Mathematics:  https://en.wikibooks.org/wiki/LaTeX/Mathematics
  
						
						
						
							..  _amsmath user guide: 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  sidebar ::  About LaTeX
  
						
						
						
							 
						
						
						
							   -  `amsmath user guide`_ 
  
						
						
						
							-  Mathematics_
  
						
						
						
							-  :ref: `docs build` 
  
						
						
						
							
  
						
						
						
							:ctan: `amsmath` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							:rst:role: `:math: <math>`  for
  
						
						
						
							:rst:dir: `.. math:: <math>`  for block markup.
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   In :math:numref: `schroedinger general`  the time-dependent Schrödinger equation
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							   ..  math :: 
  
						
						
						
							:label:  schroedinger general 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  admonition ::  LaTeX math equation
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							:math:numref: `schroedinger general`  the time-dependent Schrödinger equation
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							   ..  math :: 
  
						
						
						
							:label:  schroedinger general 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							`` \tfrac ``  (*textstyle* ) and `` \dfrac `` 
  
						
						
						
							*displaystyle* ) used in a inline markup or another fraction.
  
						
						
						
							
  
						
						
						
							..  code ::  reST 
 
						
						
						
							
 
						
						
						
							   `` \tfrac ``  **inline example**  :math: `\tfrac{\tfrac{1}{x}+\tfrac{1}{y}}{y-z}` 
  
						
						
						
							`` \dfrac ``  **inline example**  :math: `\dfrac{\dfrac{1}{x}+\dfrac{1}{y}}{y-z}` 
  
						
						
						
							
  
						
						
						
							..  admonition ::  Line spacing
  
						
						
						
							:class:  rst-example 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							`` \tfrac ``  **inline example**  :math: `\tfrac{\tfrac{1}{x}+\tfrac{1}{y}}{y-z}` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							`` \tfrac ``  **inline example**  :math: `\dfrac{\dfrac{1}{x}+\dfrac{1}{y}}{y-z}` 
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							
  
						
						
						
							..  _KISS:  https://en.wikipedia.org/wiki/KISS_principle
  
						
						
						
							
  
						
						
						
							..  _readability:  https://docs.python-guide.org/writing/style/
  
						
						
						
							..  _Sphinx-Primer: 
  
						
						
						
							
  
						
						
						
							..  _reST:  https://docutils.sourceforge.io/rst.html
  
						
						
						
							..  _Sphinx Roles: 
  
						
						
						
							
  
						
						
						
							..  _Sphinx:  http://www.sphinx-doc.org
  
						
						
						
							..  _`sphinx-doc FAQ`:  http://www.sphinx-doc.org/en/stable/faq.html
  
						
						
						
							..  _Sphinx markup constructs: 
  
						
						
						
							
  
						
						
						
							..  _`sphinx cross references`: 
  
						
						
						
							
  
						
						
						
							..  _sphinx.ext.extlinks: 
  
						
						
						
							
  
						
						
						
							..  _intersphinx:  http://www.sphinx-doc.org/en/stable/ext/intersphinx.html
  
						
						
						
							..  _sphinx config:  http://www.sphinx-doc.org/en/stable/config.html
  
						
						
						
							..  _Sphinx's autodoc:  http://www.sphinx-doc.org/en/stable/ext/autodoc.html
  
						
						
						
							..  _Sphinx's Python domain: 
  
						
						
						
							
  
						
						
						
							..  _Sphinx's C domain: 
  
						
						
						
							
  
						
						
						
							..  _doctree: 
  
						
						
						
							
  
						
						
						
							..  _docutils:  http://docutils.sourceforge.net/docs/index.html
  
						
						
						
							..  _docutils FAQ:  http://docutils.sourceforge.net/FAQ.html
  
						
						
						
							..  _linuxdoc:  https://return42.github.io/linuxdoc
  
						
						
						
							..  _jinja:  https://jinja.palletsprojects.com/
  
						
						
						
							..  _sphinx-jinja:  https://github.com/tardyp/sphinx-jinja
  
						
						
						
							..  _SVG:  https://www.w3.org/TR/SVG11/expanded-toc.html
  
						
						
						
							..  _DOT:  https://graphviz.gitlab.io/_pages/doc/info/lang.html
  
						
						
						
							..  _`Graphviz's dot`:  https://graphviz.gitlab.io/_pages/pdf/dotguide.pdf
  
						
						
						
							..  _Graphviz:  https://graphviz.gitlab.io
  
						
						
						
							..  _ImageMagick:  https://www.imagemagick.org
  
						
						
						
							
  
						
						
						
							..  _`Emacs Table Mode`:  https://www.emacswiki.org/emacs/TableMode
  
						
						
						
							..  _`Online Tables Generator`:  http://www.tablesgenerator.com/text_tables
  
						
						
						
							..  _`OASIS XML Exchange Table Model`:  https://www.oasis-open.org/specs/tm9901.html