# youhu-vuepress **Repository Path**: youhujun/youhu-vuepress ## Basic Information - **Project Name**: youhu-vuepress - **Description**: Quickly build vuepress documentation and blogs - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-19 - **Last Updated**: 2025-01-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 基于vuepress搭建的开发文档 [vuepress中文网](https://www.vuepress.cn/) 官网首次安装 ``` yarn add -D vuepress # npm install -D vuepress ``` # 介绍 极简快速的搭建一个自己的vuepress站点 # 安装 ``` yarn install ``` [github地址](https://github.com/youhujun/youhu-vuepress) [gitee镜像访问地址](https://gitee.com/youhujun/youhu-vuepress) [gitcode镜像访问地址](https://gitcode.com/youhujun/youhu-vuepress) --- ## 效果图: web端:  phone端:  ::: warning node > 8.0 ::: # 编写语法 ## 内部链接 文档结构 ``` . ├─ README.md ├─ foo │ ├─ README.md │ ├─ one.md │ └─ two.md └─ bar ├─ README.md ├─ three.md └─ four.md ``` 假设你现在在 foo/one.md 中: ``` [Home](/) [foo](/foo/) [foo heading](./#heading) [bar - three](../bar/three.md) [bar - four](../bar/four.html) ``` 链接的重定向 VuePress 支持重定向到干净链接。如果一个链接 /foo 找不到,VuePress 会自行寻找一个可用的 /foo/ 或 /foo.html。反过来,当 /foo/ 或 /foo.html 中的一个找不到时,VuePress 也会尝试寻找另一个 ## Front Matter VuePress 提供了对 YAML front matter (opens new window) 开箱即用的支持: ``` --- title: Blogging Like a Hacker lang: en-US --- ``` ## GitHub 风格的表格 输入 ``` | Tables | Are | Cool | | ------------- | :-----------: | ----: | | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat | $1 | ``` 输出 --- | Tables | Are | Cool | | ------------- | :-----------: | ----: | | col 3 is | right-aligned | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat | $1 | ## Emoji 输入 ``` :tada: :100: ``` 输出 :tada: :100: ## 目录 输入 ``` [[toc]] ``` 输出 [[toc]] 自定义容器 输入 ``` ::: tip 这是一个提示 ::: ::: warning 这是一个警告 ::: ::: danger 这是一个危险警告 ::: ::: details 这是一个详情块,在 IE / Edge 中不生效 ::: ``` 输出 ::: tip 提示 这是一个提示 ::: ::: warning 警告 这是一个警告 ::: ::: danger 危险 这是一个危险警告 ::: ::: details 详情 这是一个详情块,在 IE / Edge 中不生效 ::: ## 代码块中的语法高亮 VuePress 使用了 Prism (opens new window) 来为 markdown 中的代码块实现语法高亮。Prism 支持大量的编程语言,你需要做的只是在代码块的开始倒勾中附加一个有效的语言别名: 输入 ``` ``` js export default { name: 'MyComponent', // ... } ``` ``` 输出 ``` js export default { name: 'MyComponent', // ... } ``` 输入 ``` ``` html