You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by zk...@apache.org on 2022/10/26 09:03:55 UTC
[incubator-devlake-website] 01/02: docs: changed doc versioning behavior
This is an automated email from the ASF dual-hosted git repository.
zky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake-website.git
commit 7954e0bfdd9817042d73113cf53905dff95d5eb7
Author: yumengwang03 <yu...@merico.dev>
AuthorDate: Wed Oct 26 16:49:16 2022 +0800
docs: changed doc versioning behavior
---
docusaurus.config.js | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index fe2f33762..819363b31 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -36,12 +36,9 @@ const versions = require('./versions.json');
rehypePlugins: [katex],
versions: {
current: {
- label: 'Latest',
- path: '',
- banner: 'none',
- },
- [versions[0]]: {
- path: versions[0],
+ label: 'Next',
+ path: 'next',
+ banner: 'unreleased',
}
}
},
@@ -131,19 +128,16 @@ const versions = require('./versions.json');
label: 'Docs',
items: [
{
- label: "Latest",
- to: "/docs/Overview/Introduction",
- activeBaseRegex: `docs(?!(\/${versions.join('|\\/')}))`,
+ label: "Next",
+ to: "/docs/next/Overview/Introduction"
},
- ...versions.slice(0, versions.length - 2).map((version) => ({
+ {
+ label: versions[0] + ' (Stable)',
+ to: "/docs/Overview/Introduction"
+ },
+ ...versions.slice(1, versions.length).map((version) => ({
label: version,
to: `docs/${version}/Overview/Introduction`,
- activeBaseRegex: `docs/${version}/`,
- })),
- ...versions.slice(versions.length - 2, versions.length).map((version) => ({
- label: (version === "1.x") ? "1.x(Not Apache Release)" : version,
- to: `docs/${version}/Overview/Introduction`,
- activeBaseRegex: `docs/${version}/`,
}))
]
},
@@ -153,7 +147,7 @@ const versions = require('./versions.json');
label: 'Live Demo',
to: 'livedemo',
docsPluginId: 'livedemo',
- docId: 'EngineeringLeads/DORA',
+ docId: 'AverageRequirementLeadTime',
},
{
type: 'doc',