Commit | Line | Data |
---|---|---|
cf180220 DV |
1 | #!/bin/bash |
2 | # | |
3 | # Generates JSDoc in the /jsdoc dir. Clears any existing jsdoc there. | |
4 | ||
5 | rm -rf jsdoc | |
c39e1d93 | 6 | echo Generating JSDoc... |
cf180220 DV |
7 | java -jar jsdoc-toolkit/jsrun.jar \ |
8 | jsdoc-toolkit/app/run.js \ | |
c39e1d93 | 9 | -d=jsdoc -t=jsdoc-toolkit/templates/jsdoc \ |
3234efcf DV |
10 | dygraph.js \ |
11 | | tee /tmp/dygraphs-jsdocerrors.txt | |
c39e1d93 | 12 | |
3234efcf | 13 | if [ -s /tmp/dygraphs-jsdocerrors.txt ]; then |
c39e1d93 DV |
14 | echo Please fix any jsdoc errors/warnings before sending patches. |
15 | fi | |
16 | ||
4d3672ff DV |
17 | chmod -R a+rX jsdoc |
18 | ||
c39e1d93 | 19 | echo Done |