From 8d5b87196a7dc7b02ab57c6d5905036d0da40ef3 Mon Sep 17 00:00:00 2001 From: DjP-iX <133042991+DjP-iX@users.noreply.github.com> Date: Mon, 11 Dec 2023 16:03:48 -0500 Subject: [PATCH 1/7] Create up-to-date.html --- layouts/shortcodes/up-to-date.html | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 layouts/shortcodes/up-to-date.html diff --git a/layouts/shortcodes/up-to-date.html b/layouts/shortcodes/up-to-date.html new file mode 100644 index 0000000000..9f5ce0f8ce --- /dev/null +++ b/layouts/shortcodes/up-to-date.html @@ -0,0 +1,9 @@ +{{ $Product := "TrueNAS SCALE" }} +{{ $Version := "23.10" }} +{{ $VersionHome := "https://www.truenas.com/docs/scale/23.10/" }} + +
+From 29c8007413ad9aa0d6c12ecb45861714801203ce Mon Sep 17 00:00:00 2001 From: DjP-iX <133042991+DjP-iX@users.noreply.github.com> Date: Mon, 11 Dec 2023 16:03:51 -0500 Subject: [PATCH 2/7] Create unstable-warning.html --- layouts/shortcodes/unstable-warning.html | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 layouts/shortcodes/unstable-warning.html diff --git a/layouts/shortcodes/unstable-warning.html b/layouts/shortcodes/unstable-warning.html new file mode 100644 index 0000000000..d7797f6888 --- /dev/null +++ b/layouts/shortcodes/unstable-warning.html @@ -0,0 +1,37 @@ +{{ $scaleReleases := index .Site.Data.properties "scale-releases" }} +{{ $coreReleases := index .Site.Data.properties "core-releases" }} +{{ $tcReleases := index .Site.Data.properties "tc-releases" }} + +++This page is up to date for {{ $Product }} {{ $Version }}. Use the product and version selector above to browse other documentation.
+
+From acc1bfa1cf7cb29f087c0b886bb5c49f1f812711 Mon Sep 17 00:00:00 2001 From: DjP-iX <133042991+DjP-iX@users.noreply.github.com> Date: Mon, 11 Dec 2023 16:03:53 -0500 Subject: [PATCH 3/7] Update _index.md --- content/_index.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/_index.md b/content/_index.md index 5aa74ea625..4b27f60b4a 100644 --- a/content/_index.md +++ b/content/_index.md @@ -9,6 +9,12 @@ div.docs-read_mod {display: none;} h1 {display:none;} +For testing purposes: +{{< unstable-warning >}} +{{< up-to-date >}} + +++This is the nightly development (unstable) version of this documentation, which may include features not available in or compatible with released stable versions.
+To browse stable documentation, use the product and version selector above or see SCALE + {{- with $scaleReleases.properties }} + {{- $latest := where . "latest" true }} + {{- range $index, $release := $latest }} + {{- if .link }} + {{ .name }}{{ if ne $index (sub (len $latest) 1) }} or {{ end }} + {{- end }} + {{- end }} + {{- end }}, + CORE + {{- with $coreReleases.properties }} + {{- $latest := where . "latest" true }} + {{- range $index, $release := $latest }} + {{- if .link }} + {{ .name }}{{ if ne $index (sub (len $latest) 1) }} or {{ end }} + {{- end }} + {{- end }} + {{- end }}, + or TrueCommand + {{- with $tcReleases.properties }} + {{- $latest := where . "latest" true }} + {{- range $index, $release := $latest }} + {{- if .link }} + {{ .name }}{{ if ne $index (sub (len $latest) 1) }} or {{ end }} + {{- end }} + {{- end }} + {{- end }}. +
+
-From ce983e171898e2b9b7ab73f514778f672ef617f9 Mon Sep 17 00:00:00 2001 From: DjP-iX <133042991+DjP-iX@users.noreply.github.com> Date: Mon, 18 Dec 2023 14:38:38 -0500 Subject: [PATCH 5/7] Revert "Create unstable-warning.html" This reverts commit 29c8007413ad9aa0d6c12ecb45861714801203ce. --- layouts/shortcodes/unstable-warning.html | 37 ------------------------ 1 file changed, 37 deletions(-) delete mode 100644 layouts/shortcodes/unstable-warning.html diff --git a/layouts/shortcodes/unstable-warning.html b/layouts/shortcodes/unstable-warning.html deleted file mode 100644 index d7797f6888..0000000000 --- a/layouts/shortcodes/unstable-warning.html +++ /dev/null @@ -1,37 +0,0 @@ -{{ $scaleReleases := index .Site.Data.properties "scale-releases" }} -{{ $coreReleases := index .Site.Data.properties "core-releases" }} -{{ $tcReleases := index .Site.Data.properties "tc-releases" }} - ---This page is up to date for {{ $Product }} {{ $Version }}. Use the product and version selector above to browse other documentation.
-
-From fa893f5f303efd55590467d26202b1da92a5652a Mon Sep 17 00:00:00 2001 From: DjP-iX <133042991+DjP-iX@users.noreply.github.com> Date: Mon, 18 Dec 2023 14:38:42 -0500 Subject: [PATCH 6/7] Revert "Update _index.md" This reverts commit acc1bfa1cf7cb29f087c0b886bb5c49f1f812711. --- content/_index.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/content/_index.md b/content/_index.md index 4b27f60b4a..5aa74ea625 100644 --- a/content/_index.md +++ b/content/_index.md @@ -9,12 +9,6 @@ div.docs-read_mod {display: none;} h1 {display:none;} -For testing purposes: -{{< unstable-warning >}} -{{< up-to-date >}} - ---This is the nightly development (unstable) version of this documentation, which may include features not available in or compatible with released stable versions.
-To browse stable documentation, use the product and version selector above or see SCALE - {{- with $scaleReleases.properties }} - {{- $latest := where . "latest" true }} - {{- range $index, $release := $latest }} - {{- if .link }} - {{ .name }}{{ if ne $index (sub (len $latest) 1) }} or {{ end }} - {{- end }} - {{- end }} - {{- end }}, - CORE - {{- with $coreReleases.properties }} - {{- $latest := where . "latest" true }} - {{- range $index, $release := $latest }} - {{- if .link }} - {{ .name }}{{ if ne $index (sub (len $latest) 1) }} or {{ end }} - {{- end }} - {{- end }} - {{- end }}, - or TrueCommand - {{- with $tcReleases.properties }} - {{- $latest := where . "latest" true }} - {{- range $index, $release := $latest }} - {{- if .link }} - {{ .name }}{{ if ne $index (sub (len $latest) 1) }} or {{ end }} - {{- end }} - {{- end }} - {{- end }}. -
-