You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ti...@apache.org on 2022/12/30 12:14:58 UTC

[pulsar-site] branch main updated: cleanup sidebars

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 5bf47055c40 cleanup sidebars
5bf47055c40 is described below

commit 5bf47055c40e5acd0a29e2ac9b428a36b0862907
Author: tison <wa...@gmail.com>
AuthorDate: Fri Dec 30 20:14:49 2022 +0800

    cleanup sidebars
    
    Signed-off-by: tison <wa...@gmail.com>
---
 sidebars.js             |  4 +---
 sidebarsDevelopment.js  | 42 ++++++++++++------------------------------
 sidebarsReleaseNotes.js |  5 +----
 3 files changed, 14 insertions(+), 37 deletions(-)

diff --git a/sidebars.js b/sidebars.js
index c00ea663623..339dbd1bb62 100644
--- a/sidebars.js
+++ b/sidebars.js
@@ -1,3 +1 @@
-const sidebarJson = require("./sidebars.json");
-
-module.exports = sidebarJson;
+module.exports = require("./sidebars.json");
diff --git a/sidebarsDevelopment.js b/sidebarsDevelopment.js
index d71f51de52a..14c1720318f 100644
--- a/sidebarsDevelopment.js
+++ b/sidebarsDevelopment.js
@@ -3,44 +3,32 @@ const sidebars = {
     sidebarDevelopment: [
         'about',
         {
-            "type": "category",
-            "label": "Getting Started",
-            link: {
-                type: 'generated-index',
-            },
+            type: "category",
+            label: "Getting Started",
             items: [
                 'setup-building',
                 'setup-ide',
             ]
         },
         {
-            "type": "category",
-            "label": "Development",
-            link: {
-                type: 'generated-index',
-            },
+            type: "category",
+            label: "Development",
             items: [
                 'develop-labels',
                 'develop-semantic-title'
             ]
         },
         {
-            "type": "category",
-            "label": "Testing and CI",
-            link: {
-                type: 'generated-index',
-            },
+            type: "category",
+            label: "Testing and CI",
             items: [
                 'testing-licenses',
                 'personal-ci',
             ]
         },
         {
-            "type": "category",
-            "label": "Documentation",
-            link: {
-                type: 'generated-index',
-            },
+            type: "category",
+            label: "Documentation",
             items: [
                 'document-intro',
                 'document-contribution',
@@ -49,11 +37,8 @@ const sidebars = {
             ]
         },
         {
-            "type": "category",
-            "label": "Releases",
-            link: {
-                type: 'generated-index',
-            },
+            type: "category",
+            label: "Releases",
             items: [
                 'create-gpg-keys',
                 'validate-release-candidate',
@@ -63,11 +48,8 @@ const sidebars = {
             ]
         },
         {
-            "type": "category",
-            "label": "Committers",
-            link: {
-                type: 'generated-index',
-            },
+            type: "category",
+            label: "Committers",
             items: [
                 'become-core-developer',
             ]
diff --git a/sidebarsReleaseNotes.js b/sidebarsReleaseNotes.js
index 8c455fbbab9..e6ebfbcf4c3 100644
--- a/sidebarsReleaseNotes.js
+++ b/sidebarsReleaseNotes.js
@@ -5,10 +5,7 @@ module.exports = {
         {
             "type": "category",
             "label": "Clients Release Notes",
-            link: {
-                type: 'doc',
-                id: 'clients',
-            },
+            link: {type: 'doc', id: 'clients'},
             items: [
                 'client-java',
                 'client-ws',