Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External Version URL #1693

Merged
merged 3 commits into from
Oct 22, 2023
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 archiveVersions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"3.4.x and prior": "https://version-3-4.legacy.docs.spectrocloud.com"
}
81,312 changes: 81,311 additions & 1 deletion docs/api-content/api-docs/v1/api.json

Large diffs are not rendered by default.

19 changes: 18 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ require("dotenv").config();
const lightCodeTheme = require("prism-react-renderer/themes/oceanicNext");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
const redirects = require("./redirects");
const ArchivedVersions = require('./archiveVersions.json');
const {
pluginPacksAndIntegrationsData
} = require("./plugins/packs-integrations");
Expand Down Expand Up @@ -284,12 +285,28 @@ const config = {
{
type: "docsVersionDropdown",
position: "left",
docsPluginId: "default"
docsPluginId: "default",
dropdownItemsAfter: [
...Object.entries(ArchivedVersions).map(
([versionName, versionUrl]) => ({
href: versionUrl,
label: versionName,
})
),
],
},
{
type: "docsVersionDropdown",
position: "left",
docsPluginId: "api",
dropdownItemsAfter: [
...Object.entries(ArchivedVersions).map(
([versionName, versionUrl]) => ({
href: versionUrl,
label: versionName,
})
),
],
},
],
hideOnScroll: true,
Expand Down
2 changes: 1 addition & 1 deletion scripts/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fi
echo "Temp directory: $tempdir"
echo "Base directory: $baseDir"
# List of version branches to exclude
exclude_branches=() # DO NOT ADD A COMMA BETWEEN THE BRANCHES. ADD A SPACE INSTEAD AND THE NEW VERSION STRING.
exclude_branches=(version-3-4) # DO NOT ADD A COMMA BETWEEN THE BRANCHES. ADD A SPACE INSTEAD AND THE NEW VERSION STRING.
# exclude_branches=("version-3-4")

# Save the current branch name
Expand Down
Loading