feat(docs): 添加密码学基础文档和mermaid支持

新增密码学基础文档,包含古典加密算法和现代密码学介绍
添加mermaid图表支持以展示密码学概念
在导航栏新增技术理论分类
更新package.json添加mermaid依赖
This commit is contained in:
祀梦
2025-10-27 19:29:40 +08:00
parent b734f403b3
commit 566b6cd385
7 changed files with 1599 additions and 31 deletions

View File

@@ -22,6 +22,13 @@ export default defineUserConfig({
/* 博客文章页面链接前缀 */
article: '/article/',
/* 启用数学公式支持和Mermaid图表 */
markdown: {
math: {
type: 'katex',
},
mermaid: true
},
/**
* 编译缓存,加快编译速度
*/

View File

@@ -35,6 +35,15 @@ export default defineNavbarConfig([
},
],
},
{
text:"技术理论",
items:[
{
text: '密码学基础',
link: '/theory/cryptography/',
},
]
},
{
text: '运维',
items: [

View File

@@ -57,7 +57,7 @@ const english = defineNoteConfig({
{ text: "阅读提升", link: "/subject/english/reading-writing/" }
]
},
{
{
text: "写译", prefix: "/writing-translation", items: [
{ text: "写作与翻译指南", link: "/subject/english/writing-translation/" }
]
@@ -97,6 +97,18 @@ const solidity = defineNoteConfig({
}
]
})
const cryptography = defineNoteConfig({
dir: 'theory',
link: '/theory/cryptography/',
sidebar: [
{ text: "密码学基础", link: "/theory/cryptography/" },
{
text: "古典加密算法", prefix: "/theory", items: [
{ text: "替换密码", link: "/theory/cryptography/substitution-ciphers/" }
]
},
]
})
const blockchain = defineNoteConfig({
dir: 'ops',
link: '/ops/blockchain',
@@ -135,5 +147,5 @@ const linux = defineNoteConfig({
export default defineNotesConfig({
dir: 'notes',
link: '/',
notes: [LeetCode, english, cPlusPlus, solidity, blockchain, linux],
notes: [LeetCode, english, cPlusPlus, solidity, blockchain, linux, cryptography],
})