feat: 新增“实践经历”栏目,收录 alin.hu 的全栈入门指南
- 新增 practice docs 实例(路由 /practice)与 sidebarsPractice.ts - docs/full_guide 迁移至 practice/alin.hu - 导航栏新增“实践经历”入口 - 修复文档内指向旧 /docs/full_guide 路径的链接 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
80268937ee
commit
b487f44cd7
20 files changed
+44
-10
No files matched your search
@@ -1,8 +0,0 @@
|
||||
{
|
||||
"label": "完整指南",
|
||||
"position": 3,
|
||||
"link": {
|
||||
"type": "generated-index"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,6 +81,17 @@ const config: Config = {
|
||||
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
|
||||
},
|
||||
],
|
||||
[
|
||||
"@docusaurus/plugin-content-docs",
|
||||
{
|
||||
id: "practice",
|
||||
path: "practice",
|
||||
routeBasePath: "practice",
|
||||
sidebarPath: "./sidebarsPractice.ts",
|
||||
editUrl:
|
||||
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
|
||||
},
|
||||
],
|
||||
],
|
||||
|
||||
themeConfig: {
|
||||
@@ -106,6 +117,13 @@ const config: Config = {
|
||||
position: "left",
|
||||
label: "工具使用",
|
||||
},
|
||||
{
|
||||
type: "docSidebar",
|
||||
sidebarId: "practiceSidebar",
|
||||
docsPluginId: "practice",
|
||||
position: "left",
|
||||
label: "实践经历",
|
||||
},
|
||||
{ to: "/blog", label: "博客", position: "left" },
|
||||
{
|
||||
href: "https://github.com/idealjs/stack",
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"label": "alin.hu",
|
||||
"position": 2,
|
||||
"link": {
|
||||
"type": "generated-index"
|
||||
}
|
||||
}
|
||||
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.
+1
-1
@@ -9,7 +9,7 @@ sidebar_position: 2
|
||||
1. 已创建react ts工程
|
||||
|
||||
>**提示**
|
||||
若未创建react ts工程,可以参考[使用vite创建react ts工程](/docs/full_guide/react/react_ts)文档
|
||||
若未创建react ts工程,可以参考[使用vite创建react ts工程](/practice/alin.hu/react/react_ts)文档
|
||||
|
||||
## 项目初始化
|
||||
打开react ts工程
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1
-1
@@ -7,7 +7,7 @@ sidebar_position: 1
|
||||
1. 已创建vanilla ts工程
|
||||
|
||||
>**提示**
|
||||
若未安装vanilla ts工程,可以参考[vite的入门](/docs/full_guide/vite/)文档
|
||||
若未安装vanilla ts工程,可以参考[vite的入门](/practice/alin.hu/vite/)文档
|
||||
|
||||
## 项目初始化
|
||||
打开vanilla ts工程
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# 实践经历
|
||||
|
||||
本栏目收录实习生们的实践经历与学习笔记。
|
||||
|
||||
- [alin.hu —— 全栈入门指南](./alin.hu/html/visit.md)
|
||||
@@ -0,0 +1,8 @@
|
||||
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
|
||||
|
||||
// 实践经历侧边栏,独立于全栈教程
|
||||
const sidebars: SidebarsConfig = {
|
||||
practiceSidebar: [{type: 'autogenerated', dirName: '.'}],
|
||||
};
|
||||
|
||||
export default sidebars;
|
||||
Reference in new issue
Block a user