From c9abf6893942256a77ee2f1cd19a6db3fe18297c Mon Sep 17 00:00:00 2001 From: josh-wong Date: Thu, 4 Jan 2024 16:34:43 +0900 Subject: [PATCH 1/3] Create unsupported-versions.md Add unsupported versions --- docs/unsupported-versions.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/unsupported-versions.md diff --git a/docs/unsupported-versions.md b/docs/unsupported-versions.md new file mode 100644 index 00000000..7601bb6f --- /dev/null +++ b/docs/unsupported-versions.md @@ -0,0 +1,10 @@ +--- +toc: false +--- + +# Unsupported Versions + +The following versions of ScalarDB are no longer supported: + +- [ScalarDB 3.5](/docs/3.5/getting-started-with-scalardb/) +- [ScalarDB 3.4](/docs/3.4/getting-started-with-scalardb/) From 521aa3c1bed58f569f63867f88340eaa372965b7 Mon Sep 17 00:00:00 2001 From: josh-wong Date: Thu, 4 Jan 2024 16:36:47 +0900 Subject: [PATCH 2/3] Replace unsupported version links with link to page Replace links to unsupported versions with a link to the unsupported versions page. --- _data/navigation.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/_data/navigation.yml b/_data/navigation.yml index 4516c3e9..ff7b03bf 100644 --- a/_data/navigation.yml +++ b/_data/navigation.yml @@ -49,10 +49,9 @@ versions: version-url: /docs/3.7/getting-started-with-scalardb/ - version-title: "3.6" version-url: /docs/3.6/getting-started-with-scalardb/ - - version-title: "3.5" - version-url: /docs/3.5/getting-started-with-scalardb/ - - version-title: "3.4" - version-url: /docs/3.4/getting-started-with-scalardb/ + # The following link contains a list of versions of ScalarDB that are no longer supported. + - version-title: "
Unsupported Versions" + version-url: /docs/unsupported-versions/ # ----- Adding navigation for versions ----- # From a7f0138bd6ec7816ee49f39c24c69bc8f4b0d5bc Mon Sep 17 00:00:00 2001 From: josh-wong Date: Thu, 4 Jan 2024 16:37:25 +0900 Subject: [PATCH 3/3] Add scope for `docs` root folder --- _config.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index b3a23b09..1bbe1027 100644 --- a/_config.yml +++ b/_config.yml @@ -301,7 +301,7 @@ defaults: # Release notes - scope: - path: "docs/releases" # Specifies the name of the folder where this version of docs are located. + path: "docs/releases" # Specifies the name of the folder where the release notes are located. # type: "" # Since this scope uses `collection_dir`, we do not need to specify the type here. values: layout: page # Specifies the type of template used from the "_layouts" folder. @@ -313,6 +313,19 @@ defaults: toc_sticky: true search: true + # Common docs in the `docs` root folder + - scope: + path: "docs" # Specifies the name of the folder where the common docs are located. + # type: "" # Since this scope uses `collection_dir`, we do not need to specify the type here. + values: + layout: page # Specifies the type of template used from the "_layouts" folder. + read_time: false # Shows the average reading time for pages. + share: false # Shows social media buttons to share pages. + sidebar: # Shows side navigation content from `_data/navigation.yml`. + nav: "latest" # Add the version enclosed within quotation marks. If the docs in the navigation is for the latest version of the product, be sure to set `nav:` to `"latest"`. If the docs in the navigation is for a previous version of the product, be sure to set `nav:` to the product version number (e.g., `"3.8"`). That version number must match the set of docs for that product version in `_data/navigation.yml`. + toc: true + toc_sticky: true + search: false # Hides ScalarDL-related pages (e.g., Helm Charts docs) from search results. # NOTE: The following method causes a lengthy build time, which occasionally causes the build to remain "In progress" indefinitely. Because of that, it is currently commented out until we find an alternative way to hide specific pages from search results.