remove rougail code

This commit is contained in:
gwen 2024-10-21 15:42:52 +02:00
parent 39f01b36a1
commit b1ed2d3aaf
7 changed files with 22 additions and 25 deletions

View file

@ -9,7 +9,7 @@ sys.path.append('.')
#---- debug mode ----
# shows/hides the todos
todo_include_todos = False
todo_include_todos = True
# -- Project information -----------------------------------------------------

View file

@ -184,19 +184,7 @@ We're gonna make the simplest possible example.
hello:
default: world
- Then we make a :file:`hello.py` in our root :file:`workplace` directory:
.. code-block:: python
:caption: The :file:`hello.py` file
from rougail import Rougail, RougailConfig
RougailConfig['dictionaries_dir'] = ['dict']
rougail = Rougail()
config = rougail.get_config()
print(config.value.get())
.. demo:: Let's run the :file:`hello.py` script
.. todo:: mettre un appel à la CLI pour lancer le truc
We launch the script:

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View file

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

View file

@ -42,13 +42,28 @@ Then, let's create the :term:`Tiramisu` objects via the following script:
config = rougail.get_config()
print(config.value.get())
Let's execute `script.py`:
.. demo:: Let's execute `script.py`:
.. code-block:: bash
$ python3 script.py
{'rougail.my_variable': 'my_value'}
The operator role
--------------------
The :term:`operator` role corresponds to the :term:`tiramisu` settings:
.. image:: images/tiramisu_get_set.png
.. index:: questionary
But instead of coding in the end user developer way, the opterator will prefer using the Rougail CLI interface:
.. image:: images/QuestionaryChoice.png
Let's convert an extra dictionary
-------------------------------------

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View file

@ -63,13 +63,7 @@ The operator role
.. image:: images/operator.png
The operator role corresponds to the :term:`tiramisu` settings:
.. image:: images/tiramisu_get_set.png
.. index:: questionary
But instead of coding in the end user developer way, the opterator will prefer using the Rougail CLI interface:
The operator can use the Rougail CLI interface:
.. image:: images/QuestionaryChoice.png