diff options
Diffstat (limited to 'tools/bin/jsdoc')
-rwxr-xr-x | tools/bin/jsdoc | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/bin/jsdoc b/tools/bin/jsdoc new file mode 100755 index 0000000..b355716 --- /dev/null +++ b/tools/bin/jsdoc @@ -0,0 +1,22 @@ +#!/bin/bash + +script_path=`dirname $0` +repo_root="${script_path}/../.." +jsdoc_home="${script_path}/../jsdoc-toolkit" +jsrun_jar="${jsdoc_home}/jsrun.jar" +runjs="${jsdoc_home}/app/run.js" + +template="${jsdoc_home}/templates/fiveui" + +target="${repo_root}/build/jsdoc" + +pandoc ${template}/static/preludeIntro.md -o ${template}/static/preludeIntro.html +pandoc ${template}/static/preludeIntro.md \ + -o ${template}/static/preludeIntro.css \ + --highlight-style=kate \ + --template=${script_path}/jsdoc.css + +java -jar ${jsrun_jar} ${runjs} -a --template="${template}" -d="${target}" $@ + +# copy the some of the content of the 'static' template directory into the destination: +cp -rv ${template}/static/images/ "${target}/images" |