From 7ab236f34d5004d4033a2317dca7fac79afb3e34 Mon Sep 17 00:00:00 2001
From: Manon Bourgognon <manon.bourgognon@epitech.eu>
Date: Mon, 11 Jan 2021 14:19:51 +0100
Subject: [PATCH] Add alt attribute in the doc

---
 source/import_documentation/Mixins/widget-mixin.rst | 11 ++++++++---
 source/import_documentation/Widgets/Reference.rst   |  8 ++++----
 source/import_documentation/attributes-list.rst     |  4 ++++
 3 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/source/import_documentation/Mixins/widget-mixin.rst b/source/import_documentation/Mixins/widget-mixin.rst
index bad67b6..06afbdd 100644
--- a/source/import_documentation/Mixins/widget-mixin.rst
+++ b/source/import_documentation/Mixins/widget-mixin.rst
@@ -71,7 +71,7 @@ Attributes
 
 ``default-[field]``
 ~~~~~~~~~~~~~~~~~~~
-    Value displayed for ``[field]`` when it’s empty or not defined
+    Value displayed for ``[field]`` when it’s empty or not defined.
 
 ``widget-[field]``
 ~~~~~~~~~~~~~~~~~~
@@ -95,11 +95,11 @@ Attributes
 
 ``label-[field]``
 ~~~~~~~~~~~~~~~~~
-   Set the label for the ``[field]``
+   Set the label for the ``[field]``.
 
 ``placeholder-[field]``
 ~~~~~~~~~~~~~~~~~~~~~~~
-    Set the placeholder for the ``[field]``
+    Set the placeholder for the ``[field]``.
 
 ``class-[field]``
 ~~~~~~~~~~~~~~~~~
@@ -126,6 +126,11 @@ Attributes
             editable-name
         ></solid-display>
 
+``alt-[field]``
+~~~~~~~~~~~~~~~
+    *Works only with solid-display-img*
+
+    Set the alt for the field ``[field]``.
 
 ``multiple-[field]``
 ~~~~~~~~~~~~~~~~~~~~
diff --git a/source/import_documentation/Widgets/Reference.rst b/source/import_documentation/Widgets/Reference.rst
index f25f72d..3d95c3d 100644
--- a/source/import_documentation/Widgets/Reference.rst
+++ b/source/import_documentation/Widgets/Reference.rst
@@ -29,10 +29,10 @@ Name of the template to use. Available templates:
 -  ``display`` directory
 
    -  ``value``: displays ``value`` directly in the widget tag.
-   -  ``div``: displays ``value`` inside a ``<div>`` tag
-   -  ``link``: displays ``value`` as an ``href`` attribute in a ``<a>`` tag
-   -  ``img``: displays ``value`` as a ``src``  attribute in a ``<img>`` tag
-   -  ``boolean``: displays label (or name) in a ``<label>`` tag if ``value  == true``
+   -  ``div``: displays ``value`` inside a ``<div>`` tag.
+   -  ``link``: displays ``value`` as an ``href`` attribute in a ``<a>`` tag.
+   -  ``img``: displays ``value`` as a ``src``  attribute in a ``<img>`` tag.
+   -  ``boolean``: displays label (or name) in a ``<label>`` tag if ``value  == true``.
 
 -  ``form`` directory
 
diff --git a/source/import_documentation/attributes-list.rst b/source/import_documentation/attributes-list.rst
index 7f42901..00c0f4a 100644
--- a/source/import_documentation/attributes-list.rst
+++ b/source/import_documentation/attributes-list.rst
@@ -5,6 +5,10 @@ List of attributes (core framework)
 ~~~~~~~~~~~~~~~~~~
    * :ref:`widget-mixin <widget-mixin>`
 
+``alt-[field]``
+~~~~~~~~~~~~~~~
+   * :ref:`widget-mixin <widget-mixin>`
+
 ``autocomplete-[field]``
 ~~~~~~~~~~~~~~~~~~~~~~~~
    * :ref:`solid-form <solid-form>`
-- 
GitLab