From 65e2c88edca07d430ced3e4d5a2cb18d5420e24b Mon Sep 17 00:00:00 2001 From: Donna-Marie Smith Date: Wed, 5 Feb 2025 10:54:36 +0000 Subject: [PATCH 1/5] WIP --- config/_default/config.toml | 12 ++++++++++++ layouts/partials/navbar-version-selector.html | 12 ++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index 1838857cd..535e21726 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -208,59 +208,71 @@ enable = true version = "2024.11" url = "/docs/2024.11/" dotNetVersion = "net-8.0" + inSupport = true latest = true [[params.versions]] version = "2024.9" url = "/docs/2024.9/" dotNetVersion = "net-8.0" + inSupport = true [[params.versions]] version = "2024.7" url = "/docs/2024.7/" dotNetVersion = "net-6.0" + inSupport = false [[params.versions]] version = "2024.5" url = "/docs/2024.5/" dotNetVersion = "net-6.0" + inSupport = false [[params.versions]] version = "2024.3" url = "/docs/2024.3/" dotNetVersion = "net-6.0" + inSupport = false [[params.versions]] version = "2024.1" url = "/docs/2024.1/" dotNetVersion = "net-6.0" + inSupport = true [[params.versions]] version = "2023.11" url = "/docs/2023.11/" dotNetVersion = "net-6.0" + inSupport = false [[params.versions]] version = "2023.9" url = "/docs/2023.9/" dotNetVersion = "net-6.0" + inSupport = false [[params.versions]] version = "2023.7" url = "/docs/2023.7/" dotNetVersion = "net-6.0" + inSupport = false [[params.versions]] version = "2023.5" url = "/docs/2023.5/" dotNetVersion = "net-6.0" + inSupport = false [[params.versions]] version = "2023.3" url = "/docs/2023.3/" dotNetVersion = "net-6.0" + inSupport = false [[params.versions]] version = "2022.9" url = "/docs/2022.9/" dotNetVersion = "netcore-3.1" + inSupport = false diff --git a/layouts/partials/navbar-version-selector.html b/layouts/partials/navbar-version-selector.html index 720c43969..b5c0091c3 100644 --- a/layouts/partials/navbar-version-selector.html +++ b/layouts/partials/navbar-version-selector.html @@ -14,13 +14,13 @@ {{- end }} {{- end }} {{ $versionName }} + {{- $dropdownLink := "" }} + {{- /* If it is a generic external url. */}} + {{- if hasPrefix .url "http" }} + {{- $dropdownLink = .url }} + {{- else }} + {{- $dropdownLink = printf "%s%s" .url $path }} + {{- if $isNested }} + {{- $dropdownLink = printf "%s%s" "/docs" $dropdownLink }} + {{- end }} + {{- end }} + {{ $versionName }} + {{- end }} {{- end }} \ No newline at end of file diff --git a/layouts/partials/section-index.html b/layouts/partials/section-index.html index b4d973a96..532c35c1e 100644 --- a/layouts/partials/section-index.html +++ b/layouts/partials/section-index.html @@ -18,13 +18,16 @@ {{/* Otherwise we show a nice formatted list of subpages with page descriptions */}}
{{ range $pages }} - {{ if eq .Parent $parent }} -
-
- {{- .Title -}} -
-

{{ .Description | markdownify }}

-
+ {{ if not .Params.outOfSupport}} + {{ if eq .Parent $parent }} +
+
+ {{- .Title -}} +
+

{{ .Description | markdownify }}

+
+ {{ end }} + {{ end }} {{ end }} {{ end }} From 6d0a9105931de933ed773d42745115e9fa372960 Mon Sep 17 00:00:00 2001 From: Donna-Marie Smith Date: Wed, 12 Feb 2025 10:51:19 +0000 Subject: [PATCH 5/5] Modified following latest release --- config/_default/config.toml | 10 ---------- content/en/docs/2024.11/_index.md | 1 + 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/config/_default/config.toml b/config/_default/config.toml index fa2752bb0..b60eda98a 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -215,7 +215,6 @@ enable = true version = "2024.11" url = "/docs/2024.11/" dotNetVersion = "net-8.0" - inSupport = false [[params.versions]] version = "2024.9" @@ -227,19 +226,16 @@ enable = true version = "2024.7" url = "/docs/2024.7/" dotNetVersion = "net-6.0" - inSupport = false [[params.versions]] version = "2024.5" url = "/docs/2024.5/" dotNetVersion = "net-6.0" - inSupport = false [[params.versions]] version = "2024.3" url = "/docs/2024.3/" dotNetVersion = "net-6.0" - inSupport = false [[params.versions]] version = "2024.1" @@ -251,34 +247,28 @@ enable = true version = "2023.11" url = "/docs/2023.11/" dotNetVersion = "net-6.0" - inSupport = false [[params.versions]] version = "2023.9" url = "/docs/2023.9/" dotNetVersion = "net-6.0" - inSupport = false [[params.versions]] version = "2023.7" url = "/docs/2023.7/" dotNetVersion = "net-6.0" - inSupport = false [[params.versions]] version = "2023.5" url = "/docs/2023.5/" dotNetVersion = "net-6.0" - inSupport = false [[params.versions]] version = "2023.3" url = "/docs/2023.3/" dotNetVersion = "net-6.0" - inSupport = false [[params.versions]] version = "2022.9" url = "/docs/2022.9/" dotNetVersion = "netcore-3.1" - inSupport = false diff --git a/content/en/docs/2024.11/_index.md b/content/en/docs/2024.11/_index.md index a1f2f156a..75d1a5378 100644 --- a/content/en/docs/2024.11/_index.md +++ b/content/en/docs/2024.11/_index.md @@ -3,4 +3,5 @@ title: "2024.11" linkTitle: "2024.11" description: "Product documentation for the {{% ctx %}} automation platform, including guides, tutorials and reference documentation." weight: 989 +outOfSupport: true ---