-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
##### 操作步骤 | ||
1.创建并进入一个新目录 | ||
mkdir vuepress-starter && cd vuepress-starter | ||
2.初始化项目 | ||
yarn init # npm init | ||
3.安装[vuepress2.x](https://www.vuepress.cn) 依赖包 | ||
yarn add -D vuepress # npm install vuepress@next -D | ||
4.新建一个READ.ME | ||
mkdir docs && echo '# Hello VuePress' > docs/README.md | ||
5.在 package.json 中添加一些 scripts | ||
{ | ||
scripts: { | ||
docs:dev: vuepress dev docs, //开发环境使用 | ||
docs:build: vuepress build docs // 正式环境使用 | ||
} | ||
} | ||
6.开发环境运行 | ||
yarn docs:dev # npm run docs:dev | ||
|
||
VuePress 会在 http://localhost:8080 (opens new window) 启动一个热重载的开发服务器 | ||
7.正式环境 | ||
yarn docs:build # npm run docs:build | ||
|
||
这会在docs/.vuepress/dist生成 dist打包文件,这个dist文件我部署在:pages.github | ||
|
||
这个是最终的效果:[指尖上的记忆](https://gspgsp.github.io/) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const t=JSON.parse('{"key":"v-3706649a","path":"/404.html","title":"","lang":"en-US","frontmatter":{"layout":"404"},"excerpt":"","headers":[],"git":{},"filePathRelative":null}');export{t as data}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import{_ as e,o as _,c}from"./app.295cacc7.js";const r={};function t(o,a){return _(),c("div")}var s=e(r,[["render",t],["__file","404.html.vue"]]);export{s as default}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.