Vue3 相關(guān) element-plus離線文檔私有化搭建

1 獲取element-plus文檔項(xiàng)目
Vue2 相關(guān) element-ui 文檔的 git 地址:
https://github.com/ElemeFE/element/tree/gh-pages
Vue3 相關(guān) element-plus 文檔的 git 地址:
https://github.com/element-plus/element-plus/tree/gh-pages
演示 Vue3 為主:
方式一,通過 git 獲取,這樣方便 git pull 最新的代碼,缺點(diǎn)就是整個(gè)項(xiàng)目有點(diǎn)大,就算科學(xué)上網(wǎng)第一次拉取也有點(diǎn)慢,耐心。
git clone git@github.com:element-plus/element-plus.git
git switch gh-pages
方式二,直接下載 gh-pages 分支的 ZIP 壓縮包即可。
2 預(yù)覽element-plus文檔項(xiàng)目
預(yù)覽只需要一個(gè)靜態(tài)文件服務(wù)器即可。
方式一:Live Server 啟動。
方式二,安裝 npm -g install static-server 包,然后使用 static-server -p 8080 -o 來啟動。
更【推薦】方式二。
標(biāo)簽: