chore: 分离目录结构
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// import { defineConfig } from 'vitepress'
|
||||
import { withMermaid } from "vitepress-plugin-mermaid";
|
||||
import mathjax3 from 'markdown-it-mathjax3';
|
||||
import { main_sidebar } from './main_sidebar.js';
|
||||
import { main_sidebar , chapter2, chapter3, chapter4, chapter5, chapter6, chapter7, chapter8 } from './sidebar.js';
|
||||
const customElements = [
|
||||
'mjx-container',
|
||||
'mjx-assistive-mml',
|
||||
@@ -107,12 +107,13 @@ export default withMermaid({
|
||||
|
||||
sidebar: {
|
||||
'/': main_sidebar(),
|
||||
'/hduhelp/': [
|
||||
{
|
||||
text: 'HDU帮助',
|
||||
link: '/hduhelp/notebook',
|
||||
}
|
||||
]
|
||||
'/2.高效学习/': chapter2(),
|
||||
'/3.编程思维体系构建/': chapter3(),
|
||||
'/4.人工智能/': chapter4(),
|
||||
'/5.富有生命的嵌入式/': chapter5(),
|
||||
'/6.计算机安全/': chapter6(),
|
||||
'/7.网络应用开发/': chapter7(),
|
||||
'/8.基础学科/': chapter8(),
|
||||
},
|
||||
socialLinks: [
|
||||
{ icon: 'github', link: 'https://github.com/camera-2018/hdu-cs-wiki' }
|
||||
|
||||
@@ -28,8 +28,67 @@ export function main_sidebar() {
|
||||
]
|
||||
},
|
||||
{
|
||||
text: '2.高效学习',
|
||||
text: "2.高效学习",
|
||||
collapsed: true,
|
||||
items: [{ text: "2.高效学习", link: "/2.高效学习/2.高效学习" }]
|
||||
},
|
||||
{
|
||||
text: "3.编程思维体系构建",
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: "3.编程思维体系构建", link: "/3.编程思维体系构建/3.编程思维体系构建" }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: "4.人工智能",
|
||||
collapsed: true,
|
||||
items: [{ text: "4.人工智能", link: "/4.人工智能/4.人工智能" }]
|
||||
},
|
||||
{
|
||||
text: "5.富有生命的嵌入式",
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: "5.富有生命的嵌入式", link: "/5.富有生命的嵌入式/5.富有生命的嵌入式" }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: "6.计算机安全",
|
||||
collapsed: true,
|
||||
items: [{ text: "6.计算机安全", link: "/6.计算机安全/6.计算机安全" }]
|
||||
},
|
||||
{
|
||||
text: "7.网络应用开发入门",
|
||||
collapsed: true,
|
||||
items: [
|
||||
{ text: "7.网络应用开发入门", link: "/7.网络应用开发/7.网络应用开发入门" }
|
||||
]
|
||||
},
|
||||
{
|
||||
text: "8.基础学科",
|
||||
collapsed: true,
|
||||
items: [{ text: "8.基础学科", link: "/8.基础学科/8.基础学科" }]
|
||||
},
|
||||
{
|
||||
text: 'Contributors',
|
||||
link: '/contributors'
|
||||
},
|
||||
{
|
||||
text: '贡献指南',
|
||||
link: '/CONTRIBUTING'
|
||||
},
|
||||
{
|
||||
text: 'notebook测试',
|
||||
link: '/notebook'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export function chapter2() {
|
||||
return [
|
||||
{ text: '返回上一层', link: '/简介' },
|
||||
{
|
||||
text: '2.高效学习',
|
||||
collapsed: false,
|
||||
items: [
|
||||
{ text: '2.高效学习', link: '/2.高效学习/2.高效学习' },
|
||||
{
|
||||
@@ -60,9 +119,15 @@ export function main_sidebar() {
|
||||
{ text: '2.5以理工科的方式阅读英语', link: '/2.高效学习/2.5以理工科的方式阅读英语' },
|
||||
]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
export function chapter3() {
|
||||
return [
|
||||
{ text: '返回上一层', link: '/简介' },
|
||||
{
|
||||
text: '3.编程思维体系构建',
|
||||
collapsed: true,
|
||||
collapsed: false,
|
||||
items: [
|
||||
{ text: '3.编程思维体系构建', link: '/3.编程思维体系构建/3.编程思维体系构建' },
|
||||
{ text: '3.0 编程入门之道', link: '/3.编程思维体系构建/3.0 编程入门之道' },
|
||||
@@ -172,9 +237,16 @@ export function main_sidebar() {
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
]
|
||||
}
|
||||
|
||||
export function chapter4() {
|
||||
return [
|
||||
{ text: '返回上一层', link: '/简介' },
|
||||
{
|
||||
text: '4.人工智能',
|
||||
collapsed: true,
|
||||
collapsed: false,
|
||||
items: [
|
||||
{ text: '4.人工智能', link: '/4.人工智能/4.人工智能' },
|
||||
{ text: '4.1前言', link: '/4.人工智能/4.1前言' },
|
||||
@@ -459,9 +531,15 @@ export function main_sidebar() {
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
export function chapter5() {
|
||||
return [
|
||||
{ text: '返回上一层', link: '/简介' },
|
||||
{
|
||||
text: '5.富有生命的嵌入式',
|
||||
collapsed: true,
|
||||
collapsed: false,
|
||||
items: [
|
||||
{ text: '5.富有生命的嵌入式', link: '/5.富有生命的嵌入式/5.富有生命的嵌入式' },
|
||||
{ text: '5.1嵌入式是什么?可以吃吗?', link: '/5.富有生命的嵌入式/5.1嵌入式是什么?可以吃吗?' },
|
||||
@@ -469,9 +547,15 @@ export function main_sidebar() {
|
||||
{ text: '5.3还玩裸机?上操作系统!', link: '/5.富有生命的嵌入式/5.3还玩裸机?上操作系统!' },
|
||||
]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
export function chapter6() {
|
||||
return [
|
||||
{ text: '返回上一层', link: '/简介' },
|
||||
{
|
||||
text: '6.计算机安全',
|
||||
collapsed: true,
|
||||
collapsed: false,
|
||||
items: [
|
||||
{ text: '6.计算机安全', link: '/6.计算机安全/6.计算机安全' },
|
||||
{
|
||||
@@ -495,9 +579,15 @@ export function main_sidebar() {
|
||||
{ text: '6.4安全杂项', link: '/6.计算机安全/6.4安全杂项' },
|
||||
]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
export function chapter7() {
|
||||
return [
|
||||
{ text: '返回上一层', link: '/简介' },
|
||||
{
|
||||
text: '7.网络应用开发',
|
||||
collapsed: true,
|
||||
collapsed: false,
|
||||
items: [
|
||||
{ text: '7.网络应用开发入门', link: '/7.网络应用开发/7.网络应用开发入门' },
|
||||
{
|
||||
@@ -530,25 +620,19 @@ export function main_sidebar() {
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
}
|
||||
|
||||
export function chapter8() {
|
||||
return [
|
||||
{ text: '返回上一层', link: '/简介' },
|
||||
{
|
||||
text: '8.基础学科',
|
||||
collapsed: true,
|
||||
collapsed: false,
|
||||
items: [
|
||||
{ text: '8.基础学科', link: '/8.基础学科/8.基础学科' },
|
||||
{ text: '8.1经济学科普Part1', link: '/8.基础学科/8.1经济学科普Part1' },
|
||||
]
|
||||
},
|
||||
{
|
||||
text: 'Contributors',
|
||||
link: '/contributors'
|
||||
},
|
||||
{
|
||||
text: '贡献指南',
|
||||
link: '/CONTRIBUTING'
|
||||
},
|
||||
{
|
||||
text: 'notebook测试',
|
||||
link: '/notebook'
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user