1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-11-28 23:16:21 +08:00

feat: 升级vuepress到最新版本,改造整个项目结构、配置 (#108)

* feat: 升级`vuepress`到最新版本,改造整个项目结构、配置

* chore: update

* chore: update

* fix: update
This commit is contained in:
公众号:Rong姐姐好可爱
2024-09-26 12:05:53 +08:00
committed by GitHub
parent 72cad09072
commit 779994121d
243 changed files with 3044 additions and 12730 deletions

View File

@@ -51,7 +51,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.18.0
node-version: 20.16.0
# # 缓存
cache: pnpm

View File

@@ -7,7 +7,7 @@
#
# 注意:vite构建需要支持node14以上,安装node16较为稳妥
FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:18.18.0-alpine AS build_base
FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:20.17.0-alpine AS build_base
ARG CONTAINER_BUILD
## 设置环境变量,支持容器构建时使用layer缓存,参考:https://pnpm.io/zh/docker

View File

@@ -7,7 +7,7 @@
-->
<script>
import { XMindEmbedViewer } from 'xmind-embed-viewer'
import mapData from '../public/mark-map/index.json'
import mapData from '../public/mind-map/index.json'
console.log(111, XMindEmbedViewer)

View File

@@ -1,65 +0,0 @@
/**
* 导航栏配置
*/
export const navbar = [
{
text: '首页',
link: '/',
},
{
text: '数据结构',
link: '/manuscripts/ds',
},
{
text: '操作系统',
link: '/manuscripts/os',
},
{
text: '计算机组成原理',
link: '/manuscripts/ccp',
},
{
text: '计算机网络',
link: '/manuscripts/cn',
},
{
text: '思维导图',
link: '/manuscripts/mark-map/ds-map.html',
},
{
text: '了解更多',
children: [
{
text: '变更记录',
link: '/manuscripts/changelog.md',
},
{
text: '网站动态',
link: '/manuscripts/big-event-history.md',
},
{
text: '自媒体',
children: [
{
text: '公众号文章',
link: '/manuscripts/wechat-list.md',
},
],
},
{
text: '外链',
children: [
// {
// text: '常用网站',
// link: '/manuscripts/frequent-site-link.md'
// },
{
text: 'RoadMap计划',
link: 'https://142vip-cn.feishu.cn/share/base/view/shrcnpso8R4vCid01wmg66hFjae',
},
],
},
],
},
]

View File

@@ -1,16 +0,0 @@
import { dsSidebar } from '../../manuscripts/ds/ds.sidebar'
import { cppSidebar } from '../../manuscripts/ccp/cpp.sidebar'
import { cnSidebar } from '../../manuscripts/cn/cn.sidebar'
import { MarkMapSidebar } from '../../manuscripts/mark-map/mark-map.sidebar'
import { osSidebar } from '../../manuscripts/os/os.sidebar'
/**
* 侧边导航栏设置
*/
export const sidebar = {
'/manuscripts/ds': dsSidebar,
'/manuscripts/os': osSidebar,
'/manuscripts/ccp': cppSidebar,
'/manuscripts/cn': cnSidebar,
'/manuscripts/mark-map': MarkMapSidebar,
}

View File

@@ -1,74 +0,0 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Markmap</title>
<style>
* {
margin: 0;
padding: 0;
}
#mindmap {
display: block;
width: 100vw;
height: 100vh;
}
</style>
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.8.0/styles/default.min.css" />
<link rel="stylesheet" href="https://unpkg.com/markmap-toolbar@0.15.4/dist/style.css" />
</head>
<body>
<svg id="mindmap"></svg>
<script src="https://unpkg.com/d3@7.8.5/dist/d3.min.js"></script>
<script src="https://unpkg.com/markmap-view@0.15.4/dist/browser/index.js"></script>
<script src="https://unpkg.com/markmap-toolbar@0.15.4/dist/index.js"></script>
<script>
;((r) => {
setTimeout(r)
})(() => {
const { markmap, mm } = window
const toolbar = new markmap.Toolbar()
toolbar.attach(mm)
const el = toolbar.render()
el.setAttribute('style', 'position:absolute;bottom:20px;right:20px')
document.body.append(el)
})
</script>
<script>
;((getMarkmap, getOptions, root, jsonOptions) => {
const markmap = getMarkmap()
window.mm = markmap.Markmap.create('svg#mindmap', (getOptions || markmap.deriveOptions)(jsonOptions), root)
})(
() => window.markmap,
null,
{
type: 'heading',
depth: 0,
payload: { lines: [1, 2] },
content: '计算机组成原理',
children: [
{
type: 'fence',
depth: 1,
content:
'<pre><code class="language-mindmap">root(计算机组成原理)\n (引论)\n (数据的表示和运算)\n (储存系统)\n (指令系统)\n (中央处理器)\n (总线)\n (输入输出系统)\n</code></pre>\n',
children: [],
payload: { lines: [3, 13] },
},
{ type: 'heading', depth: 1, payload: { lines: [16, 17] }, content: '引论', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [18, 19] }, content: '数据的表示和运算', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [20, 21] }, content: '存储系统', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [22, 23] }, content: '指令系统', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [24, 25] }, content: '中央处理器', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [26, 27] }, content: '总线', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [28, 29] }, content: '输入输出系统', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [30, 31] }, content: '一些总结', children: [] },
],
},
null,
)
</script>
</body>
</html>

View File

@@ -1,73 +0,0 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Markmap</title>
<style>
* {
margin: 0;
padding: 0;
}
#mindmap {
display: block;
width: 100vw;
height: 100vh;
}
</style>
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.8.0/styles/default.min.css" />
<link rel="stylesheet" href="https://unpkg.com/markmap-toolbar@0.15.4/dist/style.css" />
</head>
<body>
<svg id="mindmap"></svg>
<script src="https://unpkg.com/d3@7.8.5/dist/d3.min.js"></script>
<script src="https://unpkg.com/markmap-view@0.15.4/dist/browser/index.js"></script>
<script src="https://unpkg.com/markmap-toolbar@0.15.4/dist/index.js"></script>
<script>
;((r) => {
setTimeout(r)
})(() => {
const { markmap, mm } = window
const toolbar = new markmap.Toolbar()
toolbar.attach(mm)
const el = toolbar.render()
el.setAttribute('style', 'position:absolute;bottom:20px;right:20px')
document.body.append(el)
})
</script>
<script>
;((getMarkmap, getOptions, root, jsonOptions) => {
const markmap = getMarkmap()
window.mm = markmap.Markmap.create('svg#mindmap', (getOptions || markmap.deriveOptions)(jsonOptions), root)
})(
() => window.markmap,
null,
{
type: 'heading',
depth: 0,
payload: { lines: [1, 2] },
content: '计算机网络',
children: [
{
type: 'fence',
depth: 1,
content:
'<pre><code class="language-mindmap">root(计算机网络)\n (体系机构)\n (物理层)\n (数据链路层)\n (网络层)\n (传输层)\n (应用层)\n</code></pre>\n',
children: [],
payload: { lines: [3, 12] },
},
{ type: 'heading', depth: 1, payload: { lines: [15, 16] }, content: '体系结构', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [17, 18] }, content: '物理层', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [19, 20] }, content: '数据链路层', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [21, 22] }, content: '网络层', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [23, 24] }, content: '传输层', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [25, 26] }, content: '应用层', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [27, 28] }, content: '一些总结', children: [] },
],
},
null,
)
</script>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -1,72 +0,0 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Markmap</title>
<style>
* {
margin: 0;
padding: 0;
}
#mindmap {
display: block;
width: 100vw;
height: 100vh;
}
</style>
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.8.0/styles/default.min.css" />
<link rel="stylesheet" href="https://unpkg.com/markmap-toolbar@0.15.4/dist/style.css" />
</head>
<body>
<svg id="mindmap"></svg>
<script src="https://unpkg.com/d3@7.8.5/dist/d3.min.js"></script>
<script src="https://unpkg.com/markmap-view@0.15.4/dist/browser/index.js"></script>
<script src="https://unpkg.com/markmap-toolbar@0.15.4/dist/index.js"></script>
<script>
;((r) => {
setTimeout(r)
})(() => {
const { markmap, mm } = window
const toolbar = new markmap.Toolbar()
toolbar.attach(mm)
const el = toolbar.render()
el.setAttribute('style', 'position:absolute;bottom:20px;right:20px')
document.body.append(el)
})
</script>
<script>
;((getMarkmap, getOptions, root, jsonOptions) => {
const markmap = getMarkmap()
window.mm = markmap.Markmap.create('svg#mindmap', (getOptions || markmap.deriveOptions)(jsonOptions), root)
})(
() => window.markmap,
null,
{
type: 'heading',
depth: 0,
payload: { lines: [1, 2] },
content: '操作系统',
children: [
{
type: 'fence',
depth: 1,
content:
'<pre><code class="language-mindmap">root(操作系统)\n (系统概述)\n (进程管理)\n (进程管理)\n (文件管理)\n (输入、输出管理)\n</code></pre>\n',
children: [],
payload: { lines: [3, 11] },
},
{ type: 'heading', depth: 1, payload: { lines: [14, 15] }, content: '引论', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [16, 17] }, content: '进程管理', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [18, 19] }, content: '内存管理', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [20, 21] }, content: '一些总结', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [22, 23] }, content: 'I/O管理', children: [] },
{ type: 'heading', depth: 1, payload: { lines: [24, 25] }, content: '文件管理', children: [] },
],
},
null,
)
</script>
</body>
</html>

View File

@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Markmap</title>
<style>
* {
margin: 0;
padding: 0;
}
#mindmap {
display: block;
width: 100vw;
height: 100vh;
}
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@highlightjs/cdn-assets@11.8.0/styles/default.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/markmap-toolbar@0.15.8/dist/style.css">
</head>
<body>
<svg id="mindmap"></svg>
<script src="https://cdn.jsdelivr.net/npm/d3@7.8.5/dist/d3.min.js"></script><script src="https://cdn.jsdelivr.net/npm/markmap-view@0.15.8/dist/browser/index.js"></script><script src="https://cdn.jsdelivr.net/npm/markmap-toolbar@0.15.8/dist/index.js"></script><script>((r) => {
setTimeout(r);
})(() => {
const { markmap, mm } = window;
const toolbar = new markmap.Toolbar();
toolbar.attach(mm);
const el = toolbar.render();
el.setAttribute("style", "position:absolute;bottom:20px;right:20px");
document.body.append(el);
})</script><script>((getMarkmap, getOptions, root2, jsonOptions) => {
const markmap = getMarkmap();
window.mm = markmap.Markmap.create(
"svg#mindmap",
(getOptions || markmap.deriveOptions)(jsonOptions),
root2
);
})(() => window.markmap,null,{"type":"heading","depth":0,"payload":{"lines":[1,2]},"content":"计算机组成原理","children":[{"type":"fence","depth":1,"content":"<pre><code class=\"language-mindmap\">root(计算机组成原理)\n (引论)\n (数据的表示和运算)\n (储存系统)\n (指令系统)\n (中央处理器)\n (总线)\n (输入输出系统)\n</code></pre>\n","children":[],"payload":{"lines":[3,13]}},{"type":"heading","depth":1,"payload":{"lines":[18,19]},"content":"引论","children":[]},{"type":"heading","depth":1,"payload":{"lines":[20,21]},"content":"数据的表示和运算","children":[]},{"type":"heading","depth":1,"payload":{"lines":[22,23]},"content":"存储系统","children":[]},{"type":"heading","depth":1,"payload":{"lines":[24,25]},"content":"指令系统","children":[]},{"type":"heading","depth":1,"payload":{"lines":[26,27]},"content":"中央处理器","children":[]},{"type":"heading","depth":1,"payload":{"lines":[28,29]},"content":"总线","children":[]},{"type":"heading","depth":1,"payload":{"lines":[30,31]},"content":"输入输出系统","children":[]},{"type":"heading","depth":1,"payload":{"lines":[32,33]},"content":"一些总结","children":[]}]},null)</script>
</body>
</html>

View File

@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Markmap</title>
<style>
* {
margin: 0;
padding: 0;
}
#mindmap {
display: block;
width: 100vw;
height: 100vh;
}
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@highlightjs/cdn-assets@11.8.0/styles/default.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/markmap-toolbar@0.15.8/dist/style.css">
</head>
<body>
<svg id="mindmap"></svg>
<script src="https://cdn.jsdelivr.net/npm/d3@7.8.5/dist/d3.min.js"></script><script src="https://cdn.jsdelivr.net/npm/markmap-view@0.15.8/dist/browser/index.js"></script><script src="https://cdn.jsdelivr.net/npm/markmap-toolbar@0.15.8/dist/index.js"></script><script>((r) => {
setTimeout(r);
})(() => {
const { markmap, mm } = window;
const toolbar = new markmap.Toolbar();
toolbar.attach(mm);
const el = toolbar.render();
el.setAttribute("style", "position:absolute;bottom:20px;right:20px");
document.body.append(el);
})</script><script>((getMarkmap, getOptions, root2, jsonOptions) => {
const markmap = getMarkmap();
window.mm = markmap.Markmap.create(
"svg#mindmap",
(getOptions || markmap.deriveOptions)(jsonOptions),
root2
);
})(() => window.markmap,null,{"type":"heading","depth":0,"payload":{"lines":[1,2]},"content":"计算机网络","children":[{"type":"fence","depth":1,"content":"<pre><code class=\"language-mindmap\">root(计算机网络)\n (体系机构)\n (物理层)\n (数据链路层)\n (网络层)\n (传输层)\n (应用层)\n</code></pre>\n","children":[],"payload":{"lines":[3,12]}},{"type":"heading","depth":1,"payload":{"lines":[15,16]},"content":"体系结构","children":[]},{"type":"heading","depth":1,"payload":{"lines":[17,18]},"content":"物理层","children":[]},{"type":"heading","depth":1,"payload":{"lines":[19,20]},"content":"数据链路层","children":[]},{"type":"heading","depth":1,"payload":{"lines":[21,22]},"content":"网络层","children":[]},{"type":"heading","depth":1,"payload":{"lines":[23,24]},"content":"传输层","children":[]},{"type":"heading","depth":1,"payload":{"lines":[25,26]},"content":"应用层","children":[]},{"type":"heading","depth":1,"payload":{"lines":[27,28]},"content":"一些总结","children":[]}]},null)</script>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Markmap</title>
<style>
* {
margin: 0;
padding: 0;
}
#mindmap {
display: block;
width: 100vw;
height: 100vh;
}
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@highlightjs/cdn-assets@11.8.0/styles/default.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/markmap-toolbar@0.15.8/dist/style.css">
</head>
<body>
<svg id="mindmap"></svg>
<script src="https://cdn.jsdelivr.net/npm/d3@7.8.5/dist/d3.min.js"></script><script src="https://cdn.jsdelivr.net/npm/markmap-view@0.15.8/dist/browser/index.js"></script><script src="https://cdn.jsdelivr.net/npm/markmap-toolbar@0.15.8/dist/index.js"></script><script>((r) => {
setTimeout(r);
})(() => {
const { markmap, mm } = window;
const toolbar = new markmap.Toolbar();
toolbar.attach(mm);
const el = toolbar.render();
el.setAttribute("style", "position:absolute;bottom:20px;right:20px");
document.body.append(el);
})</script><script>((getMarkmap, getOptions, root2, jsonOptions) => {
const markmap = getMarkmap();
window.mm = markmap.Markmap.create(
"svg#mindmap",
(getOptions || markmap.deriveOptions)(jsonOptions),
root2
);
})(() => window.markmap,null,{"type":"heading","depth":0,"payload":{"lines":[1,2]},"content":"操作系统","children":[{"type":"fence","depth":1,"content":"<pre><code class=\"language-mindmap\">root(操作系统)\n (系统概述)\n (进程管理)\n (进程管理)\n (文件管理)\n (输入、输出管理)\n</code></pre>\n","children":[],"payload":{"lines":[3,11]}},{"type":"heading","depth":1,"payload":{"lines":[14,15]},"content":"引论","children":[]},{"type":"heading","depth":1,"payload":{"lines":[16,17]},"content":"进程管理","children":[]},{"type":"heading","depth":1,"payload":{"lines":[18,19]},"content":"内存管理","children":[]},{"type":"heading","depth":1,"payload":{"lines":[20,21]},"content":"一些总结","children":[]},{"type":"heading","depth":1,"payload":{"lines":[22,23]},"content":"I/O管理","children":[]},{"type":"heading","depth":1,"payload":{"lines":[24,25]},"content":"文件管理","children":[]}]},null)</script>
</body>
</html>

View File

@@ -7,4 +7,6 @@ $code-light-them: 'coldark-cold';
$code-dark-theme: 'atom-dark';
// 主题色
//$theme-colors: #2196f3, #f26d6d, #3eaf7c, #fb9b5f;
// $theme-colors: #2196f3, #f26d6d, #3eaf7c, #fb9b5f;
$theme-color: #6184e8;

View File

@@ -12,7 +12,6 @@ export const FOOTER_HTML_INFO = `
<span style="margin: 0 5px;">|</span>
<a href="https://tongji.baidu.com/web/welcome/login" target="_blank">百度统计</a>
</div>
`
/**
@@ -28,7 +27,7 @@ export const copyright = `
export const AUTHOR_INFO = {
name: authorInfo.name,
email: authorInfo.email,
url: authorInfo.homePages,
url: authorInfo.homePage,
}
export const NotFoundMsgList = [

View File

@@ -0,0 +1,16 @@
import type { HeadConfig } from '@vuepress/shared'
export const headers: HeadConfig[] = [
// vercel统计 相关配置
['script', { type: 'text/javascript', src: '/_vercel/insights/script.js' }],
['link', { rel: 'icon', href: '/408_favicon.ico' }],
// 百度统计
['script', {}, `
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?3515cc46ae60747b778140f0e5e22dfe";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();`],
]

View File

@@ -1,16 +1,19 @@
import type { ThemeLocaleData } from 'vuepress-theme-hope'
import { NotFoundMsgList } from './constant.config'
import type { SearchProLocaleData } from 'vuepress-plugin-search-pro'
import { NotFoundMsgList } from './constants'
/**
* 支持中文
* 参考:https://theme-hope.vuejs.press/zh/config/i18n.html
*/
const localCN: ThemeLocaleData = {
const themeLocalCN: ThemeLocaleData = {
lang: 'zh-CN',
navbarLocales: {
langName: '简体中文',
selectLangAriaLabel: '选择语言',
},
metaLocales: {
author: '作者',
date: '写作日期',
@@ -20,7 +23,7 @@ const localCN: ThemeLocaleData = {
tag: '标签',
readingTime: '阅读时间',
words: '字数',
toc: '标题大纲',
toc: '此页包含',
prev: '上一页',
next: '下一页',
lastUpdated: '上次编辑于',
@@ -38,7 +41,8 @@ const localCN: ThemeLocaleData = {
timelineTitle: '昨日不在',
all: '全部',
intro: '个人介绍',
star: '收藏',
star: '星标',
empty: '$text 为空',
},
paginationLocales: {
@@ -61,19 +65,40 @@ const localCN: ThemeLocaleData = {
remember: '记住密码',
errorHint: '请输入正确的密码',
},
routeLocales: {
skipToContent: '跳至主要內容',
notFoundTitle: '访问的页面不存在',
notFoundTitle: '页面不存在',
notFoundMsg: NotFoundMsgList,
back: '返回上一页',
home: '进入首页',
openInNewWindow: '新窗口打开',
},
}
/**
* 自定义语言,支持文案
*/
export const langConfig = {
'/': localCN,
export const i18n = {
'/': themeLocalCN,
}
/**
* 搜索框支持中文
* 参考:https://plugin-search-pro.vuejs.press/zh/config.html#locales
*/
export const searchProCNLocals: SearchProLocaleData = {
placeholder: '请输入需要搜索的关键字',
search: '搜索文档',
searching: '搜索中',
cancel: '取消',
select: '选择',
navigate: '切换',
exit: '关闭',
loading: '正在努力搜索中...',
queryHistory: '搜素文字历史',
resultHistory: '搜索结果',
emptyHistory: '没有搜索历史',
emptyResult: '无法找到相关结果',
defaultTitle: '搜索文档',
autocomplete: '自动补齐',
}

View File

@@ -0,0 +1,65 @@
/**
* 导航栏配置
*/
export const navbar = [
{
text: '🌐 首页',
link: '/',
},
{
text: '📙 数据结构',
link: '/ds/',
},
{
text: '📕 操作系统',
link: '/os/',
},
{
text: '📘 计算机组成原理',
link: '/ccp/',
},
{
text: '📗 计算机网络',
link: '/cn/',
},
{
text: '🧠 思维导图',
link: '/mark-map/ds-map.html',
},
{
text: '👉 了解更多',
children: [
{
text: '📄 更新日志',
link: '/changelog.md',
},
{
text: '📣 网站动态',
link: '/big-event-history.md',
},
{
text: '自媒体',
children: [
{
text: '💥 公众号文章',
link: '/wechat-list.md',
},
],
},
{
text: '外链',
children: [
// {
// text: '常用网站',
// link: '/frequent-site-link.md'
// },
{
text: '🎯 开发计划',
link: 'https://142vip-cn.feishu.cn/share/base/view/shrcnpso8R4vCid01wmg66hFjae',
},
],
},
],
},
]

View File

@@ -1,6 +1,6 @@
import { searchProPlugin } from 'vuepress-plugin-search-pro'
import { path } from '@vuepress/utils'
import { registerComponentsPlugin } from '@vuepress/plugin-register-components'
// import { registerComponentsPlugin } from '@vuepress/plugin-register-components'
// import { path } from '@vuepress/utils'
/**
* 插件配置
@@ -8,12 +8,12 @@ import { registerComponentsPlugin } from '@vuepress/plugin-register-components'
export default {
plugins: [
// 组件注册,参考:https://v2.vuepress.vuejs.org/zh/reference/plugin/register-components.html
registerComponentsPlugin({
componentsDir: path.resolve(__dirname, '../components'),
// components: {
// HelloWorld: path.resolve(__dirname, '../components/HelloWorld.vue')
// }
}),
// registerComponentsPlugin({
// componentsDir: path.resolve(__dirname, '../components'),
// // components: {
// // HelloWorld: path.resolve(__dirname, '../components/HelloWorld.vue')
// // }
// }),
searchProPlugin({
// 索引全部内容
indexContent: true,

View File

@@ -0,0 +1,16 @@
import { dsSidebar } from '../../ds/ds.sidebar'
import { cppSidebar } from '../../ccp/cpp.sidebar'
import { cnSidebar } from '../../cn/cn.sidebar'
import { MarkMapSidebar } from '../../mark-map/mark-map.sidebar'
import { osSidebar } from '../../os/os.sidebar'
/**
* 侧边导航栏设置
*/
export const sidebar = {
'/ds': dsSidebar,
'/os': osSidebar,
'/ccp': cppSidebar,
'/cn': cnSidebar,
'/mark-map': MarkMapSidebar,
}

View File

@@ -1,7 +1,8 @@
import { hopeTheme } from 'vuepress-theme-hope'
import { AUTHOR_INFO, FOOTER_HTML_INFO, copyright } from './constant.config'
import { langConfig } from './lang.config'
import { markdownImagePlugin } from '@vuepress/plugin-markdown-image'
import { AUTHOR_INFO, FOOTER_HTML_INFO, copyright } from './constants'
import { navbar } from './navbar'
import { i18n, searchProCNLocals } from './i18n'
import { sidebar } from './sidebar'
/**
@@ -11,8 +12,10 @@ import { sidebar } from './sidebar'
export default {
theme: hopeTheme({
locales: langConfig,
darkmode: 'disable',
// locales: langConfig,
locales: i18n,
// 在深色模式和浅色模式之间切换
darkmode: 'toggle',
// 支持全屏
// fullscreen: true,
// 纯净模式
@@ -22,19 +25,18 @@ export default {
author: AUTHOR_INFO,
favicon: '/408_favicon.ico',
logo: '/408_logo.png',
logoDark: '/408_logo.png',
navbar,
// 导航栏布局
navbarLayout: {
start: ['Brand'],
center: ['Links'],
end: ['Language', 'Search', 'Repo', 'Outlook'],
end: ['Language', 'Outlook', 'Repo', 'Search'],
},
sidebar,
// sidebar: "heading",
// 主题布局选项
repo: 'https://github.com/142vip/408CSFamily',
logoDark: '/408_logo.png',
// 博客配置
// blog: {
@@ -57,27 +59,36 @@ export default {
copyright,
// 主题色选择器
themeColor: true,
// 是否显示外部链接图标
externalLinkIcon: false,
plugins: {
readingTime: {
wordPerMinute: 100,
},
copyright: false,
// 开启博客功能
blog: false,
// 图片增强,参考:https://ecosystem.vuejs.press/zh/plugins/markdown/markdown-image.html
markdownImage: markdownImagePlugin({
// 启用 figure
figure: true,
// 启用图片懒加载
lazyload: true,
// 启用图片标记
mark: true,
// 启用图片大小
size: true,
}),
// 代码块
mdEnhance: {
codetabs: true,
tasklist: true, // 支持任务列表
// 启用 figure
figure: true,
// 启用图片懒加载
imgLazyload: true,
// 启用图片标记
imgMark: true,
// 启用图片大小
imgSize: true,
playground: {
presets: ['ts', 'vue'],
},
// 是否启用幻灯片
revealjs: ['highlight', 'math', 'search', 'notes', 'zoom'],
// revealjs: ['highlight', 'math', 'search', 'notes', 'zoom'],
stylize: [
{
matcher: 'Recommended',
@@ -99,34 +110,41 @@ export default {
vuePlayground: true,
// 文件导入
include: true,
// 容器
container: true,
// mermaid
mermaid: true,
// 自定义对齐
align: true,
},
// 不自动生成readme目录
autoCatalog: false,
// 不自动生成README目录
catalog: false,
// 参考:https://theme-hope.vuejs.press/zh/guide/markdown/components.html
components: {
components: [
'ArtPlayer',
'AudioPlayer',
'Badge',
'BiliBili',
'CodePen',
'PDF',
'Replit',
'Share',
'SiteInfo',
'StackBlitz',
// "VidStack",
'VideoPlayer',
'VidStack',
'Share',
'XiGua',
'YouTube',
],
},
searchPro: {
// 参考:https://plugin-search-pro.vuejs.press/zh/config.html#locales
locales: {
'/': searchProCNLocals,
},
},
// 代码高亮:https://theme-hope.vuejs.press/zh/guide/feature/code-block.html
shiki: {
langs: ['ts', 'js', 'json', 'vue', 'json5', 'bash', 'diff', 'c', 'c++', 'dockerfile', 'nginx', 'proto', 'java', 'javascript', 'typescript'],
// 你想要使用的主题
themes: {
light: 'one-light',
dark: 'one-dark-pro',
},
},
copyCode: {
showInMobile: true,
},

View File

@@ -8,24 +8,24 @@ actions:
link: /quick-start.md
type: primary
- text: 微信公众号
link: /manuscripts/wechat-list.md
link: /wechat-list.md
type: secondary
# - text: 工作机会 💡
# link: /manuscripts/job-poster-bytedance.md
# link: /job-poster-bytedance.md
# type: secondary
features:
- title: 数据结构
details: 链表、栈、队列是基础,树、图论是难点。查找、排序套路多,算法模型不容忽视。代码能力不必过度忧虑,伪代码未尝不可
link: /manuscripts/ds
link: /ds
- title: 操作系统
details: 进程管理、内存管理重中之重,细细揣摸。存储系统、输入、输出系统等配合计组学习,效果更佳
link: /manuscripts/os
link: /os
- title: 计算机组成原理
details: 难难难... 晦涩难懂,定点数、浮点数难啃需反复吭、反复嚼。花时间、花精力努力攻克,抓大放小
link: /manuscripts/ccp
link: /ccp
- title: 计算机网络
details: TCP、UDP常考且实用,协议多、内容杂、层次深,配合思维导图、利用碎片化时间记忆,尤其是各层协议
link: /manuscripts/cn
link: /cn
- title: 多学科基础
details: 基于计算机408考试要求分学科整理笔记,汇总各类知识点。支持精准查找、快速复习
- title: 重难点巩固

View File

@@ -1,6 +1,7 @@
---
title: 网站动态
permalink: /manuscripts/big-event-history.html
permalink: /big-event-history.html
sidebar: false
---
# 网站动态

View File

@@ -1,13 +1,12 @@
---
title: 计算机组成原理
permalink: /manuscripts/ccp.html
---
# 计算机组成原理
![打好基础推荐学习这本](./images/cpp-base.png)
![打好基础推荐学习这本](images/cpp-base.png)
![学有余力可以适当翻看这本](./images/cpp-batter.png)
![学有余力可以适当翻看这本](images/cpp-batter.png)
## 计算机引论

View File

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 81 KiB

View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

@@ -1,6 +1,6 @@
---
title: CPU的基本介绍
permalink: /manuscripts/ccp/cpu/base-introduce.html
permalink: /ccp/cpu/base-introduce.html
---
# CPU的基本介绍

View File

@@ -1,6 +1,6 @@
---
title: 一些总结
permalink: /manuscripts/ccp/bus/summary.html
permalink: /ccp/cpu/summary.html
---
# 一些总结

View File

@@ -1,6 +1,6 @@
---
title: 指令执行过程
permalink: /manuscripts/ccp/cpu/instruct-exec-process.html
permalink: /ccp/cpu/instruct-exec-process.html
---
# 指令执行过程

View File

@@ -1,6 +1,6 @@
---
title: 指令执行过程
permalink: /manuscripts/ccp/cpu/instruct-line.html
permalink: /ccp/cpu/instruct-line.html
---
# 指令流水线

View File

@@ -1,6 +1,6 @@
---
title: 控制器
permalink: /manuscripts/ccp/cpu/controller.html
permalink: /ccp/cpu/controller.html
---
# 控制器

View File

@@ -1,6 +1,6 @@
---
title: 数据通路
permalink: /manuscripts/ccp/cpu/data-pathways.html
permalink: /ccp/cpu/data-pathways.html
---
# 数据通路

View File

@@ -1,6 +1,6 @@
---
title: 数据通路
permalink: /manuscripts/ccp/store-memory/summary.html
permalink: /ccp/store-memory/summary.html
---
# 一些总结

View File

@@ -1,6 +1,6 @@
---
title: 主存和CPU
permalink: /manuscripts/ccp/store-memory/cpu-storage.html
permalink: /ccp/store-memory/cpu-storage.html
---
# 主存和CPU

View File

@@ -1,6 +1,6 @@
---
title: 双端口RAM和多模块存储器
permalink: /manuscripts/ccp/store-memory/ram-storage.html
permalink: /ccp/store-memory/ram-storage.html
---
# 双端口RAM和多模块存储器

View File

@@ -1,6 +1,6 @@
---
title: 存储器介绍
permalink: /manuscripts/ccp/store-memory/storage-introduce.html
permalink: /ccp/store-memory/storage-introduce.html
---
# 存储器介绍

View File

@@ -1,6 +1,6 @@
---
title: 存储器的层次化结构
permalink: /manuscripts/ccp/store-memory/storage-layer-structure.html
permalink: /ccp/store-memory/storage-layer-structure.html
---
# 存储器的层次化结构

View File

@@ -1,6 +1,6 @@
---
title: 虚拟存储器
permalink: /manuscripts/ccp/store-memory/virtual-storage.html
permalink: /ccp/store-memory/virtual-storage.html
---
# 虚拟存储器

View File

@@ -1,6 +1,6 @@
---
title: 随机存储器
permalink: /manuscripts/ccp/store-memory/ram.html
permalink: /ccp/store-memory/ram.html
---
# 随机存储器

View File

@@ -1,6 +1,6 @@
---
title: 高速缓冲存储器
permalink: /manuscripts/ccp/store-memory/cache.html
permalink: /ccp/store-memory/cache.html
---
# 高速缓冲存储器

View File

@@ -1,6 +1,6 @@
---
title: 一些总结
permalink: /manuscripts/ccp/cpu/summary.html
permalink: /ccp/bus/summary.html
---
# 一些总结

View File

@@ -1,6 +1,6 @@
---
title: 总线介绍
permalink: /manuscripts/ccp/bus/introduce.html
permalink: /ccp/bus/introduce.html
---
# 总线介绍

View File

@@ -1,6 +1,6 @@
---
title: 总线仲裁
permalink: /manuscripts/ccp/bus/bus-quorum.html
permalink: /ccp/bus/bus-quorum.html
---
# 总线仲裁

View File

@@ -1,6 +1,6 @@
---
title: 总线标准
permalink: /manuscripts/ccp/bus/bus-standard.html
permalink: /ccp/bus/bus-standard.html
---
# 总线标准

View File

@@ -1,6 +1,6 @@
---
title: 总线的操作和定时
permalink: /manuscripts/ccp/bus/operate-schedule.html
permalink: /ccp/bus/operate-schedule.html
---
# 总线的操作和定时

View File

@@ -1,6 +1,6 @@
---
title: 总线介绍
permalink: /manuscripts/ccp/directive/summary.html
permalink: /ccp/directive/summary.html
---
# 一些总结

View File

@@ -1,6 +1,6 @@
---
title: 寻址方式
permalink: /manuscripts/ccp/directive-system/address-method.html
permalink: /ccp/directive-system/address-method.html
---
# 寻址方式

View File

@@ -1,6 +1,6 @@
---
title: 总线介绍
permalink: /manuscripts/ccp/directive-system/directive-style.html
permalink: /ccp/directive-system/directive-style.html
---
# 指令格式

View File

@@ -1,6 +1,6 @@
---
title: 指令集
permalink: /manuscripts/ccp/directive-system/directive-collection.html
permalink: /ccp/directive-system/directive-collection.html
---
# 指令集

View File

@@ -1,6 +1,6 @@
---
title: 一些总结
permalink: /manuscripts/ccp/in-out/summary.html
permalink: /ccp/data-represent-compute/summary.html
---
# 一些总结

View File

@@ -1,6 +1,6 @@
---
title: 定点数
permalink: /manuscripts/ccp/data-represent-compute/fixed-number.html
permalink: /ccp/data-represent-compute/fixed-number.html
---
# 定点数

View File

@@ -1,6 +1,6 @@
---
title: 数制和编码
permalink: /manuscripts/ccp/data-represent-compute/number-coding.html
permalink: /ccp/data-represent-compute/number-coding.html
---
# 数制和编码

View File

@@ -1,6 +1,6 @@
---
title: 浮点数
permalink: /manuscripts/ccp/data-represent-compute/float-number.html
permalink: /ccp/data-represent-compute/float-number.html
---
# 浮点数

View File

@@ -1,6 +1,6 @@
---
title: 算数逻辑单元
permalink: /manuscripts/ccp/data-represent-compute/arithmetic-logical-unit.html
permalink: /ccp/data-represent-compute/arithmetic-logical-unit.html
---
# 算数逻辑单元

View File

@@ -1,6 +1,6 @@
---
title: 发展历程
permalink: /manuscripts/ccp/ccp-introduction/develop.html
permalink: /ccp/ccp-introduction/develop.html
---
# 发展历程

View File

@@ -1,6 +1,6 @@
---
title: 性能指标
permalink: /manuscripts/ccp/ccp-introduction/performance-metrics.html
permalink: /ccp/ccp-introduction/performance-metrics.html
---
# 性能指标

View File

@@ -1,6 +1,6 @@
---
title: 系统层次结构
permalink: /manuscripts/ccp/ccp-introduction/system-layer-info.html
permalink: /ccp/ccp-introduction/system-layer-info.html
---
# 系统层次结构

View File

@@ -0,0 +1,8 @@
---
title: 一些总结
permalink: /ccp/in-out/summary.html
---
# 一些总结
努力赶稿中,等等我呀...

View File

@@ -1,6 +1,6 @@
---
title: 基本概念
permalink: /manuscripts/ccp/in-out/base-concept.html
permalink: /ccp/in-out/base-concept.html
---
# 基本概念

View File

@@ -1,6 +1,6 @@
---
title: 外部设备
permalink: /manuscripts/ccp/in-out/outer-equipment.html
permalink: /ccp/in-out/outer-equipment.html
---
# 外部设备

View File

@@ -1,6 +1,6 @@
---
title: 输入输出接口
permalink: /manuscripts/ccp/in-out/io-interface.html
permalink: /ccp/in-out/io-interface.html
---
# 输入输出接口

View File

@@ -1,6 +1,6 @@
---
title: 算数逻辑单元
permalink: /manuscripts/ccp/in-out/io-model.html
permalink: /ccp/in-out/io-model.html
---
# 输入输出方式

View File

@@ -1,13 +1,14 @@
---
title: 变更记录
permalink: /manuscripts/changelog.html
permalink: /changelog.html
sidebar: false
---
# 变更记录
该文件包含 `408CSFamily` 仓库和网站所有显着更改。
<!-- @include: ../../CHANGELOG.md#recent-alpha -->
<!-- @include: ../CHANGELOG.md#recent-alpha -->
## 更多

View File

@@ -1,13 +1,12 @@
---
title: 计算机网络
permalink: /manuscripts/cn.html
---
# 计算机网络
![打好基础推荐学习这本](./images/cn-base.png)
![打好基础推荐学习这本](images/cn-base.png)
![学有余力可以适当翻看这本](./images/cn-batter.png)
![学有余力可以适当翻看这本](images/cn-batter.png)
## 体系机构

View File

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 87 KiB

View File

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

View File

@@ -1,6 +1,6 @@
---
title: 提供的服务
permalink: /manuscripts/cn/trans-port-layer/provider-service.html
permalink: /cn/trans-port-layer/provider-service.html
---
# 提供的服务

View File

@@ -1,6 +1,6 @@
---
title: UDP协议
permalink: /manuscripts/cn/trans-port-layer/udp.html
permalink: /cn/trans-port-layer/udp.html
---
# UDP协议

View File

@@ -1,6 +1,6 @@
---
title: TCP协议
permalink: /manuscripts/cn/trans-port-layer/tcp.html
permalink: /cn/trans-port-layer/tcp.html
---
# TCP协议

View File

@@ -1,6 +1,6 @@
---
title: 一些总结
permalink: /manuscripts/ds/string/summary.html
permalink: /cn/trans-port-layer/summary.html
---
# 总结

View File

@@ -1,6 +1,6 @@
---
title: 基本介绍
permalink: /manuscripts/cn/architecture/introduce.html
permalink: /cn/architecture/introduce.html
---
# 基本介绍

View File

@@ -1,6 +1,6 @@
---
title: 体系结构与参考模型
permalink: /manuscripts/cn/architecture/reference-model.html
permalink: /cn/architecture/reference-model.html
---
# 体系结构与参考模型

View File

@@ -1,6 +1,6 @@
---
title: 应用模型
permalink: /manuscripts/cn/application-layer/application-model.html
permalink: /cn/application-layer/application-model.html
---
# 应用模型

View File

@@ -1,6 +1,6 @@
---
title: DNS
permalink: /manuscripts/cn/application-layer/dns.html
permalink: /cn/application-layer/dns.html
---
# DNS

View File

@@ -1,6 +1,6 @@
---
title: FTP
permalink: /manuscripts/cn/application-layer/ftp.html
permalink: /cn/application-layer/ftp.html
---
# FTP

View File

@@ -1,6 +1,6 @@
---
title: HTTP
permalink: /manuscripts/cn/application-layer/http.html
permalink: /cn/application-layer/http.html
---
# HTTP

View File

@@ -1,6 +1,6 @@
---
title: 电子邮件
permalink: /manuscripts/cn/application-layer/email.html
permalink: /cn/application-layer/email.html
---
# 电子邮件

View File

@@ -1,6 +1,6 @@
---
title: 一些总结
permalink: /manuscripts/ds/graph/summary.html
permalink: /cn/application-layer/summary.html
---
# 总结

View File

@@ -1,6 +1,6 @@
---
title: 通信基础
permalink: /manuscripts/cn/data-link-layer/connect-base.html
permalink: /cn/data-link-layer/connect-base.html
---
# 基本功能

View File

@@ -1,6 +1,6 @@
---
title: 组帧
permalink: /manuscripts/cn/data-link-layer/framing.html
permalink: /cn/data-link-layer/framing.html
---
# 组帧

View File

@@ -1,6 +1,6 @@
---
title: 差错控制
permalink: /manuscripts/cn/data-link-layer/error-control.html
permalink: /cn/data-link-layer/error-control.html
---
# 差错控制

View File

@@ -1,6 +1,6 @@
---
title: 流量控制&可靠传输
permalink: /manuscripts/cn/data-link-layer/flow-control.html
permalink: /cn/data-link-layer/flow-control.html
---
# 流量控制&可靠传输

View File

@@ -1,6 +1,6 @@
---
title: 介质访问控制
permalink: /manuscripts/cn/data-link-layer/media-access-control.html
permalink: /cn/data-link-layer/media-access-control.html
---
# 介质访问控制

View File

@@ -1,6 +1,6 @@
---
title: 局域网
permalink: /manuscripts/cn/data-link-layer/local-area-network.html
permalink: /cn/data-link-layer/local-area-network.html
---
# 局域网

View File

@@ -1,6 +1,6 @@
---
title: 广域网
permalink: /manuscripts/cn/data-link-layer/wan-network.html
permalink: /cn/data-link-layer/wan-network.html
---
# 广域网

View File

@@ -1,6 +1,6 @@
---
title: 通信设备
permalink: /manuscripts/cn/data-link-layer/equipment.html
permalink: /cn/data-link-layer/equipment.html
---
# 通信设备

View File

@@ -1,6 +1,6 @@
---
title: 一些总结
permalink: /manuscripts/ds/sort-algorithm/summary.html
permalink: /cn/data-link-layer/summary.html
---
# 总结

View File

@@ -1,6 +1,6 @@
---
title: 通信基础
permalink: /manuscripts/cn/physical-layer/correspondence-base.html
permalink: /cn/physical-layer/correspondence-base.html
---
# 通信基础

View File

@@ -1,6 +1,6 @@
---
title: 传输介质
permalink: /manuscripts/cn/physical-layer/transmission-medium.html
permalink: /cn/physical-layer/transmission-medium.html
---
# 传输介质

View File

@@ -1,6 +1,6 @@
---
title: 物理层设备
permalink: /manuscripts/cn/physical-layer/devices.html
permalink: /cn/physical-layer/devices.html
---
# 物理层设备

View File

@@ -1,6 +1,6 @@
---
title: 一些总结
permalink: /manuscripts/cn/physical-layer/summary.html
permalink: /cn/physical-layer/summary.html
---
# 总结

View File

@@ -1,6 +1,6 @@
---
title: 基本功能
permalink: /manuscripts/cn/network-layer/base.html
permalink: /cn/network-layer/base.html
---
# 基本功能

View File

@@ -1,6 +1,6 @@
---
title: 路由算法
permalink: /manuscripts/cn/network-layer/route-algorithm.html
permalink: /cn/network-layer/route-algorithm.html
---
# 路由算法

View File

@@ -1,6 +1,6 @@
---
title: 路由协议
permalink: /manuscripts/cn/network-layer/route-protocol.html
permalink: /cn/network-layer/route-protocol.html
---
# 路由协议

Some files were not shown because too many files have changed in this diff Show More