Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step by step navigation: adding documentation #2181

Merged
merged 1 commit into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions _data/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,41 @@
]
}
}
,{
"@context": {
"@version": 1.1,
"dct": "http://purl.org/dc/terms/",
"title": { "@id": "dct:title", "@container": "@language" },
"description": { "@id": "dct:description", "@container": "@language" },
"modified": "dct:modified"
},
"title": {
"en": "Alignment",
"fr": "Alignement"
},
"description": {
"en": "Alignment with custom styles.",
"fr": "Alignement avec des styles personalisés."
},
"modified": "2023-06-19",
"componentName": "alignment",
"processing": "baseline",
"status": "stable",
"pages": {
"examples": [
{
"title": "Alignment",
"language": "en",
"path": "alignment-en.html"
},
{
"title": "Alignement",
"language": "fr",
"path": "alignment-fr.html"
}
]
}
}
,{
"@context": {
"@version": 2.0,
Expand Down Expand Up @@ -182,4 +217,39 @@
]
}
}
,{
"@context": {
"@version": 1.1,
"dct": "http://purl.org/dc/terms/",
"title": { "@id": "dct:title", "@container": "@language" },
"description": { "@id": "dct:description", "@container": "@language" },
"modified": "dct:modified"
},
"title": {
"en": "Basic HTML",
"fr": "HTML simplifiée"
},
"description": {
"en": "Enable Basic HTML Mode",
"fr": "Passer à la version HTML simplifiée"
},
"modified": "2023-08-25",
"componentName": "wb-disable",
"processing": "baseline",
"status": "stable",
"pages": {
"examples": [
{
"title": "Basic HTML",
"language": "en",
"path": "wb-disable-en.html"
},
{
"title": "HTML simplifié",
"language": "fr",
"path": "wb-disable-fr.html"
}
]
}
}
]
70 changes: 70 additions & 0 deletions _data/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,18 @@
"language": "fr",
"path": "gc-features-fr.html"
}
],
"reports": [
{
"title": "Accessibility assessment #1 - Context-specific features",
"language": "en",
"path": "reports/a11y-1-en.html"
},
{
"title": "Assessment d'accessibilité #1 - Promotions contextuelles",
"language": "fr",
"path": "reports/a11y-1-fr.html"
}
]
}
}
Expand Down Expand Up @@ -284,6 +296,64 @@
]
}
}
,{
"@context": {
"@version": 1.1,
"dct": "http://purl.org/dc/terms/",
"title": { "@id": "dct:title", "@container": "@language" },
"description": { "@id": "dct:description", "@container": "@language" },
"modified": "dct:modified"
},
"title": {
"en": "Step by Step navigation",
"fr": "Navigation étape par étape"
},
"description": {
"en": "Step by Step navigation designed based on user experience testing",
"fr": "Navigation étape par étape conçu d'après des recherches d'expérience utilisateur"
},
"modified": "2023-06-28",
"componentName": "gc-stp-stp",
"status": "stable",
"pages": {
"docs": [
{
"title": "Step by Step navigation",
"language": "en",
"path": "gc-stp-stp-doc-en.html"
},
{
"title": "Navigation étape par étape",
"language": "fr",
"path": "gc-stp-stp-doc-fr.html"
}
],
"examples": [
{
"title": "Step by Step navigation",
"language": "en",
"path": "gc-stp-stp-en.html"
},
{
"title": "Navigation étape par étape",
"language": "fr",
"path": "gc-stp-stp-fr.html"
}
],
"spec": [
{
"title": "Navigation étape par étape : Système de conception de Canada.ca",
"language": "fr",
"url": "https://conception.canada.ca/modeles-recommandes/pages-lancement-service.html"
},
{
"title": "Step by Step navigation: Canada.ca design system",
"language": "en",
"url": "https://design.canada.ca/recommended-templates/service-initiation-pages.html"
}
]
}
}
,{
"@context": {
"@version": 1.1,
Expand Down
113 changes: 68 additions & 45 deletions _data/templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,74 @@
]
}
}
,{
"@context": {
"@version": 1.1,
"dct": "http://purl.org/dc/terms/",
"title": { "@id": "dct:title", "@container": "@language" },
"description": { "@id": "dct:description", "@container": "@language" },
"modified": "dct:modified"
},
"title": {
"en": "Content page",
"fr": "Page de contenu"
},
"description": {
"en": "Blank content pages with text sample.",
"fr": "Pages de contenu vides avec exemple de texte."
},
"modified": "2023-08-24",
"componentName": "content-page",
"status": "stable",
"pages": {
"examples": [
{
"title": "Content page",
"language": "en",
"type": "general",
"path": "content-en.html"
},
{
"title": "Page de contenu",
"language": "fr",
"path": "content-fr.html"
},

{
"title": "Fluid content page",
"language": "en",
"path": "content-fluid-en.html"
},
{
"title": "Page de contenu fluide",
"language": "fr",
"path": "content-fluid-fr.html"
},

{
"title": "Content page - Limited width content",
"language": "en",
"path": "content-limit-en.html"
},
{
"title": "Page de contenu - Largeur de contenu limitée",
"language": "fr",
"path": "content-limit-fr.html"
},

{
"title": "Content page - GCWeb 4.0.29 font stylee",
"language": "en",
"path": "content-gcweb-4-0-29-font-style-en.html"
},
{
"title": "Page de contenu - Police de caractère de GCWeb 4.0.29",
"language": "fr",
"path": "content-gcweb-4-0-29-font-style-fr.html"
}
]
}
}
,{
"@context": {
"@version": 1.1,
Expand Down Expand Up @@ -201,51 +269,6 @@
"status": "stable",
"pages": {
"examples": [
{
"title": "Content page",
"language": "en",
"type": "general",
"path": "content-en.html"
},
{
"title": "Page de contenu",
"language": "fr",
"path": "content-fr.html"
},

{
"title": "Fluid content page",
"language": "en",
"path": "content-fluid-en.html"
},
{
"title": "Page de contenu fluide",
"language": "fr",
"path": "content-fluid-fr.html"
},

{
"title": "Content page - Limited width content",
"language": "en",
"path": "content-limit-en.html"
},
{
"title": "Page de contenu - Largeur de contenu limitée",
"language": "fr",
"path": "content-limit-fr.html"
},

{
"title": "Content page - GCWeb 4.0.29 font stylee",
"language": "en",
"path": "content-gcweb-4-0-29-font-style-en.html"
},
{
"title": "Page de contenu - Police de caractère de GCWeb 4.0.29",
"language": "fr",
"path": "content-gcweb-4-0-29-font-style-fr.html"
},

{
"title": "Stay connected",
"language": "en",
Expand Down
7 changes: 0 additions & 7 deletions components/baseline/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@
* Components styles
*/

// Step by step navigation used on Advanced service template
.gc-stp-stp {
border-bottom: solid 1px #ccc;
margin-bottom: 30px;
margin-top: 15px;
}

// theme default color
.bg-gctheme {
background-color: #355688;
Expand Down
20 changes: 20 additions & 0 deletions components/gc-stp-stp/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
*
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
*
*
* GC Step by step navigation
*/

.gc-stp-stp {
border-bottom: solid 1px #ccc;
margin-bottom: 30px;
margin-top: 15px;

ul:not(.col-md-12), ol:not(.col-md-12) {
margin-left: 0;
margin-right: 0;
padding-left: 0;
}
}
16 changes: 16 additions & 0 deletions components/gc-stp-stp/_screen-sm-min.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
*
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
*
*
* GC Step by step navigation
*/

.gc-stp-stp {
ul, ol {
&:not(.lst-spcd) li {
margin-bottom: 10px;
}
}
}
Loading
Loading