rougail/docs/tutorial/index.rst

41 lines
1.2 KiB
ReStructuredText
Raw Normal View History

2024-10-14 14:05:23 +02:00
Tutorial with a real world sample
=====================================
2024-10-21 15:03:34 +02:00
Here's a quite well supplied tutorial, we're gonna start with a use case that comes from the real world.
2024-10-14 14:05:23 +02:00
2024-10-21 18:28:34 +02:00
.. objectives:: Configuring (the setting of) your favorite web browser
2024-10-14 14:05:23 +02:00
This tutorial will show you an example of Rougail use based on the
"how to set a proxy" in the `Mozilla Firefox <https://www.mozilla.org/en-US/firefox/new/>`_ browser
use case.
2024-10-21 18:28:34 +02:00
More precisely, this tutorial aims at reproducing :term:`variable`\ s (that is, configuration options) behind this Mozilla Firefox settings page:
2024-10-14 14:05:23 +02:00
2024-10-21 18:28:34 +02:00
.. image:: images/firefox.png
.. attention:: We are not coding a firefox plugin here.
2024-10-14 14:05:23 +02:00
We are just going to handle some of the firefox configuration settings
with Rougail.
2024-10-21 18:28:34 +02:00
2024-10-14 14:05:23 +02:00
Presentation of the firefox configuration variables
-----------------------------------------------------------
Let's dive into the configuration validation use case,
that is the values entered by the user that have to be validated.
2024-10-21 15:03:34 +02:00
At first glance we have a selection of five options configuration values that we need to fill in:
2024-10-14 14:05:23 +02:00
.. image:: images/firefox_01.png
.. toctree::
:titlesonly:
:caption: The firefox tutorial steps
2024-10-15 18:17:21 +02:00
:hidden:
2024-10-14 14:05:23 +02:00
2024-10-14 19:17:44 +02:00
preliminary
2024-10-15 18:17:21 +02:00
proxymode
2024-10-14 14:05:23 +02:00
tutorial