From e240709e48d6bca2d926a2d4cc6090cb08750001 Mon Sep 17 00:00:00 2001 From: Eric Dunsworth <1907279+EricDunsworth@users.noreply.github.com> Date: Mon, 10 Jul 2023 16:14:10 -0400 Subject: [PATCH 001/100] Provisional alert include: Simplify link destination * Use the relative_url Liquid filter for the provisional page's link destination (makes it relative to baseurl) * Remove the provisionaldir and siteroot variables * Fixes broken links caused by incorrect relative paths * Spinoff of #2179 --- _includes/alert-provisional.html | 4 ++-- components/gc-featured-link/gc-featured-link-en.html | 2 +- components/gc-featured-link/gc-featured-link-fr.html | 2 +- components/gc-feeds/gc-feeds-en.html | 2 +- components/gc-feeds/gc-feeds-fr.html | 2 +- components/gc-most-requested/gc-most-requested-en.html | 2 +- components/gc-most-requested/gc-most-requested-fr.html | 2 +- components/gc-subway/aem-bad-implementation-en.html | 2 +- components/gc-subway/aem-bad-implementation-fr.html | 2 +- components/gc-subway/docs-en.html | 2 +- components/gc-subway/docs-fr.html | 2 +- components/gc-subway/index-en.html | 2 +- components/gc-subway/index-fr.html | 2 +- components/gc-subway/section-rel-info-en.html | 2 +- components/gc-subway/section-rel-info-fr.html | 2 +- components/gc-subway/section-subtitle-en.html | 2 +- components/gc-subway/section-subtitle-fr.html | 2 +- components/gc-subway/section1-en.html | 2 +- components/gc-subway/section1-fr.html | 2 +- components/gc-subway/section2-en.html | 2 +- components/gc-subway/section2-fr.html | 2 +- components/gc-subway/sub-section-en.html | 2 +- components/gc-subway/sub-section-fr.html | 2 +- components/gc-subway/sub-section-noline-en.html | 2 +- components/gc-subway/sub-section-noline-fr.html | 2 +- components/gc-table/gc-table-en.html | 2 +- components/gc-table/gc-table-fr.html | 2 +- components/wb-chtwzrd/chatwizard-en.html | 2 +- components/wb-chtwzrd/chatwizard-fr.html | 2 +- components/wb-chtwzrd/chatwizard-json-en.html | 2 +- components/wb-chtwzrd/chatwizard-json-fr.html | 2 +- templates/thematic/dark-theme-en.html | 2 +- templates/thematic/dark-theme-fr.html | 2 +- templates/thematic/pink-day-en.html | 2 +- templates/thematic/pink-day-fr.html | 2 +- 35 files changed, 36 insertions(+), 36 deletions(-) diff --git a/_includes/alert-provisional.html b/_includes/alert-provisional.html index 4fa4d438a6..8a4634e228 100644 --- a/_includes/alert-provisional.html +++ b/_includes/alert-provisional.html @@ -3,13 +3,13 @@

Fonctionnalité instable

À être utilisé à vos propres risques. Toutes les fonctionnalités décrites ci-dessous pourraient être retirées à n'importe quelle version mineur/majeur ultérieure et l'ensemble des fonctionnalités provisoires sont exclues de l'API publique de GCWeb.

La documentation et/ou les exemples pratiques pourraient être incomplets ou être non disponible.

-

Voir l'ensemble des fonctionnalités provisoires.

+

Voir l'ensemble des fonctionnalités provisoires.

{%- elsif page.language == "en" -%}

Unstable feature

To be used at your own risks. All functionalities described below could be removed in any subsequent minor/major release and are excluded from the GCWeb public API.

Documentation and/or working examples for those features could be incomplete or not available.

-

See all provisional features.

+

See all provisional features.

{%- endif -%} diff --git a/components/gc-featured-link/gc-featured-link-en.html b/components/gc-featured-link/gc-featured-link-en.html index b21067eac8..c7b286db65 100644 --- a/components/gc-featured-link/gc-featured-link-en.html +++ b/components/gc-featured-link/gc-featured-link-en.html @@ -9,7 +9,7 @@

{{ page.title }}

- {% include alert-provisional.html siteroot="../../" %} + {% include alert-provisional.html %} diff --git a/components/gc-featured-link/gc-featured-link-fr.html b/components/gc-featured-link/gc-featured-link-fr.html index fb6cc73d2e..eec2ccd02b 100644 --- a/components/gc-featured-link/gc-featured-link-fr.html +++ b/components/gc-featured-link/gc-featured-link-fr.html @@ -9,7 +9,7 @@

{{ page.title }}

- {% include alert-provisional.html siteroot="../../" %} + {% include alert-provisional.html %} diff --git a/components/gc-feeds/gc-feeds-en.html b/components/gc-feeds/gc-feeds-en.html index 31359c2776..0f71723a0a 100644 --- a/components/gc-feeds/gc-feeds-en.html +++ b/components/gc-feeds/gc-feeds-en.html @@ -8,7 +8,7 @@ altLangPage: "gc-feeds-fr.html" title: "Feeds plugin GC override - Provisional feature" --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} diff --git a/components/gc-feeds/gc-feeds-fr.html b/components/gc-feeds/gc-feeds-fr.html index b38e56b8d0..7d1111b786 100644 --- a/components/gc-feeds/gc-feeds-fr.html +++ b/components/gc-feeds/gc-feeds-fr.html @@ -8,7 +8,7 @@ altLangPage: "gc-feeds-en.html" title: "Fils de syndication remplacement et application de styles GC - fonctionnalité provisoire" --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} diff --git a/components/gc-most-requested/gc-most-requested-en.html b/components/gc-most-requested/gc-most-requested-en.html index b0db670d09..9662bf1baa 100644 --- a/components/gc-most-requested/gc-most-requested-en.html +++ b/components/gc-most-requested/gc-most-requested-en.html @@ -8,7 +8,7 @@ altLangPage: "gc-most-requested-fr.html" title: "Most requested - Provisional feature" --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} diff --git a/components/gc-most-requested/gc-most-requested-fr.html b/components/gc-most-requested/gc-most-requested-fr.html index 208628dd2a..3351c3cdd3 100644 --- a/components/gc-most-requested/gc-most-requested-fr.html +++ b/components/gc-most-requested/gc-most-requested-fr.html @@ -8,7 +8,7 @@ altLangPage: "gc-most-requested-en.html" title: "En demande - fonctionnalité provisoire" --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} diff --git a/components/gc-subway/aem-bad-implementation-en.html b/components/gc-subway/aem-bad-implementation-en.html index cb8d490f54..6cce6fe96e 100644 --- a/components/gc-subway/aem-bad-implementation-en.html +++ b/components/gc-subway/aem-bad-implementation-en.html @@ -14,7 +14,7 @@

Deprecated implementation

This implementation of the GC-Subway plugin is deprecated and will be removed shortly.

-{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/aem-bad-implementation-fr.html b/components/gc-subway/aem-bad-implementation-fr.html index 2f07bd8ccb..f76e3fd41e 100644 --- a/components/gc-subway/aem-bad-implementation-fr.html +++ b/components/gc-subway/aem-bad-implementation-fr.html @@ -14,7 +14,7 @@

Implémentation dépréciée

Cette implémentation du plugiciel GC-Subway est obsolète et sera bientôt supprimée.

-{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/docs-en.html b/components/gc-subway/docs-en.html index f4f2324e15..b01a053b42 100644 --- a/components/gc-subway/docs-en.html +++ b/components/gc-subway/docs-en.html @@ -8,7 +8,7 @@ "share": "true" } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %}
diff --git a/components/gc-subway/docs-fr.html b/components/gc-subway/docs-fr.html index d875688336..6e4d96255e 100644 --- a/components/gc-subway/docs-fr.html +++ b/components/gc-subway/docs-fr.html @@ -8,7 +8,7 @@ "share": "true" } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %}
diff --git a/components/gc-subway/index-en.html b/components/gc-subway/index-en.html index 20efbecc0a..426bcc4f50 100644 --- a/components/gc-subway/index-en.html +++ b/components/gc-subway/index-en.html @@ -10,7 +10,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %}

GC Subway index

diff --git a/components/gc-subway/index-fr.html b/components/gc-subway/index-fr.html index 301e5dd94a..80aba9e631 100644 --- a/components/gc-subway/index-fr.html +++ b/components/gc-subway/index-fr.html @@ -10,7 +10,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %}

Page d'introduction de GC Métro

diff --git a/components/gc-subway/section-rel-info-en.html b/components/gc-subway/section-rel-info-en.html index 4e4300bb62..283519955d 100644 --- a/components/gc-subway/section-rel-info-en.html +++ b/components/gc-subway/section-rel-info-en.html @@ -9,7 +9,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/section-rel-info-fr.html b/components/gc-subway/section-rel-info-fr.html index c13152afd2..8452194e69 100644 --- a/components/gc-subway/section-rel-info-fr.html +++ b/components/gc-subway/section-rel-info-fr.html @@ -9,7 +9,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/section-subtitle-en.html b/components/gc-subway/section-subtitle-en.html index 136f8eb0d1..859a11f1de 100644 --- a/components/gc-subway/section-subtitle-en.html +++ b/components/gc-subway/section-subtitle-en.html @@ -9,7 +9,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/section-subtitle-fr.html b/components/gc-subway/section-subtitle-fr.html index 79ceff8bc4..12fbb5c3ed 100644 --- a/components/gc-subway/section-subtitle-fr.html +++ b/components/gc-subway/section-subtitle-fr.html @@ -9,7 +9,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/section1-en.html b/components/gc-subway/section1-en.html index c47e971ea4..0908490e29 100644 --- a/components/gc-subway/section1-en.html +++ b/components/gc-subway/section1-en.html @@ -9,7 +9,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/section1-fr.html b/components/gc-subway/section1-fr.html index bdece55d84..88cc41e3d7 100644 --- a/components/gc-subway/section1-fr.html +++ b/components/gc-subway/section1-fr.html @@ -9,7 +9,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/section2-en.html b/components/gc-subway/section2-en.html index 979717d9da..688f12ab25 100644 --- a/components/gc-subway/section2-en.html +++ b/components/gc-subway/section2-en.html @@ -10,7 +10,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/section2-fr.html b/components/gc-subway/section2-fr.html index 13d21b9189..ef70357a1c 100644 --- a/components/gc-subway/section2-fr.html +++ b/components/gc-subway/section2-fr.html @@ -10,7 +10,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/sub-section-en.html b/components/gc-subway/sub-section-en.html index ed4949db20..28f2419afb 100644 --- a/components/gc-subway/sub-section-en.html +++ b/components/gc-subway/sub-section-en.html @@ -9,7 +9,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/sub-section-fr.html b/components/gc-subway/sub-section-fr.html index 4c6d1a78e3..b054fa6d04 100644 --- a/components/gc-subway/sub-section-fr.html +++ b/components/gc-subway/sub-section-fr.html @@ -9,7 +9,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/sub-section-noline-en.html b/components/gc-subway/sub-section-noline-en.html index 9289558844..00523d7c97 100644 --- a/components/gc-subway/sub-section-noline-en.html +++ b/components/gc-subway/sub-section-noline-en.html @@ -9,7 +9,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-subway/sub-section-noline-fr.html b/components/gc-subway/sub-section-noline-fr.html index e341ed071c..e56bc3338c 100644 --- a/components/gc-subway/sub-section-noline-fr.html +++ b/components/gc-subway/sub-section-noline-fr.html @@ -9,7 +9,7 @@ } --- -{% include alert-provisional.html siteroot="../../" %} +{% include alert-provisional.html %} {%- include_relative fragments/docs-questions.html -%} diff --git a/components/gc-table/gc-table-en.html b/components/gc-table/gc-table-en.html index 0460916843..4c5d8b1f4a 100644 --- a/components/gc-table/gc-table-en.html +++ b/components/gc-table/gc-table-en.html @@ -11,7 +11,7 @@ "title": "GC tables" } --- -{% include alert-provisional.html provisionaldir="../" %} +{% include alert-provisional.html %}
diff --git a/components/gc-table/gc-table-fr.html b/components/gc-table/gc-table-fr.html index 9fe60bf0ee..64cbbf7818 100644 --- a/components/gc-table/gc-table-fr.html +++ b/components/gc-table/gc-table-fr.html @@ -11,7 +11,7 @@ "title": "Tableaux GC" } --- -{% include alert-provisional.html provisionaldir="../" %} +{% include alert-provisional.html %}
diff --git a/components/wb-chtwzrd/chatwizard-en.html b/components/wb-chtwzrd/chatwizard-en.html index f24f0fff24..7fa654d3ef 100644 --- a/components/wb-chtwzrd/chatwizard-en.html +++ b/components/wb-chtwzrd/chatwizard-en.html @@ -9,7 +9,7 @@ dateModified: "2022-08-25" --- -{% include alert-provisional.html provisionaldir="../" %} +{% include alert-provisional.html %}