Sphinx Syntax Tutorial#

We use restructuredtext aka rst syntax to document our project with Sphinx

Paragraphs and notes#

This is a paragraph.

Paragraphs line up at their left edges, and are normally separated by blank lines.

Note

You can decorate a block as a note

Warning

Or as a warning, please try attention, caution, danger, error, hint, important and tip too.

This is a paragraph.

Paragraphs line up at their left edges, and are normally separated by blank
lines.

.. note::

   You can decorate a block as a **note**

.. warning::

   Or as a **warning**, please try *attention*, *caution*, *danger*,
   *error*, *hint*, *important* and *tip* too.

tabs images and code#

../../_images/logo_Destination-Familles-favicon.png
def fibs():
   """
   This code does not work ;)
   """
   a = 0
   b = 1
   while True:
       yield a
       a, b = b, a + b
.. tab:: Tab with an image

   .. image:: /src/images/logo_mazars.png
      :width: 400px

.. tab:: Tab with some code

   .. code:: python

     def fibs():
        """
        This code does not work ;)
        """
        a = 0
        b = 1
        while True:

Tables#

Queue

Nb

Details

big_jobs_few_tasks

2

Non igitur potestis voluptate omnia dirigentes

small_jobs_many_tasks

10

.. list-table::
   :widths: 30 20 50
   :header-rows: 1
   :stub-columns: 0

   * - Queue
     - Nb
     - Details
   * - big_jobs_few_tasks
     - 2
     - Non igitur potestis voluptate omnia dirigentes
   * - small_jobs_many_tasks
     - 10
     -
+-----------------------+----+-----------------------------------+
| Queue                 | Nb | Details                           |
+=======================+====+===================================+
| big_jobs_few_tasks    | 2  | Non igitur potestis               |
|                       |    | voluptate omnia dirigentes        |
+-----------------------+----+-----------------------------------+
| small_jobs_many_tasks | 10 |                                   |
+-----------------------+----+-----------------------------------+

Some maths#

Just to play with maths: \(\sigma (x) = \frac{1}{1 + e^{-1}}\), Sigmoid function used in word2vec model

\[\sigma (x) = \frac{1}{1 + e^{-1}}\]
.. math::

   \sigma (x) = \frac{1}{1 + e^{-1}}