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/" }} + +
+
+

This page is up to date for {{ $Product }} {{ $Version }}. Use the product and version selector above to browse other documentation.

+
+
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 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 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 website is a repository of all documentation written about TrueNAS projects and TrueNAS-related products provided by iXsystems, Inc. iXsystems employees maintain this website and regularly provide documentation updates. All documentation is open-source and accepts community contributions. From 35b3c24ba25fefaf8dd32a2b37cfce508bc2efe1 Mon Sep 17 00:00:00 2001 From: DjP-iX <133042991+DjP-iX@users.noreply.github.com> Date: Mon, 18 Dec 2023 14:38:29 -0500 Subject: [PATCH 4/7] Revert "Create up-to-date.html" This reverts commit 8d5b87196a7dc7b02ab57c6d5905036d0da40ef3. --- layouts/shortcodes/up-to-date.html | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 layouts/shortcodes/up-to-date.html diff --git a/layouts/shortcodes/up-to-date.html b/layouts/shortcodes/up-to-date.html deleted file mode 100644 index 9f5ce0f8ce..0000000000 --- a/layouts/shortcodes/up-to-date.html +++ /dev/null @@ -1,9 +0,0 @@ -{{ $Product := "TrueNAS SCALE" }} -{{ $Version := "23.10" }} -{{ $VersionHome := "https://www.truenas.com/docs/scale/23.10/" }} - -
-
-

This page is up to date for {{ $Product }} {{ $Version }}. Use the product and version selector above to browse other documentation.

-
-
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 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 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 website is a repository of all documentation written about TrueNAS projects and TrueNAS-related products provided by iXsystems, Inc. iXsystems employees maintain this website and regularly provide documentation updates. All documentation is open-source and accepts community contributions. From 255751932181246a685877087eced5bf5bac9e45 Mon Sep 17 00:00:00 2001 From: DjP-iX <133042991+DjP-iX@users.noreply.github.com> Date: Mon, 18 Dec 2023 15:38:16 -0500 Subject: [PATCH 7/7] Update Release Schedules --- data/properties/scale-releases.yaml | 13 +++---------- data/properties/tc-releases.yaml | 28 +++++++--------------------- 2 files changed, 10 insertions(+), 31 deletions(-) diff --git a/data/properties/scale-releases.yaml b/data/properties/scale-releases.yaml index a4f12a6efc..713c2e7900 100644 --- a/data/properties/scale-releases.yaml +++ b/data/properties/scale-releases.yaml @@ -10,20 +10,13 @@ properties: en: - 3 October 2023 latest: true - - name: "23.10.0 Cobia" - type: "Stable" - link: "https://www.truenas.com/docs/scale/23.10/gettingstarted/scalereleasenotes/" - tags: - en: - - 24 October 2023 - latest: true - - name: "23.10.1" + - name: "23.10.1 Cobia" type: "Maintenance" - link: + link: "https://www.truenas.com/docs/scale/23.10/gettingstarted/scalereleasenotes/" tags: en: - 19 December 2023 - latest: false + latest: true - name: "23.10.2" type: "Maintenance" link: diff --git a/data/properties/tc-releases.yaml b/data/properties/tc-releases.yaml index ed214aadf1..ada7739169 100644 --- a/data/properties/tc-releases.yaml +++ b/data/properties/tc-releases.yaml @@ -3,31 +3,17 @@ id: "truecommand-schedule" img: "/images/truecommand-logo-full-color-rgb.png" title: "Container | Cloud" properties: - - name: "2.3.3" - type: "Maintenance" - link: "https://www.truenas.com/docs/truecommand/2.3/tcgettingstarted/tcreleasenotes/" - tags: - en: - - 20 June 2023 - latest: true - - name: "3.0.0-BETA.1" - type: "Early" - link: "https://www.truenas.com/docs/truecommand/tcgettingstarted/tcreleasenotes/" - tags: - en: - - 9 November 2023 - latest: true - - name: "3.0.0-RC.1" - type: "Early" - link: + - name: "3.0.0" + type: "Stable" + link: "https://www.truenas.com/docs/truecommand/3.0/tcgettingstarted/tcreleasenotes/" tags: en: - 19 December 2023 - latest: false - - name: "3.0.0" - type: "Stable" + latest: true + - name: "TBD" + type: "" link: tags: en: - - 30 January 2024 + latest: false