1 获取element-plus文档项目
github:https://github.com/element-plus/element-plus/tree/gh-pages
- 方式一,通过 git 获取 git clone git@github.com:element-plus/element-plus.git
- git switch gh-pages
- 方式二,直接下载 gh-pages 分支的 ZIP 压缩包即可。
2 预览element-plus文档项目
安装 npm -g install static-server 包,然后使用 static-server -p 8888 -o 来启动。