Skip to content

Commit

Permalink
Remove apidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ar2rsawseen committed Dec 18, 2024
1 parent d40435e commit 04b36f5
Show file tree
Hide file tree
Showing 4 changed files with 805 additions and 2,655 deletions.
2 changes: 2 additions & 0 deletions bin/commands/scripts/apidocs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ then
elif [ "$1" = "generate" ]; then
echo 'yes'
echo "$DIR/../../../../plugins/"
npm install apidoc;
npm install apidoc-template;
"$DIR/../../../node_modules/.bin/apidoc" -c "$DIR/../../../apidoc.json" -f "api/.*\\.js$" -i "$DIR/../../../plugins/" -o "$DIR/../../../frontend/express/public/apidoc/" -t "$DIR/../../../node_modules/apidoc-template/template/";
fi
2 changes: 1 addition & 1 deletion bin/commands/scripts/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ elif [ "$1" = "generate" ]; then
npx 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" ;

#apidoc
npx apidoc -i "$DIR/../../../" -o "$DIR/../../../frontend/express/public/docs/apidoc" -f ".*\\.js$" -e "node_modules" ;
npm install apidoc; npm install apidoc-template; npx apidoc -i "$DIR/../../../" -o "$DIR/../../../frontend/express/public/docs/apidoc" -f ".*\\.js$" -e "node_modules" ;

#add redirect for main folder
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"
Expand Down
Loading

0 comments on commit 04b36f5

Please sign in to comment.