Skip to content

Commit

Permalink
Updated docs. [skip CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
pigpigyyy committed Nov 11, 2024
1 parent 441bd3e commit 5a02606
Show file tree
Hide file tree
Showing 27 changed files with 244 additions and 228 deletions.
9 changes: 7 additions & 2 deletions Docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const config = {
lastVersion: 'current',
versions: {
current: {
label: 'v1.5.19',
label: 'v1.5.20',
},
},
},
Expand Down Expand Up @@ -258,6 +258,12 @@ const config = {
label: 'Reference',
position: 'left',
},
{
type: 'docSidebar',
sidebarId: 'exampleSidebar',
label: 'Example',
position: 'left',
},
{
to: '/blog',
label: 'Blog',
Expand Down Expand Up @@ -338,7 +344,6 @@ const config = {
},
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: true,
},
},
Expand Down
4 changes: 4 additions & 0 deletions Docs/i18n/zh-Hans/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -496,5 +496,9 @@
"theme.contentVisibility.draftBanner.message": {
"message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
"description": "The draft content banner message"
},
"theme.blog.author.noPosts": {
"message": "This author has not written any posts yet.",
"description": "The text for authors with 0 blog post"
}
}
10 changes: 5 additions & 5 deletions Docs/i18n/zh-Hans/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version.label": {
"message": "版本 1.5.19",
"message": "版本 1.5.20",
"description": "The label for version current"
},
"sidebar.apiSidebar.category.Class": {
Expand All @@ -19,10 +19,6 @@
"message": "使用 Dora Xml",
"description": "The label for category Using Dora Xml in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Platformer Tutorial": {
"message": "2D 横版游戏开发教程",
"description": "The label for category Platformer Tutorial in sidebar tutorialSidebar"
},
"sidebar.tutorialSidebar.category.Writing Game Dialogue": {
"message": "编写游戏对话系统",
"description": "The label for category Writing Game Dialogue in sidebar tutorialSidebar"
Expand Down Expand Up @@ -714,5 +710,9 @@
"sidebar.apiSidebar.doc.Grid": {
"message": "Grid",
"description": "The label for the doc item Grid in sidebar apiSidebar, linking to the doc api/Class/Grid"
},
"sidebar.exampleSidebar.category.Platformer Tutorial": {
"message": "2D 横版游戏开发教程",
"description": "The label for category Platformer Tutorial in sidebar exampleSidebar"
}
}
4 changes: 4 additions & 0 deletions Docs/i18n/zh-Hans/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@
"item.label.Reference": {
"message": "参考手册",
"description": "Navbar item with label Reference"
},
"item.label.Example": {
"message": "示例",
"description": "Navbar item with label Example"
}
}
6 changes: 3 additions & 3 deletions Docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "^3.6.0",
"@docusaurus/preset-classic": "^3.6.0",
"@docusaurus/theme-mermaid": "^3.6.0",
"@docusaurus/core": "^3.6.1",
"@docusaurus/preset-classic": "^3.6.1",
"@docusaurus/theme-mermaid": "^3.6.1",
"@easyops-cn/docusaurus-search-local": "^0.45.0",
"@mdx-js/react": "^3.1.0",
"clsx": "^2.1.1",
Expand Down
9 changes: 5 additions & 4 deletions Docs/sidebars.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
Create as many sidebars as you want.
*/

// @ts-check
Expand Down Expand Up @@ -984,6 +984,7 @@ const sidebars = {
]
},
],
exampleSidebar: [{type: 'autogenerated', dirName: 'example'}],
// But you can create a sidebar manually
/*
tutorialSidebar: [
Expand Down
Loading

0 comments on commit 5a02606

Please sign in to comment.