@@ -5,10 +5,16 @@ This generator use Grunt, AngularJS, RequireJS and jQuery.
5
5
6
6
## How to add it !
7
7
8
- Add it as a submodule of your module .
8
+ Add it as a bower component .
9
9
10
10
``` sh
11
- git submodule add git://github.com/angular-ui/angular-ui-docs.git out
11
+ bower install git://github.com/angular-ui/angular-ui-docs.git
12
+ ```
13
+ or add to your ` bower.json `
14
+ ``` Javascript
15
+ " devDependencies" : {
16
+ " angular-ui-docs" : " angular-ui/angular-ui-docs"
17
+ }
12
18
```
13
19
14
20
** It's working with ssh deploy key !**
25
31
26
32
Then add the scripts and limit the build-able branches.
27
33
28
- ```
34
+ ``` yaml
29
35
before_script : out/.travis/before_script.sh
30
36
after_success : out/.travis/after_success.sh
31
37
branches :
@@ -75,3 +81,23 @@ This will generate `index.html` using :
75
81
- the `meta.view.humaName` as title of the demo site,
76
82
- the `meta.view.repoName` in the github links,
77
83
84
+
85
+ # # See it working locally !
86
+ Actually the demo must be built !
87
+ We are using _bower_ and _grunt_ for this.
88
+
89
+ First in you UI project run
90
+ ` ` ` sh
91
+ npm install && bower install
92
+ grunt build-doc
93
+ ` ` `
94
+
95
+ Then run a localhost on `bower_components/angular-ui-docs`
96
+ ` ` ` sh
97
+ cd bower_components/angular-ui-docs
98
+ python -m SimpleHTTPServer
99
+ or
100
+ php -S localhost:8000
101
+ ` ` `
102
+
103
+ and you'll have the generated website on http://localhost:8000/
0 commit comments