diff --git a/config/_default/config.toml b/config/_default/config.toml index 480728dde..b60eda98a 100644 --- a/config/_default/config.toml +++ b/config/_default/config.toml @@ -208,6 +208,7 @@ enable = true version = "2025.1" url = "/docs/2025.1/" dotNetVersion = "net-8.0" + inSupport = true latest = true [[params.versions]] @@ -219,6 +220,7 @@ enable = true version = "2024.9" url = "/docs/2024.9/" dotNetVersion = "net-8.0" + inSupport = true [[params.versions]] version = "2024.7" @@ -239,6 +241,7 @@ enable = true version = "2024.1" url = "/docs/2024.1/" dotNetVersion = "net-6.0" + inSupport = true [[params.versions]] version = "2023.11" diff --git a/content/en/docs/2022.9/_index.md b/content/en/docs/2022.9/_index.md index f93f94b64..44a0d47c1 100644 --- a/content/en/docs/2022.9/_index.md +++ b/content/en/docs/2022.9/_index.md @@ -3,4 +3,5 @@ title: "2022.9" linkTitle: "2022.9" description: "Product documentation for the {{% ctx %}} automation platform, including guides, tutorials and reference documentation." weight: 1000 +outOfSupport: true --- diff --git a/content/en/docs/2023.11/_index.md b/content/en/docs/2023.11/_index.md index ec4dd10d4..6495f7801 100644 --- a/content/en/docs/2023.11/_index.md +++ b/content/en/docs/2023.11/_index.md @@ -3,4 +3,5 @@ title: "2023.11" linkTitle: "2023.11" description: "Product documentation for the {{% ctx %}} automation platform, including guides, tutorials and reference documentation." weight: 995 +outOfSupport: true --- diff --git a/content/en/docs/2023.3/_index.md b/content/en/docs/2023.3/_index.md index 632d0eed2..0c6b83d3c 100644 --- a/content/en/docs/2023.3/_index.md +++ b/content/en/docs/2023.3/_index.md @@ -3,4 +3,5 @@ title: "2023.3" linkTitle: "2023.3" description: "Product documentation for the {{% ctx %}} automation platform, including guides, tutorials and reference documentation." weight: 999 +outOfSupport: true --- diff --git a/content/en/docs/2023.5/_index.md b/content/en/docs/2023.5/_index.md index f6d10f3a7..5cdb2ebac 100644 --- a/content/en/docs/2023.5/_index.md +++ b/content/en/docs/2023.5/_index.md @@ -3,4 +3,5 @@ title: "2023.5" linkTitle: "2023.5" description: "Product documentation for the {{% ctx %}} automation platform, including guides, tutorials and reference documentation." weight: 998 +outOfSupport: true --- diff --git a/content/en/docs/2023.7/_index.md b/content/en/docs/2023.7/_index.md index 39852a9a5..4df6921c1 100644 --- a/content/en/docs/2023.7/_index.md +++ b/content/en/docs/2023.7/_index.md @@ -3,4 +3,5 @@ title: "2023.7" linkTitle: "2023.7" description: "Product documentation for the {{% ctx %}} automation platform, including guides, tutorials and reference documentation." weight: 997 +outOfSupport: true --- diff --git a/content/en/docs/2023.9/_index.md b/content/en/docs/2023.9/_index.md index 972ed229c..878beec8c 100644 --- a/content/en/docs/2023.9/_index.md +++ b/content/en/docs/2023.9/_index.md @@ -3,4 +3,5 @@ title: "2023.9" linkTitle: "2023.9" description: "Product documentation for the {{% ctx %}} automation platform, including guides, tutorials and reference documentation." weight: 996 +outOfSupport: true --- 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 --- diff --git a/content/en/docs/2024.3/_index.md b/content/en/docs/2024.3/_index.md index e8c6a6fc5..850eb0085 100644 --- a/content/en/docs/2024.3/_index.md +++ b/content/en/docs/2024.3/_index.md @@ -3,4 +3,5 @@ title: "2024.3" linkTitle: "2024.3" description: "Product documentation for the {{% ctx %}} automation platform, including guides, tutorials and reference documentation." weight: 993 +outOfSupport: true --- diff --git a/content/en/docs/2024.5/_index.md b/content/en/docs/2024.5/_index.md index 2ba2f57e5..05b6e4bd8 100644 --- a/content/en/docs/2024.5/_index.md +++ b/content/en/docs/2024.5/_index.md @@ -3,4 +3,5 @@ title: "2024.5" linkTitle: "2024.5" description: "Product documentation for the {{% ctx %}} automation platform, including guides, tutorials and reference documentation." weight: 992 +outOfSupport: true --- diff --git a/content/en/docs/2024.7/_index.md b/content/en/docs/2024.7/_index.md index 7e3158476..b654fc393 100644 --- a/content/en/docs/2024.7/_index.md +++ b/content/en/docs/2024.7/_index.md @@ -3,4 +3,5 @@ title: "2024.7" linkTitle: "2024.7" description: "Product documentation for the {{% ctx %}} automation platform, including guides, tutorials and reference documentation." weight: 991 +outOfSupport: true --- diff --git a/createLatest.ps1 b/createLatest.ps1 index f075f68db..005987137 100644 --- a/createLatest.ps1 +++ b/createLatest.ps1 @@ -1,7 +1,7 @@ $Path = ".\config\_default\config.toml" $latestName = "latest" -$LatestVersion = (Select-String -Path $Path -Pattern "latest = true" -Context 3, 0) -split "`"" +$LatestVersion = (Select-String -Path $Path -Pattern "latest = true" -Context 4, 0) -split "`"" # Use $LatestVersion[1] as we know that the version is the first line returned and splitting on " makes it the 2nd index $Version = $LatestVersion[1] diff --git a/layouts/partials/navbar-version-selector.html b/layouts/partials/navbar-version-selector.html index 720c43969..4c961fdf8 100644 --- a/layouts/partials/navbar-version-selector.html +++ b/layouts/partials/navbar-version-selector.html @@ -34,20 +34,22 @@ {{- end }} {{- end }} {{- range .Site.Params.versions }} - {{- $versionName := .version }} - {{- if .latest }} - {{- $versionName = printf "%s (%s)" .version "Latest" }} - {{- end }} - {{- $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 }} + {{- if .inSupport }} + {{- $versionName := .version }} + {{- if .latest }} + {{- $versionName = printf "%s (%s)" .version "Latest" }} {{- 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 }}