remove rougail code
This commit is contained in:
parent
39f01b36a1
commit
b1ed2d3aaf
7 changed files with 22 additions and 25 deletions
|
@ -9,7 +9,7 @@ sys.path.append('.')
|
|||
|
||||
#---- debug mode ----
|
||||
# shows/hides the todos
|
||||
todo_include_todos = False
|
||||
todo_include_todos = True
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
BIN
docs/images/QuestionaryChoice.png
Normal file
BIN
docs/images/QuestionaryChoice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
|
@ -42,12 +42,27 @@ 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
|
||||
.. 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
|
||||
|
||||
$ python3 script.py
|
||||
{'rougail.my_variable': 'my_value'}
|
||||
|
||||
Let's convert an extra dictionary
|
||||
-------------------------------------
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 24 KiB |
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue