Compare commits

...

1 Commits

Author SHA1 Message Date
Antoine Vandevenne (anv)
90bfdb90a4 poc 2022-04-12 16:22:29 +02:00
2 changed files with 136 additions and 5 deletions

View File

@@ -566,8 +566,7 @@ Basic tabs
Basic tabs are useful to split content into multiple options. The `tabs` directive is used to define Basic tabs are useful to split content into multiple options. The `tabs` directive is used to define
a sequence of tabs. Each tab is then defined with the `tab` directive followed by a label. a sequence of tabs. Each tab is then defined with the `tab` directive followed by a label.
RST **How you write it**
~~~
.. code-block:: rst .. code-block:: rst
@@ -585,8 +584,21 @@ RST
Third version for On-premise users. Third version for On-premise users.
Render .. raw:: html
~~~~~~
<div class="badge">How it looks</div>
+-----------------+
| .. code-block:: |
| |
| coincoin |
+-----------------+
| +---+---+ |
| | a | a | |
| +===+===+ |
| | O | o | |
| +---+---+ |
+-----------------+
.. tabs:: .. tabs::
@@ -836,6 +848,110 @@ Document metadata
| Sphinx supports document-wide metadata directives that specify a behavior for the entire page. | Sphinx supports document-wide metadata directives that specify a behavior for the entire page.
| They must be placed between colons (`:`) at the top of the source file. | They must be placed between colons (`:`) at the top of the source file.
Juste l'html:
+-----------------+------------------------------+
| **Row 1** | **Row 2** |
+=================+==============================+
| Coincoin | Coiiiiiiin |
+-----------------+------------------------------+
| This is a | Pouet |
| multi-line | |
| row. | |
+-----------------+------------------------------+
Juste le rst:
.. code-block:: rst
+-----------------+------------------------------+
| **Row 1** | **Row 2** |
+=================+==============================+
| Coincoin | Coiiiiiiin |
+-----------------+------------------------------+
| This is a | Pouet |
| multi-line | |
| row. | |
+-----------------+------------------------------+
::
table.special>tbody>tr {
border: 10px solid red;
}
Combiné:
.. rst-class:: special
+--------------------------------------------------------+
| +-----------------+------------------------------+ |
| | **Row 1** | **Row 2** | |
| +=================+==============================+ |
| | Coincoin | Coiiiiiiin | |
| +-----------------+------------------------------+ |
| | This is a | Pouet | |
| | multi-line | | |
| | row. | | |
| +-----------------+------------------------------+ |
+--------------------------------------------------------+
| |
| .. code-block:: rst |
| |
| +-----------------+------------------------------+ |
| | **Row 1** | **Row 2** | |
| +=================+==============================+ |
| | Coincoin | Coiiiiiiin | |
| +-----------------+------------------------------+ |
| | This is a | Pouet | |
| | multi-line | | |
| | row. | | |
| +-----------------+------------------------------+ |
| |
+--------------------------------------------------------+
+------------------------+
| .. warning:: |
| Youpie |
| |
+------------------------+
| .. code-block:: rst |
| |
| .. warning:: |
| Youpie |
| |
+------------------------+
+------------------------+
| |
| **Youpie** |
| |
+------------------------+
| .. code-block:: rst |
| |
| **Youpie** |
| |
+------------------------+
+-----------------------------------+
| .. tabs:: |
| |
| .. code-tab:: python |
| |
| print("Hello World") |
| |
| .. code-tab:: javascript |
| |
| console.log("Hello World"); |
| |
| .. code-tab:: html |
| |
| <p>Hello World</p> |
| |
+-----------------------------------+
+-----------------+--------------------------------------------------------------------------------+ +-----------------+--------------------------------------------------------------------------------+
| **Metadata** | **Purpose** | | **Metadata** | **Purpose** |
+-----------------+--------------------------------------------------------------------------------+ +-----------------+--------------------------------------------------------------------------------+

View File

@@ -1939,7 +1939,22 @@ Map
<span class="badge" style="background-color:#AD5E99">Enterprise feature</span> <span class="badge" style="background-color:#AD5E99">Enterprise feature</span>
This view is able to display records on a map and the routes between them. The records are represented by pins. It also allows the visualization of fields from the model in a popup tied to the record's pin. .. raw:: html
<div><div class="bg-primary">
mon exemple en rst
.. raw:: html
</div><div>
mon exemple en rst
.. raw:: html
</div></div>
.. note:: .. note::