Skip to content

Commit a369f91

Browse files
authored
Passage au DSFR v1.14 (#241)
* Upgrade DSFR version * Update search * Add doc page for custom templatetags * Improve doc of various components * Fix links to DSFR site * Update links * No need to make a migration for that :)
1 parent 81cbd3f commit a369f91

File tree

457 files changed

+1160
-3752
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

457 files changed

+1160
-3752
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: djlint-reformat-django
77
- id: djlint-django
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.11.9
9+
rev: v0.12.1
1010
hooks:
1111
- id: ruff
1212
args: [ --fix, --exit-non-zero-on-fix ]
@@ -23,7 +23,7 @@ repos:
2323
args:
2424
- --line-length=88
2525
- repo: https://github.com/PyCQA/bandit
26-
rev: 1.8.3
26+
rev: 1.8.5
2727
hooks:
2828
- id: bandit
2929
language_version: python3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Django-DSFR is a Django app to integrate the [French government Design System ("
1616

1717
See the [documentation (in French)](https://numerique-gouv.github.io/django-dsfr/) for details.
1818

19-
Django-DSFR implements the [version 1.13.1 of the DSFR](https://www.systeme-de-design.gouv.fr/a-propos/versions/version-courante)
19+
Django-DSFR implements the [version 1.14.0 of the DSFR](https://www.systeme-de-design.gouv.fr/a-propos/versions/version-courante)
2020
(see also the [Github releases page](https://github.com/GouvernementFR/dsfr/releases/))
2121

2222
## Requirements

doc/follow.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ Le bandeau de Lettre d’information et Réseaux Sociaux est géré grâce à un
1313
```
1414

1515
Il est alors possible de personnaliser la description de la lettre d’information, l’URL d’inscription ainsi que les réseaux sociaux via la configuration du site dans l’administration de Django.
16-
`
17-
- `<a class="fr-link fr-icon-external-link-line fr-link--icon-right fr-link--lg" href="https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/pied-de-page" target="_blank" rel="noopener noreferrer">
16+
17+
18+
- <a class="fr-link fr-icon-external-link-line fr-link--icon-right fr-link--lg" href="https://www.systeme-de-design.gouv.fr/version-courante/fr/composants/pied-de-page" target="_blank" rel="noopener noreferrer">
1819
Voir la page de documentation du composant sur le Système de Design de l’État
1920
<span class="fr-sr-only">Ouvre une nouvelle fenêtre</span>
20-
</a>`
21-
- `<a class="fr-link fr-icon-external-link-line fr-link--icon-right fr-link--lg" href="https://main--ds-gouv.netlify.app/example/component/footer/" target="_blank" rel="noopener noreferrer">
21+
</a>
22+
- <a class="fr-link fr-icon-external-link-line fr-link--icon-right fr-link--lg" href="https://main--ds-gouv.netlify.app/example/component/footer/" target="_blank" rel="noopener noreferrer">
2223
Voir la page d’exemple du Système de Design de l’État
2324
<span class="fr-sr-only">Ouvre une nouvelle fenêtre</span>
2425
</a>

doc/footer.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ Le pied de page est géré grâce à une balise `include` dans le fichier `base.
22

33
Il est alors possible de personnaliser la description ainsi que le bloc-marque via la configuration du site dans l’administration de Django.
44

5-
- <a class="fr-link fr-icon-external-link-line fr-link--icon-right fr-link--lg" href="https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/pied-de-page" target="_blank" rel="noopener noreferrer">
5+
6+
- <a class="fr-link fr-icon-external-link-line fr-link--icon-right fr-link--lg" href="https://www.systeme-de-design.gouv.fr/version-courante/fr/composants/pied-de-page" target="_blank" rel="noopener noreferrer">
67
Voir la page de documentation du composant sur le Système de Design de l’État
78
<span class="fr-sr-only">Ouvre une nouvelle fenêtre</span>
89
</a>

doc/forms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Formulaires – Documentation
2-
- <a class="fr-link fr-icon-external-link-line fr-link--icon-right fr-link--lg" href="https://www.systeme-de-design.gouv.fr/composants-et-modeles/blocs-fonctionnels/formulaires" target="_blank" rel="noopener noreferrer">
2+
- <a class="fr-link fr-icon-external-link-line fr-link--icon-right fr-link--lg" href="https://www.systeme-de-design.gouv.fr/version-courante/fr/modeles/blocs-fonctionnels/formulaires" target="_blank" rel="noopener noreferrer">
33
Voir la page de documentation du composant sur le Système de Design de l’État
44
<span class="fr-sr-only">Ouvre une nouvelle fenêtre</span>
55
</a>

doc/header.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ L’en-tête est géré grâce à une balise `include` dans le fichier `base.htm
22

33
Il est alors possible de personnaliser le titre, le sous-titre, ainsi que le bloc-marque, via la configuration du site dans l’administration de Django.
44

5-
- <a class="fr-link fr-icon-external-link-line fr-link--icon-right fr-link--lg" href="https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/en-tete" target="_blank" rel="noopener noreferrer">
5+
- <a class="fr-link fr-icon-external-link-line fr-link--icon-right fr-link--lg" href="https://www.systeme-de-design.gouv.fr/version-courante/fr/composants/en-tete" target="_blank" rel="noopener noreferrer">
66
Voir la page de documentation du composant sur le Système de Design de l’État
77
<span class="fr-sr-only">Ouvre une nouvelle fenêtre</span>
88
</a>
@@ -18,8 +18,8 @@ Il est alors possible de personnaliser le titre, le sous-titre, ainsi que le blo
1818
## Composants liés
1919
Le gabarit d’en-tête est également l’endroit où inclure les composants suivants :
2020

21-
- Navigation principale (navigation) ([Documentation](https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/navigation-principale)[Exemple](https://main--ds-gouv.netlify.app/example/component/navigation/)), à insérer dans le bloc `main_menu`.
22-
- Sélecteur de langue (translate) : ([Documentation](https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/selecteur-de-langue)[Exemple](https://main--ds-gouv.netlify.app/example/component/translate/)), à insérer dans le bloc `header_tools`. L’application d’exemple donne un exemple d’implémentation ne traduisant que l’interface, et ne changeant pas l’URL, mais il est plutôt recommandé de définir un préfixe de langue dans l’URL, cf. la [documentation de Django](https://docs.djangoproject.com/fr/5.0/topics/i18n/translation/).
21+
- Navigation principale (navigation) ([Documentation](https://www.systeme-de-design.gouv.fr/version-courante/fr/composants/navigation-principale)[Exemple](https://main--ds-gouv.netlify.app/example/component/navigation/)), à insérer dans le bloc `main_menu`.
22+
- Sélecteur de langues (translate) : ([Documentation](https://www.systeme-de-design.gouv.fr/version-courante/fr/composants/selecteur-de-langues)[Exemple](https://main--ds-gouv.netlify.app/example/component/translate/)), à insérer dans le bloc `header_tools`. L’application d’exemple donne un exemple d’implémentation ne traduisant que l’interface, et ne changeant pas l’URL, mais il est plutôt recommandé de définir un préfixe de langue dans l’URL, cf. la [documentation de Django](https://docs.djangoproject.com/fr/5.0/topics/i18n/translation/).
2323

2424
## Personnaliser
2525

dsfr/checksums.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55

66
# dsfr/static/dsfr/dist/dsfr/dsfr.module.min.js
77
INTEGRITY_JS_MODULE = (
8-
"sha384-l8g9Hsy5GI9+gVYLHCrBoaD2RBoVqjZ189s6ycWnyUMlBc4fJHgDv6Vy6srjghNj"
8+
"sha384-41GU+RiqAUYv47wDfp2YXZiDUjD3kF13IEv7OxPu+c/vI226zUzWCLaxG3YFr+OE"
99
)
1010

1111
# dsfr/static/dsfr/dist/dsfr/dsfr.nomodule.min.js
1212
INTEGRITY_JS_NOMODULE = (
13-
"sha384-n3DkLEpXk5jDW26QT+Rsm0VCNrSPDKpmFcCVIwlEkl9I6MgKB89KDVWuDiJpFktn"
13+
"sha384-hm15UcyKDaqIboxtF7Jb9k5IxNtmYydj2vXiMAx0TaLn0tAI3hdjG/Gf0DxkYuHC"
1414
)
1515

1616
# dsfr/static/dsfr/dist/dsfr/dsfr.min.css
1717
INTEGRITY_CSS = (
18-
"sha384-hglg7vJT63v4rqjYrTSDzREjGYZb//5qqtcs8/7Ng8v1ihSg4LgdB+5lYdzAZXOt"
18+
"sha384-xZ7d1FPuJPGbW8x0qwQK1S+SbDZzOJ/Aqxij+8BTibC5+4mOznRXv3dREsSH8LUY"
1919
)
2020

2121
# dsfr/static/dsfr/dist/utility/utility.min.css
2222
INTEGRITY_UTILITY_CSS = (
23-
"sha384-OF3yqHNd9CODR/aJcL4+uKOtkKyHvJxfNMO3eBRtIZpFy/iMuNJCyd0HbVArmrUC"
23+
"sha384-fBRQe7b44hF/DeP+UL2ICVn+B9+t9YeHkHwp3d63HzY232x0KvifTaUjtByMIQL7"
2424
)

dsfr/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
("fr", _("French")),
77
]
88

9-
# Color palettes, per https://www.systeme-de-design.gouv.fr/elements-d-interface/fondamentaux-de-l-identite-de-l-etat/couleurs-palette/
9+
# Color palettes, per https://www.systeme-de-design.gouv.fr/version-courante/fr/fondamentaux/couleurs--palette
1010

1111
COLOR_CHOICES_PRIMARY = [
1212
("blue-france", _("Blue France")),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"prefix": "fr-icon-", "version": "v1.13.1", "icons": ["ancient-gate-fill", "ancient-gate-line", "ancient-pavilion-fill", "ancient-pavilion-line", "bank-fill", "bank-line", "building-fill", "building-line", "community-fill", "community-line", "government-fill", "government-line", "home-4-fill", "home-4-line", "hospital-fill", "hospital-line", "hotel-fill", "hotel-line", "store-fill", "store-line"], "icon-style": "dsfr-buildings", "list-label": "DSFR Buildings"}
1+
{"prefix": "fr-icon-", "version": "v1.14.0", "icons": ["ancient-gate-fill", "ancient-gate-line", "ancient-pavilion-fill", "ancient-pavilion-line", "bank-fill", "bank-line", "building-fill", "building-line", "community-fill", "community-line", "government-fill", "government-line", "home-4-fill", "home-4-line", "hospital-fill", "hospital-line", "hotel-fill", "hotel-line", "store-fill", "store-line"], "icon-style": "dsfr-buildings", "list-label": "DSFR Buildings"}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"prefix": "fr-icon-", "version": "v1.13.1", "icons": ["archive-fill", "archive-line", "attachment-fill", "attachment-line", "award-fill", "award-line", "bar-chart-box-fill", "bar-chart-box-line", "bookmark-fill", "bookmark-line", "briefcase-fill", "briefcase-line", "calendar-2-fill", "calendar-2-line", "calendar-event-fill", "calendar-event-line", "calendar-fill", "calendar-line", "cloud-fill", "cloud-line", "copyright-fill", "copyright-line", "customer-service-fill", "customer-service-line", "flag-fill", "flag-line", "global-fill", "global-line", "line-chart-fill", "line-chart-line", "links-fill", "links-line", "mail-fill", "mail-line", "mail-open-fill", "mail-open-line", "medal-fill", "medal-line", "pie-chart-2-fill", "pie-chart-2-line", "pie-chart-box-fill", "pie-chart-box-line", "printer-fill", "printer-line", "profil-fill", "profil-line", "projector-2-fill", "projector-2-line", "send-plane-fill", "send-plane-line", "slideshow-fill", "slideshow-line", "window-fill", "window-line"], "icon-style": "dsfr-business", "list-label": "DSFR Business"}
1+
{"prefix": "fr-icon-", "version": "v1.14.0", "icons": ["archive-fill", "archive-line", "attachment-fill", "attachment-line", "award-fill", "award-line", "bar-chart-box-fill", "bar-chart-box-line", "bookmark-fill", "bookmark-line", "briefcase-fill", "briefcase-line", "calendar-2-fill", "calendar-2-line", "calendar-event-fill", "calendar-event-line", "calendar-fill", "calendar-line", "cloud-fill", "cloud-line", "copyright-fill", "copyright-line", "customer-service-fill", "customer-service-line", "flag-fill", "flag-line", "global-fill", "global-line", "line-chart-fill", "line-chart-line", "links-fill", "links-line", "mail-fill", "mail-line", "mail-open-fill", "mail-open-line", "medal-fill", "medal-line", "pie-chart-2-fill", "pie-chart-2-line", "pie-chart-box-fill", "pie-chart-box-line", "printer-fill", "printer-line", "profil-fill", "profil-line", "projector-2-fill", "projector-2-line", "send-plane-fill", "send-plane-line", "slideshow-fill", "slideshow-line", "window-fill", "window-line"], "icon-style": "dsfr-business", "list-label": "DSFR Business"}

0 commit comments

Comments
 (0)