Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ enable = true
version = "2025.1"
url = "/docs/2025.1/"
dotNetVersion = "net-8.0"
inSupport = true
latest = true

[[params.versions]]
Expand All @@ -219,6 +220,7 @@ enable = true
version = "2024.9"
url = "/docs/2024.9/"
dotNetVersion = "net-8.0"
inSupport = true

[[params.versions]]
version = "2024.7"
Expand All @@ -239,6 +241,7 @@ enable = true
version = "2024.1"
url = "/docs/2024.1/"
dotNetVersion = "net-6.0"
inSupport = true

[[params.versions]]
version = "2023.11"
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/2022.9/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
1 change: 1 addition & 0 deletions content/en/docs/2023.11/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
1 change: 1 addition & 0 deletions content/en/docs/2023.3/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
1 change: 1 addition & 0 deletions content/en/docs/2023.5/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
1 change: 1 addition & 0 deletions content/en/docs/2023.7/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
1 change: 1 addition & 0 deletions content/en/docs/2023.9/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
1 change: 1 addition & 0 deletions content/en/docs/2024.11/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
1 change: 1 addition & 0 deletions content/en/docs/2024.3/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
1 change: 1 addition & 0 deletions content/en/docs/2024.5/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
1 change: 1 addition & 0 deletions content/en/docs/2024.7/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
2 changes: 1 addition & 1 deletion createLatest.ps1
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
30 changes: 16 additions & 14 deletions layouts/partials/navbar-version-selector.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
<a class="dropdown-item" href="{{ $dropdownLink }}" data-proofer-ignore>{{ $versionName }}</a>
{{- $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 }}
<a class="dropdown-item" href="{{ $dropdownLink }}" data-proofer-ignore>{{ $versionName }}</a>
{{- end }}
{{- end }}
</div>
17 changes: 10 additions & 7 deletions layouts/partials/section-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@
{{/* Otherwise we show a nice formatted list of subpages with page descriptions */}}
<hr class="panel-line">
{{ range $pages }}
{{ if eq .Parent $parent }}
<div class="entry">
<h5>
<a href="{{ .RelPermalink }}">{{- .Title -}}</a>
</h5>
<p>{{ .Description | markdownify }}</p>
</div>
{{ if not .Params.outOfSupport}}
{{ if eq .Parent $parent }}
<div class="entry">
<h5>
<a href="{{ .RelPermalink }}">{{- .Title -}}</a>
</h5>
<p>{{ .Description | markdownify }}</p>
</div>
{{ end }}

{{ end }}
{{ end }}
{{ end }}
Expand Down