Skip to content

Commit

Permalink
Merge pull request #64 from mmdapl/feat/add-permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chufan443 committed Oct 30, 2023
2 parents b0ff32a + 04e6958 commit 56cb1de
Show file tree
Hide file tree
Showing 23 changed files with 129 additions and 297 deletions.
30 changes: 15 additions & 15 deletions docs/.vuepress/config/plugins.config.ts
Expand Up @@ -14,21 +14,21 @@ export default {
// HelloWorld: path.resolve(__dirname, '../components/HelloWorld.vue')
// }
}),
// searchProPlugin({
// // 索引全部内容
// indexContent: true,
// // 为分类和标签添加索引
// customFields: [
// {
// getter: (page: any) => page.frontmatter.category,
// formatter: "分类:$content",
// },
// {
// getter: (page) => page.frontmatter.tag,
// formatter: "标签:$content",
// },
// ],
// }),
searchProPlugin({
// 索引全部内容
indexContent: true,
// 为分类和标签添加索引
customFields: [
{
getter: (page: any) => page.frontmatter.category,
formatter: "分类:$content",
},
{
getter: (page) => page.frontmatter.tag,
formatter: "标签:$content",
},
],
}),
// // md文档增强
// mdEnhancePlugin({
// // 文件导入
Expand Down
27 changes: 0 additions & 27 deletions docs/.vuepress/styles/index.scss
Expand Up @@ -12,33 +12,6 @@
visibility: hidden; // 占位隐藏
}

.DocSearch-Button-Keys {
visibility: hidden
}

// 首页title描述
.home .hero .description {
max-width: fit-content;
}

// 搜索框
#docsearch-container > button {
border-radius: 5px;
}

.code-group__nav-tab-active {
color: var(--c-brand)
}

.open-info-div {
text-align: center;
align-content: center;

a {
margin: 5px;
}
}


// 全站主题色
:root {
Expand Down
18 changes: 9 additions & 9 deletions docs/manuscripts/ds/ds.sidebar.ts
@@ -1,39 +1,39 @@
export const dsSidebar = [
{
text: '基础入门',
prefix: 'basic-introduction',
prefix: '基础入门',
collapsible: false,
children: [
{
text: '基本概念',
link: '1.basic_concepts.md'
link: '1.基本概念.md'
},
{
text: '数据结构三要素',
link: '2.three_elements_of_data_structure.md'
text: '三要素',
link: '2.三要素.md'
},
{
text: '算法和算法评价',
link: '3.algorithm_and_algorithm_evaluation.md'
link: '3.算法和算法评价.md'
}
]
},
{
text: '线性表',
prefix: '线性表',
collapsible: false,
prefix: 'linear-table',
children: [
{
text: '基础概念和操作',
link: '1.basic_concept_and_operation.md'
link: '1.基础概念和操作.md'
},
{
text: '顺序表示',
link: '2.sequential_representation.md'
link: '2.顺序表示.md'
},
{
text: '链式表示',
link: '3.chained_representation.md'
link: '3.链式表示.md'
},
{
text: '一些总结',
Expand Down
237 changes: 0 additions & 237 deletions docs/manuscripts/ds/linear-table/2.sequential_representation.md

This file was deleted.

@@ -1,3 +1,11 @@
---
title: 基础概念
#description:
permalink: /manuscripts/ds/introduction-basic-concepts.html
head:
- [meta, { name: 数据结构 , content: 基础概念 }]
---

# 基础概念

```mindmap
Expand Down
@@ -1,3 +1,10 @@
---
title: 数据结构三要素
#description:
permalink: /manuscripts/ds/introduction-three-elements.html
head:
- [meta, { name: 数据结构 , content: 数据结构三要素 }]
---

# 数据结构三要素

Expand Down
@@ -1,3 +1,11 @@
---
title: 算法和算法评价
#description:
permalink: /manuscripts/ds/introduction-algorithm-evaluation.html
head:
- [meta, { name: 数据结构 , content: 算法和算法评价 }]
---

# 算法和算法评价

```mindmap
Expand Down
File renamed without changes.

0 comments on commit 56cb1de

Please sign in to comment.