Skip to content

Commit

Permalink
Merge branch 'wet-boew:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ipaksc authored Nov 28, 2023
2 parents 2225e0f + 74b26eb commit e6660a5
Show file tree
Hide file tree
Showing 235 changed files with 4,048 additions and 2,587 deletions.
69 changes: 40 additions & 29 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ module.exports = (grunt) ->
"concat:common"
"concat:components"
"concat:templates"
"concat:designPatterns"
"concat:sites"
"concat:wet-boew"
"clean:wetboew_demos"
Expand Down Expand Up @@ -418,11 +419,13 @@ module.exports = (grunt) ->
dataComponents = grunt.file.readJSON( this.data.components )
dataCommons = grunt.file.readJSON( this.data.common )
dataTemplates = grunt.file.readJSON( this.data.templates )
dataDesignPatterns = grunt.file.readJSON( this.data.designPatterns )

a11yReportByComponent = processComponentReporting( grunt, "sites", dataSites, a11yReportByTestRequirement, acrReportByConformity, reportConf )
a11yReportByComponent = a11yReportByComponent.concat( processComponentReporting( grunt, "components", dataComponents, a11yReportByTestRequirement, acrReportByConformity, reportConf ) )
a11yReportByComponent = a11yReportByComponent.concat( processComponentReporting( grunt, "common", dataCommons, a11yReportByTestRequirement, acrReportByConformity, reportConf ) )
a11yReportByComponent = a11yReportByComponent.concat( processComponentReporting( grunt, "templates", dataTemplates, a11yReportByTestRequirement, acrReportByConformity, reportConf ) )
a11yReportByComponent = a11yReportByComponent.concat( processComponentReporting( grunt, "designPatterns", dataDesignPatterns, a11yReportByTestRequirement, acrReportByConformity, reportConf ) )


#
Expand Down Expand Up @@ -532,6 +535,7 @@ module.exports = (grunt) ->
sites: "_data/sites.json"
components: "_data/components.json"
templates: "_data/templates.json"
designPatterns: "_data/design-patterns.json"
common: "_data/common.json"
reporting: "_data/reporting.json"

Expand Down Expand Up @@ -560,11 +564,11 @@ module.exports = (grunt) ->
stripBanners: true
banner: "<%= banner %>"
src: [
"{sites,common,components,templates,wet-boew}/**/*.js"
"!{sites,common,components,templates,wet-boew}/**/test.js"
"!{sites,common,components,templates,wet-boew}/**/assets"
"!{sites,common,components,templates,wet-boew}/**/demo"
"!{sites,common,components,templates,wet-boew}/**/demos"
"{sites,common,components,templates,design-patterns,wet-boew}/**/*.js"
"!{sites,common,components,templates,design-patterns,wet-boew}/**/test.js"
"!{sites,common,components,templates,design-patterns,wet-boew}/**/assets"
"!{sites,common,components,templates,design-patterns,wet-boew}/**/demo"
"!{sites,common,components,templates,design-patterns,wet-boew}/**/demos"
]
dest: "<%= themeDist %>/js/theme.js"
common:
Expand All @@ -588,6 +592,13 @@ module.exports = (grunt) ->
separator: ","
src: "templates/**/index.json-ld"
dest: "_data/templates.json"
designPatterns:
options:
banner: "["
footer: "]\n"
separator: ","
src: "design-patterns/**/index.json-ld"
dest: "_data/design-patterns.json"
"wet-boew":
options:
banner: "["
Expand Down Expand Up @@ -651,12 +662,12 @@ module.exports = (grunt) ->
# src: "_includes/settings.liquid"
jekyllRunLocal:
options:
banner: """{%- assign setting-resourcesBasePathTheme = "/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/<%= distFolder %>/wet-boew" -%}"""
banner: """{%- assign setting-resourcesBasePathTheme = "/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/<%= distFolder %>/wet-boew" -%}{%- assign setting-siteBasePath = "/" -%}"""
position: "bottom"
src: "<%= jekyllDist %>/_includes/settings.liquid"
jekyllRunDemo:
options:
banner: """{%- assign setting-resourcesBasePathTheme = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/wet-boew" -%}"""
banner: """{%- assign setting-resourcesBasePathTheme = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/GCWeb" -%}{%- assign setting-resourcesBasePathWetboew = "/wet-boew-demos/""" + grunt.option('branch') + """/<%= distFolder %>/wet-boew" -%}{%- assign setting-siteBasePath = "/wet-boew-demos/""" + grunt.option('branch') + """/" -%}"""
position: "bottom"
src: "<%= jekyllDist %>/_includes/settings.liquid"
jekyllRunUnminified:
Expand Down Expand Up @@ -723,14 +734,14 @@ module.exports = (grunt) ->
layouts:
expand: true
flatten: true
src: "{sites,components,templates,docs,wet-boew}/**/layouts/**.*"
src: "{sites,components,templates,design-patterns,docs,wet-boew}/**/layouts/**.*"
dest: "<%= jekyllDist %>/_layouts"
includes:
files: [
expand: true
src: [
"{sites,components,templates,wet-boew}/**/*-{includes,inc}/**.html"
"!{sites,components,templates,wet-boew}/**/includes/**.*"
"{sites,components,templates,design-patterns,wet-boew}/**/*-{includes,inc}/**.html"
"!{sites,components,templates,design-patterns,wet-boew}/**/includes/**.*"
]
dest: "<%= jekyllDist %>/_includes"
rename: (dest, src) ->
Expand All @@ -741,21 +752,21 @@ module.exports = (grunt) ->
,
expand: true
src: [
"{sites,components,templates,wet-boew}/**/includes/**.*"
"{sites,components,templates,design-patterns,wet-boew}/**/includes/**.*"
]
dest: "<%= jekyllDist %>/_includes"
rename: (dest, src) ->
dest + src.substring( src.indexOf('/') ).replace( '/includes/', '/' )
,
expand: true
src: "{sites,components,templates,wet-boew}/*/include.html"
src: "{sites,components,templates,design-patterns,wet-boew}/*/include.html"
dest: "<%= jekyllDist %>/_includes"
rename: (dest, src) ->
dest + "/" + src.replace( '/include.html', '.html' )
]
samples:
expand: true
src: "{sites,common,components,templates,wet-boew}/**/samples/**.*"
src: "{sites,common,components,templates,design-patterns,wet-boew}/**/samples/**.*"
dest: "_includes"
rename: (dest, src) ->
dest + "/" + src.replace( 'samples/', '' )
Expand All @@ -778,15 +789,15 @@ module.exports = (grunt) ->
expand: true
flatten: true
src: [
"{sites,common,components,templates,wet-boew}/**/fonts/**.*"
"{sites,common,components,templates,design-patterns,wet-boew}/**/fonts/**.*"
"!**/*.scss"
]
dest: "<%= themeDist %>/fonts"
assets:
expand: true
src: [
"{sites,common,components,templates,wet-boew}/**/assets/**.*"
"{sites,common,components,templates,wet-boew}/**/assets/**/*.*"
"{sites,common,components,templates,design-patterns,wet-boew}/**/assets/**.*"
"{sites,common,components,templates,design-patterns,wet-boew}/**/assets/**/*.*"
]
dest: "<%= themeDist %>/assets"
rename: (dest, src) ->
Expand All @@ -801,7 +812,7 @@ module.exports = (grunt) ->
depsJS_custom:
expand: true
flatten: true
src: "{sites,common,components,templates,wet-boew}/deps/**.js"
src: "{sites,common,components,templates,design-patterns,wet-boew}/deps/**.js"
dest: "<%= themeDist %>/deps-js"
depsJS:
expand: true
Expand Down Expand Up @@ -1065,13 +1076,13 @@ module.exports = (grunt) ->
quiet: true
all:
src: [
"{sites,common,components,templates,wet-boew}/**/*.js"
"{sites,common,components,templates,design-patterns,wet-boew}/**/*.js"
]
jsonlint:
all:
src: [
"{sites,common,components,templates,wet-boew}/**/*.json",
"{sites,common,components,templates,wet-boew}/**/*.json-ld"
"{sites,common,components,templates,design-patterns,wet-boew}/**/*.json",
"{sites,common,components,templates,design-patterns,wet-boew}/**/*.json-ld"
]
options: {
indent: "\t"
Expand All @@ -1082,7 +1093,7 @@ module.exports = (grunt) ->
all:
expand: true
src: [
"{sites,common,components,templates,wet-boew}/**/*.scss"
"{sites,common,components,templates,design-patterns,wet-boew}/**/*.scss"
"!*-jekyll.scss"
"!node_modules"
]
Expand All @@ -1102,7 +1113,7 @@ module.exports = (grunt) ->
"Rakefile"

# Folders
"{sites,common,components,templates,wet-boew}/**"
"{sites,common,components,templates,design-patterns,wet-boew}/**"

#
# Exemptions...
Expand All @@ -1112,17 +1123,17 @@ module.exports = (grunt) ->
"!Gemfile.lock"

# Web contents
"!{sites,common,components,templates,wet-boew}/**/*.md"
# "{sites,components,templates}/*/*.{md,html}"
# "{sites,components,templates}/*.{md, html}"
# "!{sites,components,templates}/*/**/*.{md,html}"
"!{sites,common,components,templates,design-patterns,wet-boew}/**/*.md"
# "{sites,components,templatesdesign-patterns}/*/*.{md,html}"
# "{sites,components,templatesdesign-patterns}/*.{md, html}"
# "!{sites,components,templatesdesign-patterns}/*/**/*.{md,html}"

# Images
"!{sites,common,components,templates,wet-boew}/**/*.{jpg,png,ico}"
"!{sites,common,components,templates,wet-boew}/*.{ico,jpg,png}"
"!{sites,common,components,templates,design-patterns,wet-boew}/**/*.{jpg,png,ico}"
"!{sites,common,components,templates,design-patterns,wet-boew}/*.{ico,jpg,png}"

# External fonts
"!{sites,common,components,templates,wet-boew}/**/*.{eot,svg,ttf,woff}"
"!{sites,common,components,templates,design-patterns,wet-boew}/**/*.{eot,svg,ttf,woff}"

# Docker environment file
# File that gets created/populated in a manner that goes against .editorconfig settings during the main Travis-CI build.
Expand Down
11 changes: 9 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ website: "https://wet-boew.github.io/GCWeb/" # URL of your public facing website
global:
lang: fr
feedbackPath:
en: "https://wet-boew.github.io/themes-dist/GCWeb/GCWeb/assets/feedback/page-feedback-en.html"
fr: "https://wet-boew.github.io/themes-dist/GCWeb/GCWeb/assets/feedback/page-feedback-fr.html"
en: "https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-en.html"
fr: "https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-fr.html"
# contextualFooter: # Contextual footer settings
# title:
# fr: "Référence d'implémentation de Canada.ca"
Expand All @@ -33,6 +33,13 @@ global:
privacyUrl:
en: "https://www.canada.ca/en/transparency/privacy.html"
fr: "https://www.canada.ca/fr/transparence/confidentialite.html"
breadcrumbs:
en:
- link: "index-en.html"
title: "GCWeb"
fr:
- link: "index-fr.html"
title: "GCWeb"

#
# Override include to use
Expand Down
12 changes: 12 additions & 0 deletions _data/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,18 @@
"language": "fr",
"path": "formulaires.html"
}
],
"reports": [
{
"title": "Accessibility assessment #1 - Input focus",
"language": "en",
"path": "reports/a11y-1-en.html"
},
{
"title": "Évaluation d'accessibilité #1 - Visibilité du focus",
"language": "fr",
"path": "reports/a11y-1-fr.html"
}
]
}
}
Expand Down
1 change: 1 addition & 0 deletions _data/design-patterns.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
2 changes: 2 additions & 0 deletions _data/i18n.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ page_group:
impl-ref: Implementation reference
spec: Specification
test: Tests pages
reports: Reports
fr:
examples: Exemples
docs: Documentations
related: Documents relié
test: Pages d'essaie
impl-ref: Référence d'implémentation
spec: Spécification
reports: Rapports

# Status de component
component_status:
Expand Down
Loading

0 comments on commit e6660a5

Please sign in to comment.