diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 70c6961beb..805cb10eb8 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -85,6 +85,7 @@ module.exports = (grunt) -> "concat:components" "concat:templates" "concat:sites" + "concat:wet-boew" "clean:wetboew_demos" "copy:wetboew_demos" ] @@ -553,11 +554,11 @@ module.exports = (grunt) -> stripBanners: true banner: "<%= banner %>" src: [ - "{sites,common,components,templates}/**/*.js" - "!{sites,common,components,templates}/**/test.js" - "!{sites,common,components,templates}/**/assets" - "!{sites,common,components,templates}/**/demo" - "!{sites,common,components,templates}/**/demos" + "{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" ] dest: "<%= themeDist %>/js/theme.js" common: @@ -581,6 +582,13 @@ module.exports = (grunt) -> separator: "," src: "templates/**/index.json-ld" dest: "_data/templates.json" + "wet-boew": + options: + banner: "[" + footer: "]\n" + separator: "," + src: "wet-boew/**/index.json-ld" + dest: "_data/wet-boew.json" sites: options: banner: "[" @@ -709,14 +717,14 @@ module.exports = (grunt) -> layouts: expand: true flatten: true - src: "{sites,components,templates,docs}/**/layouts/**.*" + src: "{sites,components,templates,docs,wet-boew}/**/layouts/**.*" dest: "<%= jekyllDist %>/_layouts" includes: files: [ expand: true src: [ - "{sites,components,templates}/**/*-{includes,inc}/**.html" - "!{sites,components,templates}/**/includes/**.*" + "{sites,components,templates,wet-boew}/**/*-{includes,inc}/**.html" + "!{sites,components,templates,wet-boew}/**/includes/**.*" ] dest: "<%= jekyllDist %>/_includes" rename: (dest, src) -> @@ -727,21 +735,21 @@ module.exports = (grunt) -> , expand: true src: [ - "{sites,components,templates}/**/includes/**.*" + "{sites,components,templates,wet-boew}/**/includes/**.*" ] dest: "<%= jekyllDist %>/_includes" rename: (dest, src) -> dest + src.substring( src.indexOf('/') ).replace( '/includes/', '/' ) , expand: true - src: "{sites,components,templates}/*/include.html" + src: "{sites,components,templates,wet-boew}/*/include.html" dest: "<%= jekyllDist %>/_includes" rename: (dest, src) -> dest + "/" + src.replace( '/include.html', '.html' ) ] samples: expand: true - src: "{sites,common,components,templates}/**/samples/**.*" + src: "{sites,common,components,templates,wet-boew}/**/samples/**.*" dest: "_includes" rename: (dest, src) -> dest + "/" + src.replace( 'samples/', '' ) @@ -764,15 +772,15 @@ module.exports = (grunt) -> expand: true flatten: true src: [ - "{sites,common,components,templates}/**/fonts/**.*" + "{sites,common,components,templates,wet-boew}/**/fonts/**.*" "!**/*.scss" ] dest: "<%= themeDist %>/fonts" assets: expand: true src: [ - "{sites,common,components,templates}/**/assets/**.*" - "{sites,common,components,templates}/**/assets/**/*.*" + "{sites,common,components,templates,wet-boew}/**/assets/**.*" + "{sites,common,components,templates,wet-boew}/**/assets/**/*.*" ] dest: "<%= themeDist %>/assets" rename: (dest, src) -> @@ -787,7 +795,7 @@ module.exports = (grunt) -> depsJS_custom: expand: true flatten: true - src: "{sites,common,components,templates}/deps/**.js" + src: "{sites,common,components,templates,wet-boew}/deps/**.js" dest: "<%= themeDist %>/deps-js" depsJS: expand: true @@ -1051,13 +1059,13 @@ module.exports = (grunt) -> quiet: true all: src: [ - "{sites,common,components,templates}/**/*.js" + "{sites,common,components,templates,wet-boew}/**/*.js" ] jsonlint: all: src: [ - "{sites,common,components,templates}/**/*.json", - "{sites,common,components,templates}/**/*.json-ld" + "{sites,common,components,templates,wet-boew}/**/*.json", + "{sites,common,components,templates,wet-boew}/**/*.json-ld" ] options: { indent: "\t" @@ -1068,7 +1076,7 @@ module.exports = (grunt) -> all: expand: true src: [ - "{sites,common,components,templates}/**/*.scss" + "{sites,common,components,templates,wet-boew}/**/*.scss" "!*-jekyll.scss" "!node_modules" ] @@ -1088,7 +1096,7 @@ module.exports = (grunt) -> "Rakefile" # Folders - "{sites,common,components,templates}/**" + "{sites,common,components,templates,wet-boew}/**" # # Exemptions... @@ -1098,17 +1106,17 @@ module.exports = (grunt) -> "!Gemfile.lock" # Web contents - "!{sites,common,components,templates}/**/*.md" + "!{sites,common,components,templates,wet-boew}/**/*.md" # "{sites,components,templates}/*/*.{md,html}" # "{sites,components,templates}/*.{md, html}" # "!{sites,components,templates}/*/**/*.{md,html}" # Images - "!{sites,common,components,templates}/**/*.{jpg,png,ico}" - "!{sites,common,components,templates}/*.{ico,jpg,png}" + "!{sites,common,components,templates,wet-boew}/**/*.{jpg,png,ico}" + "!{sites,common,components,templates,wet-boew}/*.{ico,jpg,png}" # External fonts - "!{sites,common,components,templates}/**/*.{eot,svg,ttf,woff}" + "!{sites,common,components,templates,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. diff --git a/_data/wet-boew.json b/_data/wet-boew.json new file mode 100644 index 0000000000..f481b5a74d --- /dev/null +++ b/_data/wet-boew.json @@ -0,0 +1,95 @@ +[{ + "@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": "Background image", + "fr": "Image d'arrière plan" + }, + "description": { + "en": "Apply a background image from the given URL in parameter or as per the image group (srcset) information.", + "fr": "Défini une image d'arrière plan pour l'URL passé en paramètre ou tel que spécifier par l'information du group d'image (srcset)." + }, + "modified": "2023-09-12", + "componentName": "bgimg", + "status": "stable", + "pages": { + "examples": [ + { + "title": "Background image", + "language": "en", + "type": "general", + "url": "https://wet-boew.github.io/gcweb-compiled-demos/wetboew-demos/bgimg/bgimg-en.html" + }, + { + "title": "Image d'arrière plan", + "language": "fr", + "url": "https://wet-boew.github.io/gcweb-compiled-demos/wetboew-demos/bgimg/bgimg-fr.html" + } + ], + "docs": [ + { + "title": "Background image", + "language": "en", + "url": "https://wet-boew.github.io/wet-boew/docs/ref/bgimg/bgimg-en.html" + }, + { + "title": "Image d'arrière plan", + "language": "fr", + "url": "https://wet-boew.github.io/wet-boew/docs/ref/bgimg/bgimg-fr.html" + } + ] + } +} +,{ + "@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": "Favicon", + "fr": "Favoricône" + }, + "description": { + "en": "This plugin provides the ability to add and update the favicon's on a web page.", + "fr": "Ce plugiciel offre la possibilité d'ajouter et de mettre à jour les favoricônes d'une page. " + }, + "modified": "2023-09-12", + "componentName": "favicon", + "status": "stable", + "pages": { + "examples": [ + { + "title": "Favicon", + "language": "en", + "type": "general", + "url": "https://wet-boew.github.io/gcweb-compiled-demos/wetboew-demos/favicon/favicon-en.html" + }, + { + "title": "Favoricône", + "language": "fr", + "url": "https://wet-boew.github.io/gcweb-compiled-demos/wetboew-demos/favicon/favicon-fr.html" + } + ], + "docs": [ + { + "title": "Favicon", + "language": "en", + "url": "https://wet-boew.github.io/wet-boew/docs/ref/favicon/favicon-en.html" + }, + { + "title": "Favoricône", + "language": "fr", + "url": "https://wet-boew.github.io/wet-boew/docs/ref/favicon/favicon-fr.html" + } + ] + } +} +] \ No newline at end of file diff --git a/index-en.md b/index-en.md index be1f455ec8..814d7acdc2 100644 --- a/index-en.md +++ b/index-en.md @@ -33,6 +33,7 @@ css:
{{ wetboew.description[ page.language ] | default: "[Short description of the wetboew]" }}
+ + {% assign mainExamples = list-pages.examples | where: "language", page.language | first %} +{{ wetboew.description[ page.language ] | default: "[Courte description de wetboew]" }}
+ + {% assign mainExamples = list-pages.examples | where: "language", page.language | first %} +