Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 886 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 886 Bytes

为FaShop撰写文档的环境准备

首先得有 node,并确保 node 版本是 8.10 或以上。(mac 下推荐使用 nvm 来管理 node 版本)

node -v
8.1x

安装VuePress

如果没有装yarn,请通过搜索引擎 "yarn如何安装"

# 安装
yarn global add vuepress # 或者:npm install -g vuepress

# 将 VuePress 作为一个本地依赖安装
yarn add -D vuepress # 或者:npm install -D vuepress

写作

yarn docs:dev # 或者:npm run docs:dev

要生成静态的 HTML 文件,运行:

yarn docs:build # 或者:npm run docs:build

# 查看编译好的网站
serve -s website

图片使用

文档里的图片请使用相对路径,引入的时候如:./images/xxx.png,为了规范,请至少创建一层文件夹images