From 02c699d2f8bd37e38331cce8fe1eb1fe78143b5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=96=E9=BC=8E=E6=96=87?= <12433879+lai-dingwen@user.noreply.gitee.com> Date: Wed, 15 May 2024 03:06:19 +0000 Subject: [PATCH 1/5] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\347\254\224\350\256\260/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "\347\254\224\350\256\260/.keep" diff --git "a/\347\254\224\350\256\260/.keep" "b/\347\254\224\350\256\260/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3472f4521739525fc1870fbd97029e5f05421139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=96=E9=BC=8E=E6=96=87?= <12433879+lai-dingwen@user.noreply.gitee.com> Date: Wed, 15 May 2024 03:07:10 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赖鼎文 <12433879+lai-dingwen@user.noreply.gitee.com> --- ...37\346\210\220\347\275\221\347\253\231.md" | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 "\347\254\224\350\256\260/\345\246\202\344\275\225\345\210\251\347\224\250\350\207\252\345\267\261\345\206\231\345\245\275\347\232\204markdown\346\226\207\346\241\243\357\274\214\347\224\237\346\210\220\347\275\221\347\253\231.md" diff --git "a/\347\254\224\350\256\260/\345\246\202\344\275\225\345\210\251\347\224\250\350\207\252\345\267\261\345\206\231\345\245\275\347\232\204markdown\346\226\207\346\241\243\357\274\214\347\224\237\346\210\220\347\275\221\347\253\231.md" "b/\347\254\224\350\256\260/\345\246\202\344\275\225\345\210\251\347\224\250\350\207\252\345\267\261\345\206\231\345\245\275\347\232\204markdown\346\226\207\346\241\243\357\274\214\347\224\237\346\210\220\347\275\221\347\253\231.md" new file mode 100644 index 0000000..84025e1 --- /dev/null +++ "b/\347\254\224\350\256\260/\345\246\202\344\275\225\345\210\251\347\224\250\350\207\252\345\267\261\345\206\231\345\245\275\347\232\204markdown\346\226\207\346\241\243\357\274\214\347\224\237\346\210\220\347\275\221\347\253\231.md" @@ -0,0 +1,80 @@ +# 如何利用自己写好的markdown文档,生成网站 + +准备工作: + +1. 有md格式文档,(你们的笔记) +2. 需要一些可以用md文件生成静态html文档的工具,vitepress,或markdownpro + + + +以用vitepress为例: + +1. 在D盘用vs code打开 + +2. 查看打开终端 + +3. PS D:\> mkdir books //生成 books目录 + +4. PS D:\> cd ./books //进入books目录 + +5. https://vitepress.dev/zh/guide/getting-started 利用vitepress工具,来构建 + +6. npm add -D vitepress // 利用node来安装vitepress + +7. npx vitepress init // 启用vitepress的设置向导 + + 1. ```js + Welcome to VitePress! + │ + ◇ Where should VitePress initialize the config? + │ ./docs + │ + ◇ Site title: + │ 我的笔记我作主 + │ + ◇ Site description: + │ 这是一个用markdown生成的笔记网站 + │ + ◇ Theme: + │ Default Theme + │ + ◇ Use TypeScript for config and theme files? + │ Yes + │ + ◇ Add VitePress npm scripts to package.json? + │ Yes + │ + └ Done! Now run npm run docs:dev and start writing. + ``` + + + +8. npm run docs:dev // 本地预览生成的效果 + +9. 修改index.md可以修改首页的连接 + +10. 修改config可以修改右上角的导航,和左侧的导航 + +11. 将笔记的文档复制到docs目录下的对应子目录 + +12. 利用cmd的tree /F 命令得到所有笔记的文件名,再将 + + 1. ```js + items: [ + { text: 'Markdown Examples', link: '/markdown-examples' }, + { text: 'Runtime API Examples', link: '/api-examples' } + ] + 这种要配置的格式扔给AI,让它整合文件名到这种格式 + ``` + + + +13. 如果你要将笔记放在一个统一的子目录中访问,用在配置文件config中加入一行 + + 'base':'/books/', + +14. npm run docs:build // 将md文件生成html到\docs\.vitepress\dist 目录 + +15. 登录自己的服务器,使用SSH工具,将dist上传到自己网站的目录 + +16. mv dist books // 将dist改名为books \ No newline at end of file -- Gitee From f5b996b1cfe446ae003b05789e5c22c354b99c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=96=E9=BC=8E=E6=96=87?= <12433879+lai-dingwen@user.noreply.gitee.com> Date: Fri, 17 May 2024 14:12:08 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 赖鼎文 <12433879+lai-dingwen@user.noreply.gitee.com> --- "\347\254\224\350\256\260/20240516.md" | 1 + 1 file changed, 1 insertion(+) create mode 100644 "\347\254\224\350\256\260/20240516.md" diff --git "a/\347\254\224\350\256\260/20240516.md" "b/\347\254\224\350\256\260/20240516.md" new file mode 100644 index 0000000..9322297 --- /dev/null +++ "b/\347\254\224\350\256\260/20240516.md" @@ -0,0 +1 @@ +Linux® 是一个[开源的操作系统(OS)](https://www.redhat.com/zh/topics/linux/what-is-linux)。它由 Linus Torvalds [于 1991 年](https://groups.google.com/forum/#!msg/comp.os.minix/dlNtH7RRrGA/SwRavCzVE7gJ)构思设计而成,最初这只是他的一项兴趣爱好。当时还在读大学的 Linus 想要基于 Unix 的原则和设计来创建一个免费的[开源](https://www.redhat.com/zh/topics/open-source/what-is-open-source)系统,从而代替 MINIX 操作系统。自此,这项兴趣爱好便逐步演变成了拥有最大用户群的操作系统。如今,它不仅是[公共互联网服务器](https://en.wikipedia.org/wiki/Usage_share_of_operating_systems#Public_servers_on_the_Internet)上最常用的操作系统,还是[速度排名前 500 的超级电脑](http://www.zdnet.com/article/linux-totally-dominates-supercomputers/)上使用的唯一一款操作系统。 \ No newline at end of file -- Gitee From f88499efeda251ab82ba1f5c5fe52c04159a4cdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=96=E9=BC=8E=E6=96=87?= <12433879+lai-dingwen@user.noreply.gitee.com> Date: Fri, 17 May 2024 14:12:27 +0000 Subject: [PATCH 4/5] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=20=E7=AC=94?= =?UTF-8?q?=E8=AE=B0/=E5=A6=82=E4=BD=95=E5=88=A9=E7=94=A8=E8=87=AA?= =?UTF-8?q?=E5=B7=B1=E5=86=99=E5=A5=BD=E7=9A=84markdown=E6=96=87=E6=A1=A3?= =?UTF-8?q?=EF=BC=8C=E7=94=9F=E6=88=90=E7=BD=91=E7=AB=99.md=20=E4=B8=BA=20?= =?UTF-8?q?=E7=AC=94=E8=AE=B0/20240515.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20240515.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\347\254\224\350\256\260/\345\246\202\344\275\225\345\210\251\347\224\250\350\207\252\345\267\261\345\206\231\345\245\275\347\232\204markdown\346\226\207\346\241\243\357\274\214\347\224\237\346\210\220\347\275\221\347\253\231.md" => "\347\254\224\350\256\260/20240515.md" (100%) diff --git "a/\347\254\224\350\256\260/\345\246\202\344\275\225\345\210\251\347\224\250\350\207\252\345\267\261\345\206\231\345\245\275\347\232\204markdown\346\226\207\346\241\243\357\274\214\347\224\237\346\210\220\347\275\221\347\253\231.md" "b/\347\254\224\350\256\260/20240515.md" similarity index 100% rename from "\347\254\224\350\256\260/\345\246\202\344\275\225\345\210\251\347\224\250\350\207\252\345\267\261\345\206\231\345\245\275\347\232\204markdown\346\226\207\346\241\243\357\274\214\347\224\237\346\210\220\347\275\221\347\253\231.md" rename to "\347\254\224\350\256\260/20240515.md" -- Gitee From 3c97c37b0b267b64749cff60bb7404b475c8a10c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=96=E9=BC=8E=E6=96=87?= <12433879+lai-dingwen@user.noreply.gitee.com> Date: Fri, 17 May 2024 14:12:34 +0000 Subject: [PATCH 5/5] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20?= =?UTF-8?q?=E7=AC=94=E8=AE=B0/.keep?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "\347\254\224\350\256\260/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 "\347\254\224\350\256\260/.keep" diff --git "a/\347\254\224\350\256\260/.keep" "b/\347\254\224\350\256\260/.keep" deleted file mode 100644 index e69de29..0000000 -- Gitee