File tree Expand file tree Collapse file tree 2 files changed +20
-13
lines changed Expand file tree Collapse file tree 2 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ module.exports = {
13
13
contentsFolder = config . get ( 'rendering.contentsFolder' ) ;
14
14
} ,
15
15
process : function ( docs ) {
16
+ docs . push ( {
17
+ docType : 'index-page' ,
18
+ id : 'index-page' ,
19
+ currentVersion : currentVersion ,
20
+ template : 'index.template.html' ,
21
+ outputPath : contentsFolder + '/api/index.md'
22
+ } ) ;
16
23
docs . push ( {
17
24
docType : 'index-page' ,
18
25
id : 'index-page' ,
Original file line number Diff line number Diff line change @@ -53,23 +53,23 @@ function docs {
53
53
echo " #####################################"
54
54
echo " ## Updating docs for $VERSION_NAME ##"
55
55
echo " #####################################"
56
- # cd $PROJECT_DIR
57
- # gulp docs
56
+ cd $PROJECT_DIR
57
+ gulp docs --doc-version= " $VERSION_NAME "
58
58
59
- # cd $IONIC_SITE_DIR
59
+ cd $IONIC_SITE_DIR
60
60
61
- # CHANGES=$(git status --porcelain)
61
+ CHANGES=$( git status --porcelain)
62
62
63
- # # if no changes, don't commit
64
- # if [[ "$CHANGES" == "" ]]; then
65
- # echo "-- No changes detected in docs for $VERSION_NAME; docs not updated."
66
- # else
67
- # git add -A
68
- # git commit -am "docs: update for $VERSION_NAME"
69
- # git push -q origin gh-pages
63
+ # if no changes, don't commit
64
+ if [[ " $CHANGES " == " " ]]; then
65
+ echo " -- No changes detected in docs for $VERSION_NAME ; docs not updated."
66
+ else
67
+ git add -A
68
+ git commit -am " docs: update for $VERSION_NAME "
69
+ git push -q origin gh-pages
70
70
71
- # echo "-- Updated docs for $VERSION_NAME succesfully!"
72
- # fi
71
+ echo " -- Updated docs for $VERSION_NAME succesfully!"
72
+ fi
73
73
}
74
74
75
75
source $( dirname $0 ) /../utils.inc
You can’t perform that action at this time.
0 commit comments