From 4998f3e19ce13d71d9cbd05f483a30c4b90b7296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=80=A9=E5=80=A9?= <2595352832@qq.com> Date: Wed, 15 May 2024 23:11:11 +0800 Subject: [PATCH] 20240514 --- ...37\346\210\220\347\275\221\347\253\231.md" | 58 +++++++++++++++++++ README.en.md | 36 ------------ README.md | 39 ------------- 3 files changed, 58 insertions(+), 75 deletions(-) create mode 100644 "26\345\210\230\345\200\251\345\200\251/20240514_\345\260\206markdown\346\226\207\346\241\243\347\224\237\346\210\220\347\275\221\347\253\231.md" delete mode 100644 README.en.md delete mode 100644 README.md diff --git "a/26\345\210\230\345\200\251\345\200\251/20240514_\345\260\206markdown\346\226\207\346\241\243\347\224\237\346\210\220\347\275\221\347\253\231.md" "b/26\345\210\230\345\200\251\345\200\251/20240514_\345\260\206markdown\346\226\207\346\241\243\347\224\237\346\210\220\347\275\221\347\253\231.md" new file mode 100644 index 0000000..6aca6aa --- /dev/null +++ "b/26\345\210\230\345\200\251\345\200\251/20240514_\345\260\206markdown\346\226\207\346\241\243\347\224\237\346\210\220\347\275\221\347\253\231.md" @@ -0,0 +1,58 @@ +1. 创建一个文件夹,用VSCode打开 + +2. 打开终端(Ctrl+`) + +3. 利用命令,安装vitepress(将md文件生成静态html文档的工具,markdownpro也可以) + + - npm add -D vitepress + +4. 启用vitepress + + - npx vitepress init + +5. 修改网站标题,描述,其他回车 + + - Site title:实施运维笔记 + - Site description:刘倩倩 + +6. 预览本地生成的效果 + + - npm run docs:dev + +7. 修改 + + - 首页的连接:修改index.md + - 右上角的导航,左侧导航:修改config + +8. 在docs的子目录下,创建对应分类的文件夹 + + - 之后,将笔记复制到对应的文件夹里 + +9. 可以利用cmd里的 tree /F 就能得到笔记的文件名 + +10. 将文件名,和路径套入config里的sidebar中 + + ```js + text: '计算机基础', + items: [ + { text: '20240303_电脑基础知识', link: '/computer/20240303_电脑基础知识' }, + { text: '20240309_使用小技巧', link: '/computer/20240309_使用小技巧' }, + { text: '20240309_注册表&组策略', link: '/computer/20240309_注册表&组策略' }, + { text: '20240313_文件资源管理器', link: '/computer/20240313_文件资源管理器' }, + { text: '20240322_安装', link: '/computer/20240322_安装' }, + { text: '20240323_磁盘分区', link: '/computer/20240323_磁盘分区' }, + { text: '20240327_重装系统步骤', link: '/computer/20240327_重装系统步骤' } + ] + ``` + +11. 将笔记放在统一的子目录中访问 + + - 在config中加入: 'base':'/books/', + +12. 将md文件生成html到\docs\.vitepress\dist 目录 + + - npm run docs:build + +13. 登录自己的服务器,使用SSH工具,将dist上传到自己网站的目录 + +14. mv dist books // 将dist改名为books \ No newline at end of file diff --git a/README.en.md b/README.en.md deleted file mode 100644 index 7ecb642..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# Linux基础 - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index cda094f..0000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# Linux基础 - -#### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) -- Gitee