From 98d3c8aaa1d4ba5ab465777dc03e65dfc06e9202 Mon Sep 17 00:00:00 2001 From: KAFUU <740371959@qq.com> Date: Mon, 17 Jul 2023 13:31:10 +0800 Subject: [PATCH 01/11] =?UTF-8?q?Update=209.=E8=AE=A1=E7=AE=97=E6=9C=BA?= =?UTF-8?q?=E7=BD=91=E7=BB=9C.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 9.计算机网络/9.计算机网络..md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 9.计算机网络/9.计算机网络..md diff --git a/9.计算机网络/9.计算机网络..md b/9.计算机网络/9.计算机网络..md new file mode 100644 index 0000000..4042650 --- /dev/null +++ b/9.计算机网络/9.计算机网络..md @@ -0,0 +1,6 @@ +# 9.计算机网络 +计算机网络的定义: + + 利用通信线路和通信设备,将地理位置不同的、功能独立的多台计算机互连起来,以功能完善的网络软件来实现资源共享和信息传递,就构成了计算机网络系统。 + +而我们学习计算机网络本质上可以理解为学习这个网络系统中的各种网络协议。 \ No newline at end of file From 316689ec5d3b0d48e8678b460726b944b5e962df Mon Sep 17 00:00:00 2001 From: Plumbiu <3434909403@qq.com> Date: Mon, 17 Jul 2023 22:46:16 +0800 Subject: [PATCH 02/11] feat: auto white space --- .vitepress/config.js | 3 ++ CONTRIBUTING.md | 2 +- package-lock.json | 115 ++++++++++++++++++++++++++++++++++++++++++- package.json | 3 +- 4 files changed, 120 insertions(+), 3 deletions(-) diff --git a/.vitepress/config.js b/.vitepress/config.js index f08e36a..1012c44 100644 --- a/.vitepress/config.js +++ b/.vitepress/config.js @@ -2,6 +2,8 @@ import { withMermaid } from "vitepress-plugin-mermaid"; import mathjax3 from 'markdown-it-mathjax3'; import { main_sidebar, chapter2, chapter3, chapter4, chapter5, chapter6, chapter7, chapter8 } from './sidebar.js'; +import PanguPlugin from 'markdown-it-pangu' + const customElements = [ 'mjx-container', 'mjx-assistive-mml', @@ -146,6 +148,7 @@ export default withMermaid({ markdown: { config: (md) => { md.use(mathjax3); + md.use(PanguPlugin); }, }, vue: { diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5ccfaeb..7c31dd3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,7 +23,7 @@ ## 文档风格 1. 使用 Markdown 编写文档,文档格式参考 Markdown 语法。 2. 一个页面只有一个1级标题(H1,一个#),其他标题从2级开始(H2,##)。 -3. 英文与中文之间用空格分开。 +3. 本项目自动在英文与中文、数字与中文之间添加空格。 ```markdown AI 与人工智能,AGI 的发展方向。 ``` diff --git a/package-lock.json b/package-lock.json index 42a920c..40643ff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,8 @@ "@jupyterlab/mathjax2": "^3.6.5", "@jupyterlab/theme-light-extension": "^4.0.3", "@vueuse/core": "^10.2.1", - "markdown-it": "^13.0.1" + "markdown-it": "^13.0.1", + "markdown-it-pangu": "^1.0.2" }, "devDependencies": { "@mermaid-js/mermaid-mindmap": "^9.3.0", @@ -2843,6 +2844,51 @@ "mathjax-full": "^3.2.0" } }, + "node_modules/markdown-it-pangu": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/markdown-it-pangu/-/markdown-it-pangu-1.0.2.tgz", + "integrity": "sha512-rssyYaMKXRLMpQIUgX01VE1KYOHhlnc4t5zGTI2zgXDpE88eQz8hywa0iSzoFm3eb5CYzFWazDKdUbnyZvW0SQ==", + "dependencies": { + "markdown-it": "^8.4.2", + "pangu": "^4.0.7" + } + }, + "node_modules/markdown-it-pangu/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmmirror.com/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/markdown-it-pangu/node_modules/entities": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/entities/-/entities-1.1.2.tgz", + "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" + }, + "node_modules/markdown-it-pangu/node_modules/linkify-it": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/linkify-it/-/linkify-it-2.2.0.tgz", + "integrity": "sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw==", + "dependencies": { + "uc.micro": "^1.0.1" + } + }, + "node_modules/markdown-it-pangu/node_modules/markdown-it": { + "version": "8.4.2", + "resolved": "https://registry.npmmirror.com/markdown-it/-/markdown-it-8.4.2.tgz", + "integrity": "sha512-GcRz3AWTqSUphY3vsUqQSFMbgR38a4Lh3GWlHRh/7MRwz8mcu9n2IO7HOh+bXHrR9kOPDl5RNCaEsrneb+xhHQ==", + "dependencies": { + "argparse": "^1.0.7", + "entities": "~1.1.1", + "linkify-it": "^2.0.0", + "mdurl": "^1.0.1", + "uc.micro": "^1.0.5" + }, + "bin": { + "markdown-it": "bin/markdown-it.js" + } + }, "node_modules/markdown-it/node_modules/entities": { "version": "3.0.1", "resolved": "https://registry.npmmirror.com/entities/-/entities-3.0.1.tgz", @@ -3276,6 +3322,14 @@ "node": ">=0.10.0" } }, + "node_modules/pangu": { + "version": "4.0.7", + "resolved": "https://registry.npmmirror.com/pangu/-/pangu-4.0.7.tgz", + "integrity": "sha512-weZKJIwwy5gjt4STGVUH9bix3BGk7wZ2ahtIypwe3e/mllsrIZIvtfLx1dPX56GcpZFOCFKmeqI1qVuB9enRzA==", + "bin": { + "pangu": "dist/node/cli.js" + } + }, "node_modules/parse-srcset": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/parse-srcset/-/parse-srcset-1.0.2.tgz", @@ -3553,6 +3607,11 @@ "node": "^12.20.0 || >=14" } }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + }, "node_modules/style-mod": { "version": "4.0.3", "resolved": "https://registry.npmmirror.com/style-mod/-/style-mod-4.0.3.tgz", @@ -6635,6 +6694,50 @@ "mathjax-full": "^3.2.0" } }, + "markdown-it-pangu": { + "version": "1.0.2", + "resolved": "https://registry.npmmirror.com/markdown-it-pangu/-/markdown-it-pangu-1.0.2.tgz", + "integrity": "sha512-rssyYaMKXRLMpQIUgX01VE1KYOHhlnc4t5zGTI2zgXDpE88eQz8hywa0iSzoFm3eb5CYzFWazDKdUbnyZvW0SQ==", + "requires": { + "markdown-it": "^8.4.2", + "pangu": "^4.0.7" + }, + "dependencies": { + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmmirror.com/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "entities": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/entities/-/entities-1.1.2.tgz", + "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==" + }, + "linkify-it": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/linkify-it/-/linkify-it-2.2.0.tgz", + "integrity": "sha512-GnAl/knGn+i1U/wjBz3akz2stz+HrHLsxMwHQGofCDfPvlf+gDKN58UtfmUquTY4/MXeE2x7k19KQmeoZi94Iw==", + "requires": { + "uc.micro": "^1.0.1" + } + }, + "markdown-it": { + "version": "8.4.2", + "resolved": "https://registry.npmmirror.com/markdown-it/-/markdown-it-8.4.2.tgz", + "integrity": "sha512-GcRz3AWTqSUphY3vsUqQSFMbgR38a4Lh3GWlHRh/7MRwz8mcu9n2IO7HOh+bXHrR9kOPDl5RNCaEsrneb+xhHQ==", + "requires": { + "argparse": "^1.0.7", + "entities": "~1.1.1", + "linkify-it": "^2.0.0", + "mdurl": "^1.0.1", + "uc.micro": "^1.0.5" + } + } + } + }, "markdown-to-jsx": { "version": "7.2.1", "resolved": "https://registry.npmmirror.com/markdown-to-jsx/-/markdown-to-jsx-7.2.1.tgz", @@ -7025,6 +7128,11 @@ "resolved": "https://registry.npmmirror.com/object-assign/-/object-assign-4.1.1.tgz", "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==" }, + "pangu": { + "version": "4.0.7", + "resolved": "https://registry.npmmirror.com/pangu/-/pangu-4.0.7.tgz", + "integrity": "sha512-weZKJIwwy5gjt4STGVUH9bix3BGk7wZ2ahtIypwe3e/mllsrIZIvtfLx1dPX56GcpZFOCFKmeqI1qVuB9enRzA==" + }, "parse-srcset": { "version": "1.0.2", "resolved": "https://registry.npmmirror.com/parse-srcset/-/parse-srcset-1.0.2.tgz", @@ -7257,6 +7365,11 @@ } } }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmmirror.com/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + }, "style-mod": { "version": "4.0.3", "resolved": "https://registry.npmmirror.com/style-mod/-/style-mod-4.0.3.tgz", diff --git a/package.json b/package.json index 2460ce0..c996506 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "@jupyterlab/mathjax2": "^3.6.5", "@jupyterlab/theme-light-extension": "^4.0.3", "@vueuse/core": "^10.2.1", - "markdown-it": "^13.0.1" + "markdown-it": "^13.0.1", + "markdown-it-pangu": "^1.0.2" }, "devDependencies": { "@mermaid-js/mermaid-mindmap": "^9.3.0", From 5d9b9c2f4bd7b65c28fb5e47c72d947dce3dd02c Mon Sep 17 00:00:00 2001 From: camera-2018 <2907618001@qq.com> Date: Tue, 18 Jul 2023 01:25:12 +0800 Subject: [PATCH 03/11] fix: code font --- .vitepress/theme/style.css | 7 +++++++ contributors.md | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.vitepress/theme/style.css b/.vitepress/theme/style.css index a19b5e8..caca12b 100644 --- a/.vitepress/theme/style.css +++ b/.vitepress/theme/style.css @@ -26,6 +26,13 @@ --vp-font-family-mono: 'Noto Sans Mono', sans-serif, monospace, consolas; } +// 这个版本可能有 bug,build 后字体变不了还为 consolas 可能是我自己配的有问题 可能是这个版本拉了 总之就加个临时的 +code { + font-family: 'Noto Sans Mono', sans-serif, monospace, consolas !important; + font-weight: 400 !important; + font-size: 14px !important; +} + /** * Component: Button * -------------------------------------------------------------------------- */ diff --git a/contributors.md b/contributors.md index 6ddaffc..cd48d0f 100644 --- a/contributors.md +++ b/contributors.md @@ -1,5 +1,5 @@ From 7800960374a72c07a1452c91105924f6f3461090 Mon Sep 17 00:00:00 2001 From: camera-2018 <2907618001@qq.com> Date: Wed, 19 Jul 2023 00:13:24 +0800 Subject: [PATCH 04/11] feat: robots.txt --- public/robots.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 public/robots.txt diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..cd08314 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://hdu-cs.wiki/sitemap.xml \ No newline at end of file From 3440b61c638f0192b0aac70dcbdafbfd4c922eab Mon Sep 17 00:00:00 2001 From: camera-2018 <2907618001@qq.com> Date: Wed, 19 Jul 2023 02:01:51 +0800 Subject: [PATCH 05/11] =?UTF-8?q?feat:=20=E6=96=B0=E7=9A=84=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E7=BB=84=E4=BB=B6bili?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/theme/index.js | 2 ++ components/Bilibili.vue | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 components/Bilibili.vue diff --git a/.vitepress/theme/index.js b/.vitepress/theme/index.js index 9f551a4..7fb0389 100644 --- a/.vitepress/theme/index.js +++ b/.vitepress/theme/index.js @@ -3,6 +3,7 @@ import { h, watch } from 'vue' // import Theme from 'vitepress/theme' import DefaultTheme from 'vitepress/theme-without-fonts' import Download from '../../components/Download.vue' +import Bilibili from '../../components/Bilibili.vue' import './style.css' import './rainbow.css' @@ -18,6 +19,7 @@ export default { enhanceApp(ctx) { DefaultTheme.enhanceApp(ctx) ctx.app.component('Download', Download) + ctx.app.component('Bilibili', Bilibili) if (typeof window === 'undefined') return diff --git a/components/Bilibili.vue b/components/Bilibili.vue new file mode 100644 index 0000000..e9fa068 --- /dev/null +++ b/components/Bilibili.vue @@ -0,0 +1,25 @@ +