From 6a7adfbcfa83647aa7bff9576d9c2b9a9db34345 Mon Sep 17 00:00:00 2001
From: Fabrice Gangler <fabrice.gangler@adullact.org>
Date: Tue, 11 Mar 2025 11:39:36 +0100
Subject: [PATCH] ci: fix markdown linter

---
 .gitlab/ci/config/markdownlint.yml                     | 10 ++++++++++
 documentation/ressources_post-it.md                    | 10 ++++------
 .../en/app_page_moderation_guideline.md                |  4 ++--
 .../public_static_pages/fr/app_page_accessibility.md   |  4 ++--
 .../templates/public_static_pages/fr/app_page_legal.md |  2 +-
 .../fr/app_page_moderation_guideline.md                |  2 +-
 .../public_static_pages/fr/app_page_opendata.md        |  4 ++--
 7 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/.gitlab/ci/config/markdownlint.yml b/.gitlab/ci/config/markdownlint.yml
index d753efa..b65ac15 100644
--- a/.gitlab/ci/config/markdownlint.yml
+++ b/.gitlab/ci/config/markdownlint.yml
@@ -38,7 +38,17 @@ MD033:
     allowed_elements:
         - summary
         - details
+        - abbr
+        - span
+        - strong
+        - em
+        - br
 
 # MD034 - Bare URL used
 # https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md034---bare-url-used
 MD034: false
+
+
+# MD009 - Trailing spaces
+# https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md009---trailing-spaces
+MD009: false
diff --git a/documentation/ressources_post-it.md b/documentation/ressources_post-it.md
index ba3f374..fe8258f 100644
--- a/documentation/ressources_post-it.md
+++ b/documentation/ressources_post-it.md
@@ -1,10 +1,10 @@
-
 # Ressources POST IT
 
 ## IMPORT 
 
 ### missing file extension
-```
+
+```bash
 362 - CodiMD
     files/Softwares/CodiMD/avatar
     afdc568e-e8ea-4866-8c74-8a15388bfec0
@@ -109,15 +109,13 @@ Warning:
 - use the `style` attribute instead of the `data` attribute to manage data values
 - cannot be used with current CSP rules
 
-
-
 ## Bootstrap
 
 - https://getbootstrap.com/docs/5.3/components/scrollspy/
-- 
+- ...
 
 https://getbootstrap.com/docs/5.3/examples/
 - https://getbootstrap.com/docs/5.3/examples/features/
 - https://getbootstrap.com/docs/5.3/examples/album/
 - https://getbootstrap.com/docs/5.3/examples/footers/
-- https://getbootstrap.com/docs/5.3/examples/headers/
\ No newline at end of file
+- https://getbootstrap.com/docs/5.3/examples/headers/
diff --git a/webapp/templates/public_static_pages/en/app_page_moderation_guideline.md b/webapp/templates/public_static_pages/en/app_page_moderation_guideline.md
index 1145566..9698f03 100644
--- a/webapp/templates/public_static_pages/en/app_page_moderation_guideline.md
+++ b/webapp/templates/public_static_pages/en/app_page_moderation_guideline.md
@@ -1,4 +1,4 @@
-## Moderation guideline
+# Moderation guideline
 
 ## Criteria for adding a software
 
@@ -6,7 +6,7 @@ The criteria for adding software to the _Comptoir du libre_ are :
 - the **license** must be one of the [free licenses](https://opensource.org/licenses) approved by the OSI.
 - the **source code** must be available in a public repository of a software forge.
 
-**TODO**
+> **TODO**
 > - software with several licenses
 > - software with multiple repositories
 > - minimum quality to add a project
diff --git a/webapp/templates/public_static_pages/fr/app_page_accessibility.md b/webapp/templates/public_static_pages/fr/app_page_accessibility.md
index 3a26e0a..b8dd2e8 100644
--- a/webapp/templates/public_static_pages/fr/app_page_accessibility.md
+++ b/webapp/templates/public_static_pages/fr/app_page_accessibility.md
@@ -8,7 +8,7 @@ au site web **Comptoir du Libre** : `https://comptoir-du-libre.org`
 ## État de conformité
 
 Le site web **Comptoir du Libre** est **non conforme** 
-avec le <abbr title="Référentiel Général d'Accessibilité des Administrations">RGAA</abbr></span>.
+avec le <abbr title="Référentiel Général d'Accessibilité des Administrations">RGAA</abbr>.
 
 Le site web n’a encore pas été audité.
 
@@ -67,4 +67,4 @@ Vous pouvez :
 - Envoyer un courrier par la poste (gratuit, ne pas mettre de timbre) : <br>
   Défenseur des droits <br>
   Libre réponse 71120 <br>
-  75342 Paris CEDEX 07
\ No newline at end of file
+  75342 Paris CEDEX 07
diff --git a/webapp/templates/public_static_pages/fr/app_page_legal.md b/webapp/templates/public_static_pages/fr/app_page_legal.md
index 2513455..9ab2c25 100644
--- a/webapp/templates/public_static_pages/fr/app_page_legal.md
+++ b/webapp/templates/public_static_pages/fr/app_page_legal.md
@@ -23,4 +23,4 @@ _Mathieu FAURE_, Délégué Général de l'ADULLACT
 
 - <https://comptoir-du-libre.org/fr/pages/legal>
 - <https://adullact.org/index.php/mentions-legales>
-- <https://faq.adullact.org/mentions-legales/>
\ No newline at end of file
+- <https://faq.adullact.org/mentions-legales/>
diff --git a/webapp/templates/public_static_pages/fr/app_page_moderation_guideline.md b/webapp/templates/public_static_pages/fr/app_page_moderation_guideline.md
index c012658..47f9afe 100644
--- a/webapp/templates/public_static_pages/fr/app_page_moderation_guideline.md
+++ b/webapp/templates/public_static_pages/fr/app_page_moderation_guideline.md
@@ -1,4 +1,4 @@
-## Charte de modération du contenu
+# Charte de modération du contenu
 
 ## Critères d'ajout d'un logiciel
 
diff --git a/webapp/templates/public_static_pages/fr/app_page_opendata.md b/webapp/templates/public_static_pages/fr/app_page_opendata.md
index d122a7c..32ea78d 100644
--- a/webapp/templates/public_static_pages/fr/app_page_opendata.md
+++ b/webapp/templates/public_static_pages/fr/app_page_opendata.md
@@ -11,8 +11,8 @@ sont mis à votre disposition dans un export au format JSON, avec pour chaque lo
 - le nom du logiciel, 
 - le dépôt du code source, 
 - le site web, 
-- les ressources externes (Wikipédia, Wikidata, Framalibre et SILL) 
+- les ressources externes (Wikipédia, Wikidata, Framalibre et SILL)
 - les prestataires déclarés.
 
-Vous pouvez consulter ces données ouvertes et la documentation associée 
+Vous pouvez consulter ces données ouvertes et la documentation associée  
 sur [data.gouv.fr](https://www.data.gouv.fr/fr/datasets/logiciels-libres-sur-le-comptoir-du-libre-org/).
-- 
GitLab