Skip to content

Commit

Permalink
Merge pull request #117 from scalar-labs/add-unsupported-versions-page
Browse files Browse the repository at this point in the history
Add unsupported versions page; update version dropdown menu
  • Loading branch information
josh-wong authored Jan 4, 2024
2 parents 56247cf + a7f0138 commit f607080
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
15 changes: 14 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
7 changes: 3 additions & 4 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: "<hr>Unsupported Versions"
version-url: /docs/unsupported-versions/

# ----- Adding navigation for versions ----- #

Expand Down
10 changes: 10 additions & 0 deletions docs/unsupported-versions.md
Original file line number Diff line number Diff line change
@@ -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/)

0 comments on commit f607080

Please sign in to comment.