@gouvfr/dsfr-lore 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +11 -0
- package/package.json +57 -0
- package/src/changelog.yml +13 -0
- package/src/fragments/fragments.js +47 -0
- package/src/fragments/fragments.yml +83 -0
- package/src/parts/dsfr/about/conformance/index.md +6 -0
- package/src/parts/dsfr/about/index.md +4 -0
- package/src/parts/dsfr/about/legal/index.md +5 -0
- package/src/parts/dsfr/about/posts/index.md +4 -0
- package/src/parts/dsfr/about/posts/post-circular/index.md +4 -0
- package/src/parts/dsfr/about/posts/post-colors/index.md +4 -0
- package/src/parts/dsfr/about/posts/post-contrast/index.md +4 -0
- package/src/parts/dsfr/about/posts/post-ia/index.md +4 -0
- package/src/parts/dsfr/about/posts/post-launch/index.md +4 -0
- package/src/parts/dsfr/about/posts/post-olympics/index.md +4 -0
- package/src/parts/dsfr/about/posts/post-sp+/index.md +4 -0
- package/src/parts/dsfr/about/requirement/index.md +4 -0
- package/src/parts/dsfr/about/roadmap/index.md +4 -0
- package/src/parts/dsfr/about/sitemap/index.md +4 -0
- package/src/parts/dsfr/about/team/index.md +4 -0
- package/src/parts/dsfr/about/tos/index.md +4 -0
- package/src/parts/dsfr/about/versions/index.md +3 -0
- package/src/parts/dsfr/community/contribute/index.md +4 -0
- package/src/parts/dsfr/community/events/index.md +4 -0
- package/src/parts/dsfr/community/index.md +5 -0
- package/src/parts/dsfr/community/join/index.md +4 -0
- package/src/parts/dsfr/community/porting/index.md +4 -0
- package/src/parts/dsfr/community/showcase/index.md +4 -0
- package/src/parts/dsfr/contact/index.md +4 -0
- package/src/parts/dsfr/first-steps/designer/figma/index.md +3 -0
- package/src/parts/dsfr/first-steps/designer/getting-started/index.md +3 -0
- package/src/parts/dsfr/first-steps/designer/index.md +4 -0
- package/src/parts/dsfr/first-steps/designer/resources/index.md +3 -0
- package/src/parts/dsfr/first-steps/developer/compile/index.md +3 -0
- package/src/parts/dsfr/first-steps/developer/getting-started/index.md +3 -0
- package/src/parts/dsfr/first-steps/developer/index.md +4 -0
- package/src/parts/dsfr/first-steps/developer/install/index.md +3 -0
- package/src/parts/dsfr/first-steps/developer/use/index.md +3 -0
- package/src/parts/dsfr/first-steps/index.md +9 -0
- package/src/parts/dsfr/first-steps/scope/approval/index.md +3 -0
- package/src/parts/dsfr/first-steps/scope/circular/index.md +3 -0
- package/src/parts/dsfr/first-steps/scope/index.md +4 -0
- package/src/parts/dsfr/first-steps/scope/rules/index.md +3 -0
- package/src/parts/dsfr/first-steps/why/accessibility/index.md +4 -0
- package/src/parts/dsfr/first-steps/why/agnosticity/index.md +4 -0
- package/src/parts/dsfr/first-steps/why/beyond/index.md +4 -0
- package/src/parts/dsfr/first-steps/why/brand/index.md +4 -0
- package/src/parts/dsfr/first-steps/why/ecodesign/index.md +4 -0
- package/src/parts/dsfr/first-steps/why/index.md +5 -0
- package/src/parts/dsfr/first-steps/why/performance/index.md +4 -0
- package/src/parts/dsfr/first-steps/why/trust/index.md +4 -0
- package/src/parts/dsfr/help/index.md +3 -0
- package/src/parts/dsfr/index#^2.x.md +6 -0
- package/src/parts/dsfr/index.md +6 -0
- package/src/parts/dsfr/index@en#^2.0.0.md +6 -0
- package/src/parts/dsfr/index@en.md +6 -0
- package/src/parts/dsfr/search/index.md +14 -0
- package/src/resource/breadcrumb.yml +3 -0
- package/src/resource/consent.yml +0 -0
- package/src/resource/display.yml +19 -0
- package/src/resource/footer.yml +44 -0
- package/src/resource/header.yml +21 -0
- package/src/resource/navigation.yml +37 -0
- package/src/resource/skiplink.yml +8 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Le contenu de ce dépôt est placé sous licence MIT License, à l'exception de la fonte Marianne.
|
|
2
|
+
Voir les [conditions générales d'utilisation](doc/legal/cgu.md)
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
|
21
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# 🇫🇷 Contenu statique du site de documentation du Système de Design de l’État
|
|
2
|
+
|
|
3
|
+
[](https://GitHub.com/gouvernementFR/dsfr/releases/) [](https://www.npmjs.com/package/@gouvfr/dsfr-lore) [](https://github.com/GouvernementFR/dsfr/blob/main/LICENSE.md) [](https://npmjs.com/package/@gouvfr/dsfr-lore)
|
|
4
|
+
|
|
5
|
+
Le Système de Design de l’État (ci-après, le **DSFR**) est un ensemble de composants web HTML, CSS et Javascript pour faciliter le travail des équipes projets des sites Internet publics, et créer des interfaces numériques de qualité et accessibles.
|
|
6
|
+
|
|
7
|
+
Le module `dsfr-lore` met à disposition les ressources statiques transverses nécessaires à la création et à la publication du site de documentation du Système de Design de l’État - DSFR. Il est destiné à un usage interne par les équipes du Service d'Information du Gouvernement (SIG).
|
|
8
|
+
|
|
9
|
+
## Licence et droit d'utilisation
|
|
10
|
+
|
|
11
|
+
Le contenu de ce projet est placé sous licence MIT License. Voir [LICENSE.md](https://github.com/GouvernementFR/dsfr/blob/main/LICENSE.md).
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@gouvfr/dsfr-lore",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Le module `dsfr-lore` met à disposition les ressources statiques transverses nécessaires à la création et à la publication du site de documentation du Système de Design de l’État - DSFR.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Système de Design de l'État",
|
|
7
|
+
"gouvfr",
|
|
8
|
+
"dsfr"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/GouvernementFR/dsfr/tree/main/modules/lore",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/GouvernementFR/dsfr/issues"
|
|
13
|
+
},
|
|
14
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "Service d'Information du Gouvernement",
|
|
17
|
+
"email": "maxime.beaugrand@pm.gouv.fr",
|
|
18
|
+
"url": "https://www.systeme-de-design.gouv.fr/"
|
|
19
|
+
},
|
|
20
|
+
"contributors": [
|
|
21
|
+
{
|
|
22
|
+
"name": "Bertrand Larrieu",
|
|
23
|
+
"email": "bertrand.larrieu@actimage.com"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "Keryan Sanié",
|
|
27
|
+
"email": "keryan.sanie@actimage.com"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "Baptiste Zeller",
|
|
31
|
+
"email": "baptiste.zeller@actimage.com"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+ssh://git@github.com/GouvernementFR/dsfr.git",
|
|
37
|
+
"directory": "modules/doc/static"
|
|
38
|
+
},
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"type": "module",
|
|
43
|
+
"engines": {
|
|
44
|
+
"node": ">=22.14.0"
|
|
45
|
+
},
|
|
46
|
+
"packageManager": "yarn@4.5.2+sha224.c2e2e9ed3cdadd6ec250589b3393f71ae56d5ec297af11cec1eba3b4",
|
|
47
|
+
"files": [
|
|
48
|
+
"src/",
|
|
49
|
+
"../../../legal/*",
|
|
50
|
+
"../../../SECURITY.md",
|
|
51
|
+
"../../../LICENSE.md"
|
|
52
|
+
],
|
|
53
|
+
"main": "./index.js",
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@gouvfr/dsfr-forge": "=1.0.0"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
title:
|
|
2
|
+
fr: Journal des modifications du Système de design de l’État
|
|
3
|
+
en: Changelog of the French State Design System
|
|
4
|
+
description:
|
|
5
|
+
fr: >
|
|
6
|
+
Le journal des modifications du Système de design de l’État (DSFR) est un document qui recense les évolutions et les corrections apportées à la bibliothèque de composants du DSFR. Il permet de suivre l’évolution du système de design et de connaître les changements apportés à chaque version.
|
|
7
|
+
Ce projet respecte le [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
|
+
Pour plus d’informations : [Voir la documentation](https://www.systeme-de-design.gouv.fr/)
|
|
9
|
+
en: >
|
|
10
|
+
The changelog of the French State Design System (DSFR) is a document that lists the changes and corrections made to the DSFR component library. It allows you to follow the evolution of the design system and to know the changes made in each version.
|
|
11
|
+
This project respects the [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
12
|
+
For more information: [See the documentation](https://www.systeme-de-design.gouv.fr/)
|
|
13
|
+
Commit descriptions are written only in French, as it is mainly intended for a French-speaking audience.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { getPackagePath } from '@gouvfr/dsfr-forge';
|
|
2
|
+
import fs from 'fs'
|
|
3
|
+
import yaml from 'yaml'
|
|
4
|
+
const SRC = `${getPackagePath('@gouvfr/dsfr-lore')}src`;
|
|
5
|
+
|
|
6
|
+
class Fragments {
|
|
7
|
+
constructor () {
|
|
8
|
+
const fragmentsData = fs.readFileSync(`${SRC}/fragments/fragments.yml`, 'utf8');
|
|
9
|
+
this._fragments = yaml.parse(fragmentsData);
|
|
10
|
+
Object.freeze(this._fragments);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get data () {
|
|
14
|
+
return this._fragments;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
_normalize (fragments, locale) {
|
|
18
|
+
const normalized = {};
|
|
19
|
+
for (const key in fragments) {
|
|
20
|
+
if (typeof fragments[key] === 'object') normalized[key] = this._normalize(fragments[key], locale);
|
|
21
|
+
else if (key === locale) return fragments[key];
|
|
22
|
+
}
|
|
23
|
+
return normalized;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
getFragments (locale) {
|
|
27
|
+
const localisedFragments = {};
|
|
28
|
+
for (const key in this._fragments) {
|
|
29
|
+
localisedFragments[key] = this._normalize(this._fragments[key], locale);
|
|
30
|
+
}
|
|
31
|
+
return localisedFragments;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
getFragment (locale, key) {
|
|
35
|
+
const props = key.split('.');
|
|
36
|
+
let fragment = this._fragments;
|
|
37
|
+
for (const prop of props) {
|
|
38
|
+
fragment = fragment[prop];
|
|
39
|
+
if (!fragment) return null;
|
|
40
|
+
}
|
|
41
|
+
return fragment[locale];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const fragments = new Fragments();
|
|
46
|
+
|
|
47
|
+
export { fragments };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
translate:
|
|
2
|
+
fr:
|
|
3
|
+
fr: Français
|
|
4
|
+
en: French
|
|
5
|
+
en:
|
|
6
|
+
fr: Anglais
|
|
7
|
+
en: English
|
|
8
|
+
button:
|
|
9
|
+
text:
|
|
10
|
+
fr: Sélectionner une langue
|
|
11
|
+
en: Select a language
|
|
12
|
+
version:
|
|
13
|
+
button:
|
|
14
|
+
text:
|
|
15
|
+
fr: Sélectionner une version
|
|
16
|
+
en: Select a release
|
|
17
|
+
current:
|
|
18
|
+
segment:
|
|
19
|
+
fr: version-courante
|
|
20
|
+
en: current
|
|
21
|
+
text:
|
|
22
|
+
fr: courante
|
|
23
|
+
en: current
|
|
24
|
+
blank:
|
|
25
|
+
fr: Nouvelle Fenêtre
|
|
26
|
+
en: New Window
|
|
27
|
+
breadcrumb:
|
|
28
|
+
button:
|
|
29
|
+
text:
|
|
30
|
+
fr: Voir le Fil d'Ariane
|
|
31
|
+
en: Show breadcrumb
|
|
32
|
+
navigation:
|
|
33
|
+
close:
|
|
34
|
+
fr: Fermer le menu
|
|
35
|
+
en: Close menu
|
|
36
|
+
blockquote:
|
|
37
|
+
note:
|
|
38
|
+
fr: Information
|
|
39
|
+
en: Information
|
|
40
|
+
warning:
|
|
41
|
+
fr: Attention
|
|
42
|
+
en: Warning
|
|
43
|
+
important:
|
|
44
|
+
fr: Important
|
|
45
|
+
en: Important
|
|
46
|
+
tip:
|
|
47
|
+
fr: Astuce
|
|
48
|
+
en: Tip
|
|
49
|
+
caution:
|
|
50
|
+
fr: Avertissement
|
|
51
|
+
en: Caution
|
|
52
|
+
button:
|
|
53
|
+
close:
|
|
54
|
+
fr: Fermer
|
|
55
|
+
en: Close
|
|
56
|
+
copy:
|
|
57
|
+
fr: Copier
|
|
58
|
+
en: Copy
|
|
59
|
+
copied:
|
|
60
|
+
fr: Copié
|
|
61
|
+
en: Copied
|
|
62
|
+
redirect:
|
|
63
|
+
title:
|
|
64
|
+
fr: Redirection
|
|
65
|
+
en: Redirecting
|
|
66
|
+
text:
|
|
67
|
+
fr: >
|
|
68
|
+
Vous allez être redirigé vers une autre page.<br>Si vous n'êtes pas redirigé automatiquement, cliquez sur ce [lien](%s).
|
|
69
|
+
en: >
|
|
70
|
+
You will be redirected to another page.<br>If you are not redirected automatically, click on this [link](%s).
|
|
71
|
+
do:
|
|
72
|
+
fr: À faire
|
|
73
|
+
en: Do
|
|
74
|
+
dont:
|
|
75
|
+
fr: À ne pas faire
|
|
76
|
+
en: Do not
|
|
77
|
+
anatomy:
|
|
78
|
+
required:
|
|
79
|
+
fr: Obligatoire
|
|
80
|
+
en: Required
|
|
81
|
+
optional:
|
|
82
|
+
fr: Optionnel
|
|
83
|
+
en: Optional
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: search
|
|
3
|
+
title: Résultats de recherche
|
|
4
|
+
shortTitle: Recherche
|
|
5
|
+
description: meta description pour le SEO
|
|
6
|
+
keywords: mots clés pour le SEO
|
|
7
|
+
summary: resumé, indexé dans la recherche
|
|
8
|
+
excerpt: résumé court pour les listings (recherche et autre)
|
|
9
|
+
template: search
|
|
10
|
+
styles:
|
|
11
|
+
- search
|
|
12
|
+
scripts:
|
|
13
|
+
- search
|
|
14
|
+
---
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
title: Paramètres d’affichage
|
|
2
|
+
title@en: Display settings
|
|
3
|
+
legend: Choisissez un thème pour personnaliser l’apparence du site.
|
|
4
|
+
legend@en: Choose a theme to customize the appearance of the site.
|
|
5
|
+
radios:
|
|
6
|
+
- id: light
|
|
7
|
+
text: Thème Clair
|
|
8
|
+
text@en: Light
|
|
9
|
+
pictogram: sun
|
|
10
|
+
- id: dark
|
|
11
|
+
text: Thème Sombre
|
|
12
|
+
text@en: Dark
|
|
13
|
+
pictogram: moon
|
|
14
|
+
- id: system
|
|
15
|
+
text: Système
|
|
16
|
+
text@en: System
|
|
17
|
+
pictogram: system
|
|
18
|
+
hint: Utilise les paramètres système
|
|
19
|
+
hint@en: Use system settings
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
link:
|
|
2
|
+
path: /
|
|
3
|
+
title: Retour à l'accueil - Système de Design de l'État
|
|
4
|
+
title@en: Home - Official french government's design system
|
|
5
|
+
top:
|
|
6
|
+
categories:
|
|
7
|
+
- text: Le DSFR
|
|
8
|
+
text@en: DSFR
|
|
9
|
+
links:
|
|
10
|
+
- url: https://gouvfr.atlassian.net/servicedesk/customer/portals
|
|
11
|
+
text: Nous contacter
|
|
12
|
+
text@en: Contact us
|
|
13
|
+
- path: /help
|
|
14
|
+
- path: /community
|
|
15
|
+
- text: Liens utiles
|
|
16
|
+
links:
|
|
17
|
+
- url: https://www.info.gouv.fr/marque-Etat
|
|
18
|
+
text: Charte de l'État
|
|
19
|
+
text@en: State Charter
|
|
20
|
+
- path: /first-steps/scope/approval
|
|
21
|
+
- path: /about/versions
|
|
22
|
+
content:
|
|
23
|
+
desc: Ce site est géré par le Service d’Information du Gouvernement (SIG)
|
|
24
|
+
links:
|
|
25
|
+
- text: info.gouv.fr
|
|
26
|
+
url: https://www.info.gouv.fr
|
|
27
|
+
- text: service-public.fr
|
|
28
|
+
url: https://www.service-public.fr
|
|
29
|
+
- text: legifrance.gouv.fr
|
|
30
|
+
url: https://www.legifrance.gouv.fr
|
|
31
|
+
- text: data.gouv.fr
|
|
32
|
+
url: https://www.data.gouv.fr
|
|
33
|
+
bottom:
|
|
34
|
+
links:
|
|
35
|
+
- path: /about/conformance
|
|
36
|
+
- path: /about/tos
|
|
37
|
+
- path: /about/legal
|
|
38
|
+
- path: /about/sitemap
|
|
39
|
+
- action: consent
|
|
40
|
+
text: Gestion des cookies
|
|
41
|
+
text@en: Consent management
|
|
42
|
+
- action: display
|
|
43
|
+
text: Paramètres d'affichage
|
|
44
|
+
text@en: Display settings
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
title: Système de Design de l'État
|
|
2
|
+
link:
|
|
3
|
+
path: /
|
|
4
|
+
title: Accueil - Système de Design de l'État
|
|
5
|
+
title@en: Home - Official french government's design system
|
|
6
|
+
links:
|
|
7
|
+
- url: https://f.intercom.gouvernement.fr/f/lp/liste-de-diffusion-ecosysteme-numerique/nvqcgaph
|
|
8
|
+
icon: chat-3-line
|
|
9
|
+
text: Être tenu informé
|
|
10
|
+
text@en: Keep in touch
|
|
11
|
+
- path: /help
|
|
12
|
+
modifier: team
|
|
13
|
+
- action: display
|
|
14
|
+
text: Paramètres d'affichage
|
|
15
|
+
text@en: Display settings
|
|
16
|
+
search:
|
|
17
|
+
text: Rechercher
|
|
18
|
+
text@en: Search
|
|
19
|
+
title: Rechercher
|
|
20
|
+
title@en: Search
|
|
21
|
+
path: /search
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
main:
|
|
2
|
+
items:
|
|
3
|
+
- path: /first-steps
|
|
4
|
+
type: mega-menu
|
|
5
|
+
leader:
|
|
6
|
+
path: /first-steps
|
|
7
|
+
text: Qu'est-ce que le DSFR et comment l'utiliser ?
|
|
8
|
+
text@en: What is the DSFR and how to use it ?
|
|
9
|
+
- path: /core
|
|
10
|
+
type: link
|
|
11
|
+
- path: /component
|
|
12
|
+
type: link
|
|
13
|
+
filter: part
|
|
14
|
+
- path: /layout
|
|
15
|
+
type: link
|
|
16
|
+
- path: /analytics
|
|
17
|
+
type: link
|
|
18
|
+
- path: /community
|
|
19
|
+
type: menu
|
|
20
|
+
- path: /about
|
|
21
|
+
type: menu
|
|
22
|
+
sidemenu:
|
|
23
|
+
- match: /first-steps
|
|
24
|
+
isCollapsible: true
|
|
25
|
+
depth: 2
|
|
26
|
+
- match: /core
|
|
27
|
+
- match: /component
|
|
28
|
+
rank: part
|
|
29
|
+
sort: text
|
|
30
|
+
- match: /layout
|
|
31
|
+
depth: 2
|
|
32
|
+
rank: part
|
|
33
|
+
- match: /analytics
|
|
34
|
+
- match: /community
|
|
35
|
+
- match: /about
|
|
36
|
+
isCollapsible: true
|
|
37
|
+
depth: 2
|