Skip to content

Commit

Permalink
auto generated sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Windfarer committed Nov 4, 2021
1 parent abbd949 commit 5c41080
Show file tree
Hide file tree
Showing 82 changed files with 76 additions and 90 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions docs/community/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: '开源社区'
position: 5
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions docs/component/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: '框架组件'
position: 2
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions docs/component/middleware/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: '中间件'
position: 100
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions docs/component/transport/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: '传输协议'
position: 101
File renamed without changes.
2 changes: 2 additions & 0 deletions docs/devops/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: '运维指南'
position: 4
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions docs/getting-started/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: '快速开始'
position: 1
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions docs/guide/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: '用户指南'
position: 3
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions docs/intro/_category_.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
label: '简介'
position: 0
32 changes: 32 additions & 0 deletions i18n/zh/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,37 @@
"theme.docs.sidebar.navAriaLabel": {
"message": "Sidebar navigation",
"description": "The ARIA label for documentation menu"
},
"theme.BackToTopButton.buttonAriaLabel": {
"message": "Scroll back to top",
"description": "The ARIA label for the back to top button"
},
"theme.blog.archive.title": {
"message": "Archive",
"description": "The page & hero title of the blog archive page"
},
"theme.blog.archive.description": {
"message": "Archive",
"description": "The page & hero description of the blog archive page"
},
"theme.docs.tagDocListPageTitle.nDocsTagged": {
"message": "One doc tagged|{count} docs tagged",
"description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
},
"theme.docs.tagDocListPageTitle": {
"message": "{nDocsTagged} with \"{tagName}\"",
"description": "The title of the page for a docs tag"
},
"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
"message": "← Back to main menu",
"description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
},
"theme.navbar.mobileVersionsDropdown.label": {
"message": "Versions",
"description": "The label for the navbar versions dropdown on mobile view"
},
"theme.TOCCollapsible.toggleButtonLabel": {
"message": "On this page",
"description": "The label used by the button on the collapsible TOC component"
}
}
14 changes: 14 additions & 0 deletions i18n/zh/docusaurus-plugin-content-blog/options.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"title": {
"message": "Blog",
"description": "The title for the blog used in SEO"
},
"description": {
"message": "Blog",
"description": "The description for the blog used in SEO"
},
"sidebar.title": {
"message": "Recent posts",
"description": "The label for the left sidebar"
}
}
20 changes: 12 additions & 8 deletions i18n/zh/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,24 @@
"message": "快速开始",
"description": "The label for category 快速开始 in sidebar docs"
},
"sidebar.docs.category.Middleware": {
"message": "Middleware",
"description": "The label for category Middleware in sidebar docs"
},
"sidebar.docs.category.Transport": {
"message": "Transport",
"description": "The label for category Transport in sidebar docs"
},
"sidebar.docs.category.运维指南": {
"message": "运维指南",
"description": "The label for category 运维指南 in sidebar docs"
},
"sidebar.docs.category.开源社区": {
"message": "开源社区",
"description": "The label for category 开源社区 in sidebar docs"
},
"sidebar.docs.category.介绍": {
"message": "介绍",
"description": "The label for category 介绍 in sidebar docs"
},
"sidebar.docs.category.中间件": {
"message": "中间件",
"description": "The label for category 中间件 in sidebar docs"
},
"sidebar.docs.category.传输协议": {
"message": "传输协议",
"description": "The label for category 传输协议 in sidebar docs"
}
}
84 changes: 2 additions & 82 deletions sidebars.js
Original file line number Diff line number Diff line change
@@ -1,88 +1,8 @@
module.exports = {
docs: [
{
type: 'category',
label: '快速开始',
collapsed: false,
items: [
'intro/overview',
'getting-started/start',
'intro/layout',
'getting-started/usage',
'getting-started/examples',
'getting-started/plugin',
'intro/faq'
],
},
{
type: 'category',
label: '框架组件',
collapsed: false,
items: [
'component/api',
'component/errors',
'component/config',
'component/log',
'component/metrics',
'component/registry',
'component/encoding',
'component/metadata',
'component/selector',
{
type: 'category',
label: '中间件',
collapsed: false,
items: [
'component/middleware/overview',
'component/middleware/logging',
'component/middleware/metrics',
'component/middleware/recovery',
'component/middleware/tracing',
'component/middleware/validate',
'component/middleware/auth',
'component/middleware/ratelimit',
'component/middleware/circuitbreaker',
],
},
{
type: 'category',
label: '传输协议',
collapsed: false,
items: [
'component/transport/overview',
'component/transport/http',
'component/transport/grpc',
],
},
],
},
{
type: 'category',
label: '用户指南',
collapsed: false,
items: [
'guide/api-protobuf',
'guide/openapi',
'guide/wire',
'guide/ent',
],
},
{
type: 'category',
label: '运维指南',
collapsed: false,
items: [
'devops/docker',
],
},
{
type: 'category',
label: '开源社区',
collapsed: false,
items: [
'community/contribution',
'community/documentation',
],
type: 'autogenerated',
dirName: '.', // '.' means the current docs folder
},
],
};

0 comments on commit 5c41080

Please sign in to comment.