Skip to content

Commit

Permalink
feat: rename quickstart to commands
Browse files Browse the repository at this point in the history
  • Loading branch information
wencaiwulue committed Sep 14, 2024
1 parent 1e08ab0 commit dd49e72
Show file tree
Hide file tree
Showing 38 changed files with 34 additions and 2 deletions.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions docs/commands/_category_.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Commands",
"position": 1,
"link": {
"type": "generated-index",
"description": "Please Read:"
}
}
2 changes: 1 addition & 1 deletion docs/quickstart/quickstart.md → docs/quickstart.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 1
sidebar_position: 0
---

# QuickStart
Expand Down
6 changes: 6 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ const config = {
position: 'left',
label: 'Docs',
},
{
type: 'docSidebar',
sidebarId: 'commands',
position: 'left',
label: 'Commands',
},
{
type: 'docSidebar',
sidebarId: 'functions',
Expand Down
4 changes: 4 additions & 0 deletions i18n/en/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"message": "Docs",
"description": "Navbar item with label Docs"
},
"item.label.Commands": {
"message": "Commands",
"description": "Navbar item with label Commands"
},
"item.label.Functions": {
"message": "Functions",
"description": "Navbar item with label Functions"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "Commands",
"position": 1,
"link": {
"type": "generated-index",
"description": "Please Read:"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 1
sidebar_position: 0
---

# 快速开始
Expand Down
4 changes: 4 additions & 0 deletions i18n/zh/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
"message": "文档",
"description": "Navbar item with label Docs"
},
"item.label.Commands": {
"message": "命令参数",
"description": "Navbar item with label Commands"
},
"item.label.Functions": {
"message": "主要功能",
"description": "Navbar item with label Functions"
Expand Down
2 changes: 2 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
docs: [{type: 'autogenerated', dirName: '.'}],

commands: [{type: 'autogenerated', dirName: 'commands'}],

functions: [{type: 'autogenerated', dirName: 'functions'}],

architecture: [{type: 'autogenerated', dirName: 'architecture'}],
Expand Down

0 comments on commit dd49e72

Please sign in to comment.