Skip to content
This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Commit a406495

Browse files
author
Francois-Xavier Gentilhomme
committed
[DEV] Update make doc
1 parent c8b0508 commit a406495

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ release.sh
2222
/bower_components/
2323
/docker/delivery/
2424
/doc/
25+
/docs/
2526
/node_modules/
2627
/gradle/
2728
/.gradle/

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ dev:
3434
@gulp serve --tag $(VERSION)
3535

3636
doc:
37+
@rm -rf docs && mkdir -p docs
38+
@sh gp-custom.sh
3739
@gulp doc

gp-custom.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash -e
2+
3+
src=${PWD}
4+
5+
cd docs >/dev/null
6+
echo "{
7+
\"directory\": \"components\"
8+
}
9+
" > .bowerrc
10+
bower install -q ${src}
11+
cp -r ${src}/bower_components/* components # FIXME hack to override installed deps and install dev ones
12+
13+
echo "<META http-equiv="refresh" content=\"0;URL=components/myscript/\">" >index.html
14+
cd - >/dev/null

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ var serveTask = function () {
9797
};
9898

9999
gulp.task('doc', function () {
100-
return docTask(fileList, 'dist/doc/');
100+
return docTask(fileList, 'docs/api');
101101
});
102102
gulp.task('clean', function () {
103103
return cleanTask(['.tmp', 'dist']);

0 commit comments

Comments
 (0)