This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 4eff4738e2a Fix highlight Quickstart and Concepts menu items at the
same time (#587)
4eff4738e2a is described below
commit 4eff4738e2a59fcb4f179e3eb3aaa34db1d2b630
Author: Kiryl Valkovich <[email protected]>
AuthorDate: Fri May 26 11:43:33 2023 +0300
Fix highlight Quickstart and Concepts menu items at the same time (#587)
* Fix highlight Quickstart and Concepts menu items at the same time
* Minor rename
---
docusaurus.config.js | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 9eba10a8727..8c86c003cbe 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -4,6 +4,7 @@ const _ = require("lodash");
const linkifyRegex = require("./plugins/remark-linkify-regex");
const { renderAnnouncementBar } =
require("./src/components/ui/renderAnnouncementBar");
const versions = require("./versions.json");
+const latestVersion = versions[0];
const versionsMap = {
..._.keyBy(
versions.map((item) => {
@@ -172,14 +173,14 @@ module.exports = {
label: "Get Started",
position: "left",
items: [
- {
- type: 'doc',
- docId: 'concepts-overview',
+ {
+ to: `/docs/${latestVersion}/concepts-overview/`,
+ activeBaseRegex:
`docs/(${versions.join('|')})/concepts-overview/$`,
label: "Concepts",
},
{
- type: 'doc',
- docId: 'about',
+ to: `/docs/${latestVersion}/`,
+ activeBaseRegex: `docs/(${versions.join('|')})/$`,
label: "Quickstart",
},
{