Skip to content

Commit d647188

Browse files
committed
[docs] fix auto regenerating docs
1 parent 55252da commit d647188

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

bin/commands/scripts/docs.sh

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ if [ -z "$1" ]
1010
then
1111
usage ;
1212
elif [ "$1" = "generate" ]; then
13+
echo "<html><head><meta http-equiv='Refresh' content='0; url=./api/index.html'/><script type='javascript'>window.location = './api/index,html';</script></head></html>" > "$DIR/../../../frontend/express/public/docs/index.html"
1314
"$DIR/../../../node_modules/.bin/jsdoc" "$DIR/../../../frontend/express/public/javascripts/countly" -R "$DIR/../../../frontend/express/public/javascripts/pre-login.js" -R "$DIR/../../../README.md" -c "$DIR/../../../jsdoc_conf.json" -d "$DIR/../../../frontend/express/public/docs/browser" ;
1415
"$DIR/../../../node_modules/.bin/jsdoc" "$DIR/../../../api" -R "$DIR/../../../README.md" -c "$DIR/../../../jsdoc_conf.json" -d "$DIR/../../../frontend/express/public/docs/api" ;
1516
"$DIR/../../../node_modules/.bin/jsdoc" "$DIR/../../../frontend/express/app.js" "$DIR/../../../frontend/express/config.sample.js" "$DIR/../../../frontend/express/version.info.js" "$DIR/../../../frontend/express/locale.conf.js" "$DIR/../../../frontend/express/libs/" -R "$DIR/../../../README.md" -c "$DIR/../../../jsdoc_conf.json" -d "$DIR/../../../frontend/express/public/docs/app" ;

jsdoc_conf.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
"disqus": "",
3434
"menu":{
3535
"App Server":{
36-
"href":"/docs/app/index.html"
36+
"href":"../app/index.html"
3737
},
3838
"API Server":{
39-
"href":"/docs/api/index.html"
39+
"href":"../api/index.html"
4040
},
4141
"Browser side":{
42-
"href":"/docs/browser/index.html"
42+
"href":"../browser/index.html"
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)