diff --git a/_data/components.json b/_data/components.json index 8e1e60c36c..073f9161cb 100644 --- a/_data/components.json +++ b/_data/components.json @@ -331,7 +331,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "No accessibility guidance.", "variations": [ { @@ -665,7 +664,6 @@ ] }, "a11yGuidance": "no accessibility guidance", - "dependencies": "no dependency", "variations": [ { "name": { @@ -1031,7 +1029,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "No accessibility guidance.", "variations": [ { @@ -1238,7 +1235,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "No accessibility guidance.", "variations": [ { @@ -1436,7 +1432,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "No accessibility guidance.", "variations": [ { diff --git a/_data/design-patterns.json b/_data/design-patterns.json index ecdbf23dea..810c00d0f7 100644 --- a/_data/design-patterns.json +++ b/_data/design-patterns.json @@ -42,7 +42,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "No accessibility guidance.", "variations": [ { @@ -167,9 +166,14 @@ } ] }, - "dependencies": [ - "bgimg" - ], + "dependencies": { + "en": [ + { "title": "Background image", "url": "https://wet-boew.github.io/wet-boew/docs/ref/bgimg/bgimg-en.html", "component": "bgimg" } + ], + "fr": [ + { "title": "Image d'arrière plan", "url": "https://wet-boew.github.io/wet-boew/docs/ref/bgimg/bgimg-fr.html", "component": "bgimg" } + ] + }, "a11yGuidance": "No accessibility guidance.", "variations": [ { diff --git a/_data/sites.json b/_data/sites.json index 5ea3e02a39..544f52b3ac 100644 --- a/_data/sites.json +++ b/_data/sites.json @@ -44,7 +44,6 @@ } ] }, - "dependencies": "no dependency", "a11yGuidance": "no accessibility guidance", "variations": [ { @@ -498,9 +497,14 @@ } ] }, - "dependencies": [ - "Page details" - ], + "dependencies": { + "en": [ + { "title": "Page details", "url": "https://wet-boew.github.io/GCWeb/sites/page-details/page-details-docs-en.html", "component": "page-details" } + ], + "fr": [ + { "title": "Détails de la page", "url": "https://wet-boew.github.io/GCWeb/sites/page-details/page-details-docs-fr.html", "component": "page-details" } + ] + }, "a11yGuidance": "no accessibility guidance", "variations": [ { @@ -713,9 +717,14 @@ } ] }, - "dependencies": [ - "Page details" - ], + "dependencies": { + "en": [ + { "title": "Page details", "url": "https://wet-boew.github.io/GCWeb/sites/page-details/page-details-docs-en.html", "component": "page-details" } + ], + "fr": [ + { "title": "Détails de la page", "url": "https://wet-boew.github.io/GCWeb/sites/page-details/page-details-docs-fr.html", "component": "page-details" } + ] + }, "a11yGuidance": "no accessibility guidance", "variations": [ { @@ -2188,7 +2197,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "This component respects all WCAG 2.1 guidelines.", "variations": [ { @@ -2423,11 +2431,18 @@ } ] }, - "dependencies": [ - "Page feedback area", - "Share this page", - "Date modified" - ], + "dependencies": { + "en": [ + { "title": "Feedback area", "url": "https://wet-boew.github.io/GCWeb/sites/feedback/feedback-docs-en.html", "component": "feedback" }, + { "title": "Share widget", "url": "https://wet-boew.github.io/wet-boew/docs/ref/share/share-en.html", "component": "share" }, + { "title": "Date modified", "url": "https://wet-boew.github.io/GCWeb/sites/date-modified/date-modified-en.html", "component": "date-modified" } + ], + "fr": [ + { "title": "Zone de rétroaction", "url": "https://wet-boew.github.io/GCWeb/sites/feedback/feedback-docs-fr.html", "component": "feedback" }, + { "title": "Gadget de partage", "url": "https://wet-boew.github.io/wet-boew/docs/ref/share/share-fr.html", "component": "share" }, + { "title": "Date de modification", "url": "https://wet-boew.github.io/GCWeb/sites/date-modified/date-modified-fr.html", "component": "date-modified" } + ] + }, "a11yGuidance": "no accessibility guidance", "variations": [ { diff --git a/_data/templates.json b/_data/templates.json index dfc337105d..fc09f38246 100644 --- a/_data/templates.json +++ b/_data/templates.json @@ -527,14 +527,24 @@ } ] }, - "dependencies": [ - "Intro block", - "Featured link", - "Most requested", - "Services and information", - "Social media channels", - "Minister or institutional head" - ], + "dependencies": { + "en": [ + { "title": "Intro block", "url": "https://wet-boew.github.io/GCWeb/design-patterns/gc-intro/gc-intro-doc-en.html", "component": "gc-intro" }, + { "title": "Featured link", "url": "https://wet-boew.github.io/GCWeb/components/gc-featured-link/gc-featured-link-doc-en.html", "component": "gc-featured-link" }, + { "title": "Most requested", "url": "https://wet-boew.github.io/GCWeb/components/gc-most-requested/gc-most-requested-doc-en.html", "component": "gc-most-requested" }, + { "title": "Services and information", "url": "https://wet-boew.github.io/GCWeb/components/gc-srvinfo/gc-srvinfo-doc-en.html", "component": "gc-srvinfo" }, + { "title": "Social media channels", "url": "https://wet-boew.github.io/GCWeb/components/gc-follow-us/gc-follow-us-doc-en.html", "component": "gc-follow-us" }, + { "title": "Minister or institutional head", "url": "https://wet-boew.github.io/GCWeb/components/gc-minister/gc-minister-doc-en.html", "component": "gc-minister" } + ], + "fr": [ + { "title": "Bloc d'introduction", "url": "https://wet-boew.github.io/GCWeb/design-patterns/gc-intro/gc-intro-doc-fr.html", "component": "gc-intro" }, + { "title": "Lien en vedette", "url": "https://wet-boew.github.io/GCWeb/components/gc-featured-link/gc-featured-link-doc-fr.html", "component": "gc-featured-link" }, + { "title": "En demande", "url": "https://wet-boew.github.io/GCWeb/components/gc-most-requested/gc-most-requested-doc-fr.html", "component": "gc-most-requested" }, + { "title": "Services et renseignements", "url": "https://wet-boew.github.io/GCWeb/components/gc-srvinfo/gc-srvinfo-doc-fr.html", "component": "gc-srvinfo" }, + { "title": "Bloc des réseaux de médias sociaux", "url": "https://wet-boew.github.io/GCWeb/components/gc-follow-us/gc-follow-us-doc-fr.html", "component": "gc-follow-us" }, + { "title": "Ministre ou chef d’institution", "url": "https://wet-boew.github.io/GCWeb/components/gc-minister/gc-minister-doc-fr.html", "component": "gc-minister" } + ] + }, "a11yGuidance": "No accessibility guidance.", "variations": [ { diff --git a/components/gc-featured-link/index.json-ld b/components/gc-featured-link/index.json-ld index b5d5b9904c..74063dcc0c 100644 --- a/components/gc-featured-link/index.json-ld +++ b/components/gc-featured-link/index.json-ld @@ -66,7 +66,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "No accessibility guidance.", "variations": [ { diff --git a/components/gc-follow-us/index.json-ld b/components/gc-follow-us/index.json-ld index 2ceb8dae52..23cd97b7cf 100644 --- a/components/gc-follow-us/index.json-ld +++ b/components/gc-follow-us/index.json-ld @@ -45,7 +45,6 @@ ] }, "a11yGuidance": "no accessibility guidance", - "dependencies": "no dependency", "variations": [ { "name": { diff --git a/components/gc-minister/index.json-ld b/components/gc-minister/index.json-ld index d84cb7e2e3..53c6a6849d 100644 --- a/components/gc-minister/index.json-ld +++ b/components/gc-minister/index.json-ld @@ -64,7 +64,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "No accessibility guidance.", "variations": [ { diff --git a/components/gc-most-requested/index.json-ld b/components/gc-most-requested/index.json-ld index 44fc500026..f237fdd224 100644 --- a/components/gc-most-requested/index.json-ld +++ b/components/gc-most-requested/index.json-ld @@ -54,7 +54,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "No accessibility guidance.", "variations": [ { diff --git a/components/gc-srvinfo/index.json-ld b/components/gc-srvinfo/index.json-ld index 7069b0336e..d38a9d6b5f 100644 --- a/components/gc-srvinfo/index.json-ld +++ b/components/gc-srvinfo/index.json-ld @@ -56,7 +56,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "No accessibility guidance.", "variations": [ { diff --git a/design-patterns/gc-institution/index.json-ld b/design-patterns/gc-institution/index.json-ld index bada8d9369..f16794de82 100644 --- a/design-patterns/gc-institution/index.json-ld +++ b/design-patterns/gc-institution/index.json-ld @@ -42,7 +42,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "No accessibility guidance.", "variations": [ { diff --git a/design-patterns/gc-intro/index.json-ld b/design-patterns/gc-intro/index.json-ld index 661eeba6ac..5edea049e8 100644 --- a/design-patterns/gc-intro/index.json-ld +++ b/design-patterns/gc-intro/index.json-ld @@ -52,9 +52,14 @@ } ] }, - "dependencies": [ - "bgimg" - ], + "dependencies": { + "en": [ + { "title": "Background image", "url": "https://wet-boew.github.io/wet-boew/docs/ref/bgimg/bgimg-en.html", "component": "bgimg" } + ], + "fr": [ + { "title": "Image d'arrière plan", "url": "https://wet-boew.github.io/wet-boew/docs/ref/bgimg/bgimg-fr.html", "component": "bgimg" } + ] + }, "a11yGuidance": "No accessibility guidance.", "variations": [ { diff --git a/sites/archived/index.json-ld b/sites/archived/index.json-ld index a8e464385c..82586cad57 100644 --- a/sites/archived/index.json-ld +++ b/sites/archived/index.json-ld @@ -44,7 +44,6 @@ } ] }, - "dependencies": "no dependency", "a11yGuidance": "no accessibility guidance", "variations": [ { diff --git a/sites/date-modified/index.json-ld b/sites/date-modified/index.json-ld index 79294cf48f..d5cbe335e4 100644 --- a/sites/date-modified/index.json-ld +++ b/sites/date-modified/index.json-ld @@ -32,9 +32,14 @@ } ] }, - "dependencies": [ - "Page details" - ], + "dependencies": { + "en": [ + { "title": "Page details", "url": "https://wet-boew.github.io/GCWeb/sites/page-details/page-details-docs-en.html", "component": "page-details" } + ], + "fr": [ + { "title": "Détails de la page", "url": "https://wet-boew.github.io/GCWeb/sites/page-details/page-details-docs-fr.html", "component": "page-details" } + ] + }, "a11yGuidance": "no accessibility guidance", "variations": [ { diff --git a/sites/feedback/index.json-ld b/sites/feedback/index.json-ld index 17144c2baa..b9bf1b49df 100644 --- a/sites/feedback/index.json-ld +++ b/sites/feedback/index.json-ld @@ -86,9 +86,14 @@ } ] }, - "dependencies": [ - "Page details" - ], + "dependencies": { + "en": [ + { "title": "Page details", "url": "https://wet-boew.github.io/GCWeb/sites/page-details/page-details-docs-en.html", "component": "page-details" } + ], + "fr": [ + { "title": "Détails de la page", "url": "https://wet-boew.github.io/GCWeb/sites/page-details/page-details-docs-fr.html", "component": "page-details" } + ] + }, "a11yGuidance": "no accessibility guidance", "variations": [ { diff --git a/sites/layouts/documentation.html b/sites/layouts/documentation.html index b55fbd0603..5ab793d83a 100644 --- a/sites/layouts/documentation.html +++ b/sites/layouts/documentation.html @@ -95,13 +95,14 @@

{% if lng == "fr" %}Composants inclus{% else %}Included { "template": "[data-yes]", "test": "fn:isArray", - "value": "/dependencies", + "value": "/dependencies/{{lng}}", "mapping": [ { "template": "template", - "value": "/", + "assess": "/dependencies/{{lng}}", "mapping": [ - { "selector": "li", "value": "/@value" } + { "selector": "a", "value": "/title" }, + { "selector": "a", "value": "/url", "attr": "href" } ] } ] @@ -112,19 +113,26 @@

{% if lng == "fr" %}Composants inclus{% else %}Included "test": "fn:isLiteral", "value": "/dependencies", "mapping": null + }, + { + "template": "[data-no]", + "test": "fn:guessType", + "expect": "undefined", + "value": "/dependencies", + "mapping": null } ] } ] }'> diff --git a/sites/layouts/documentation_pattern.html b/sites/layouts/documentation_pattern.html index ce6060b1fd..aa948648c9 100644 --- a/sites/layouts/documentation_pattern.html +++ b/sites/layouts/documentation_pattern.html @@ -82,13 +82,14 @@

{% if lng == "fr" %}Composants inclus{% else %}Included { "template": "[data-yes]", "test": "fn:isArray", - "value": "/dependencies", + "value": "/dependencies/{{lng}}", "mapping": [ { "template": "template", - "value": "/", + "assess": "/dependencies/{{lng}}", "mapping": [ - { "selector": "li", "value": "/@value" } + { "selector": "a", "value": "/title" }, + { "selector": "a", "value": "/url", "attr": "href" } ] } ] @@ -99,19 +100,26 @@

{% if lng == "fr" %}Composants inclus{% else %}Included "test": "fn:isLiteral", "value": "/dependencies", "mapping": null + }, + { + "template": "[data-no]", + "test": "fn:guessType", + "expect": "undefined", + "value": "/dependencies", + "mapping": null } ] } ] }'> diff --git a/sites/main-page-title/index.json-ld b/sites/main-page-title/index.json-ld index 7c4034c001..b3d741e18f 100644 --- a/sites/main-page-title/index.json-ld +++ b/sites/main-page-title/index.json-ld @@ -32,7 +32,6 @@ } ] }, - "dependencies": "No dependency.", "a11yGuidance": "This component respects all WCAG 2.1 guidelines.", "variations": [ { diff --git a/sites/page-details/index.json-ld b/sites/page-details/index.json-ld index 8f73cb2aa8..8d317cafc2 100644 --- a/sites/page-details/index.json-ld +++ b/sites/page-details/index.json-ld @@ -97,11 +97,18 @@ } ] }, - "dependencies": [ - "Page feedback area", - "Share this page", - "Date modified" - ], + "dependencies": { + "en": [ + { "title": "Feedback area", "url": "https://wet-boew.github.io/GCWeb/sites/feedback/feedback-docs-en.html", "component": "feedback" }, + { "title": "Share widget", "url": "https://wet-boew.github.io/wet-boew/docs/ref/share/share-en.html", "component": "share" }, + { "title": "Date modified", "url": "https://wet-boew.github.io/GCWeb/sites/date-modified/date-modified-en.html", "component": "date-modified" } + ], + "fr": [ + { "title": "Zone de rétroaction", "url": "https://wet-boew.github.io/GCWeb/sites/feedback/feedback-docs-fr.html", "component": "feedback" }, + { "title": "Gadget de partage", "url": "https://wet-boew.github.io/wet-boew/docs/ref/share/share-fr.html", "component": "share" }, + { "title": "Date de modification", "url": "https://wet-boew.github.io/GCWeb/sites/date-modified/date-modified-fr.html", "component": "date-modified" } + ] + }, "a11yGuidance": "no accessibility guidance", "variations": [ { diff --git a/templates/institutional-landing/index.json-ld b/templates/institutional-landing/index.json-ld index 076787758a..7609c9cea7 100644 --- a/templates/institutional-landing/index.json-ld +++ b/templates/institutional-landing/index.json-ld @@ -66,14 +66,24 @@ } ] }, - "dependencies": [ - "Intro block", - "Featured link", - "Most requested", - "Services and information", - "Social media channels", - "Minister or institutional head" - ], + "dependencies": { + "en": [ + { "title": "Intro block", "url": "https://wet-boew.github.io/GCWeb/design-patterns/gc-intro/gc-intro-doc-en.html", "component": "gc-intro" }, + { "title": "Featured link", "url": "https://wet-boew.github.io/GCWeb/components/gc-featured-link/gc-featured-link-doc-en.html", "component": "gc-featured-link" }, + { "title": "Most requested", "url": "https://wet-boew.github.io/GCWeb/components/gc-most-requested/gc-most-requested-doc-en.html", "component": "gc-most-requested" }, + { "title": "Services and information", "url": "https://wet-boew.github.io/GCWeb/components/gc-srvinfo/gc-srvinfo-doc-en.html", "component": "gc-srvinfo" }, + { "title": "Social media channels", "url": "https://wet-boew.github.io/GCWeb/components/gc-follow-us/gc-follow-us-doc-en.html", "component": "gc-follow-us" }, + { "title": "Minister or institutional head", "url": "https://wet-boew.github.io/GCWeb/components/gc-minister/gc-minister-doc-en.html", "component": "gc-minister" } + ], + "fr": [ + { "title": "Bloc d'introduction", "url": "https://wet-boew.github.io/GCWeb/design-patterns/gc-intro/gc-intro-doc-fr.html", "component": "gc-intro" }, + { "title": "Lien en vedette", "url": "https://wet-boew.github.io/GCWeb/components/gc-featured-link/gc-featured-link-doc-fr.html", "component": "gc-featured-link" }, + { "title": "En demande", "url": "https://wet-boew.github.io/GCWeb/components/gc-most-requested/gc-most-requested-doc-fr.html", "component": "gc-most-requested" }, + { "title": "Services et renseignements", "url": "https://wet-boew.github.io/GCWeb/components/gc-srvinfo/gc-srvinfo-doc-fr.html", "component": "gc-srvinfo" }, + { "title": "Bloc des réseaux de médias sociaux", "url": "https://wet-boew.github.io/GCWeb/components/gc-follow-us/gc-follow-us-doc-fr.html", "component": "gc-follow-us" }, + { "title": "Ministre ou chef d’institution", "url": "https://wet-boew.github.io/GCWeb/components/gc-minister/gc-minister-doc-fr.html", "component": "gc-minister" } + ] + }, "a11yGuidance": "No accessibility guidance.", "variations": [ {