如何在本地运行angularjs材料文档 [英] How to run angularjs material documentation locally
问题描述
我编译了最新的 angularjs资料,并找出文档中的所有链接都指向绝对URL material.angularjs.org / .... 我希望能够阅读本地文档和演示内容。
b$ b
-
安装
git
,Node v6.10.3
Git
https://git-for-windows.github.io/
节点v6.10.3
https://nodejs.org/en/blog/release/v6.10.3/
-
安装依赖项
npm
,glub
和http-server
(使用cmd或
PowerShell)
npm Insatall npm install npm@3.10 .10
gulp Insatall
npm install --global gulp-cli
http-server Insatall
npm install http-server -g
-
克隆角材料库:
git clone https://github.com/angular/material.git -
建立存储库:
cd材料
npm install code>
-
构建文档:
gulp build ;
gulp文档;
gulp手表--dev
code
$ $ c $ http-server
<然后,只需转到 http://192.168.42.130:8080 或 http://127.0.0.1:8080
*特别感谢 Prerak索拉
I have compiled the newest angularjs material and find out that links in the doc all point to absolute URL material.angularjs.org/.... I want to be able to read the doc and demo content locally.
Follow these steps (for Windows users):
Install
git
,Node v6.10.3
Git
https://git-for-windows.github.io/
Node v6.10.3
https://nodejs.org/en/blog/release/v6.10.3/
Install dependencies
npm
,glub
andhttp-server
(use cmd or PowerShell)npm Insatall
npm install npm@3.10.10
gulp Insatall
npm install --global gulp-cli
http-server Insatall
npm install http-server -g
Clone the angular-material repository:
git clone https://github.com/angular/material.git
Build the repository:
cd material
npm install
Build the docs:
gulp build;
gulp docs;
gulp watch --dev
run the docs:
cd dist/docs;
http-server
Then simply go to http://192.168.42.130:8080 or http://127.0.0.1:8080
*Special thanks for Prerak Sola
这篇关于如何在本地运行angularjs材料文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!