overte-AleziaKurdis/tools/jsdoc
2019-12-23 14:12:50 +13:00
..
hifi-jsdoc-template Fix @hideconstructor JSDoc tag hiding classes' properties 2019-12-23 14:12:50 +13:00
out Add README.md file to tools/jsdoc/out directory to prevent jsdoc generation failures during build 2019-02-19 10:36:35 -08:00
plugins Fix some JSDoc typos noticed in passing 2019-12-10 13:34:32 +13:00
.gitignore Add README.md file to tools/jsdoc/out directory to prevent jsdoc generation failures during build 2019-02-19 10:36:35 -08:00
api-mainpage.md Review of api main page 2019-03-22 10:33:47 -07:00
CMakeLists.txt added root.js to cmake build 2018-05-29 15:39:04 -07:00
config.json Fix build error for template changes 2019-04-04 15:08:39 -07:00
gravPrep.js JSDoc > Grav directory change 2019-01-11 14:38:20 -08:00
package.json Update jsdoc to avoid breakage with recent node 2019-06-18 16:26:30 +02:00
README.md Fix build error for template changes 2019-04-04 15:08:39 -07:00
root.js Moved jsdoc folder from scripts to tools directory 2016-11-10 09:33:56 -08:00

#JavaScript Documentation Generation

##Prerequisites

  • Install node.js.
  • Install jsdoc via npm. npm install jsdoc -g

If you would like the extra functionality for gravPrep:

  • Run npm install

To generate html documentation for the High Fidelity JavaScript API:

  • cd tools/jsdoc
  • jsdoc root.js -r api-mainpage.md -c config.json

The out folder should contain index.html.

If you get a "JavaScript heap out of memory" error when running the jsdoc command you need to increase the amount of memory available to it. For example, to increase the memory available to 2GB on Windows:

  • where jsdoc to find the jsdoc.cmd file.
  • Edit the jsdoc.cmd file to add --max-old-space-size=2048 after the node and/or node.exe commands.

Reference: https://medium.com/@vuongtran/how-to-solve-process-out-of-memory-in-node-js-5f0de8f8464c

To generate the grav automation files, run node gravPrep.js after you have made a JSdoc output folder.

This will create files that are needed for hifi-grav and hifi-grav-content repos

The md files for hifi-grav-content are located in out/grav/06.api-reference.

The template twig html files for hifi-grav are located out/grav/templates.

if you would like to copy these to a local version of the docs on your system you can run with the follows args:

  • node grav true "path/to/grav/" "path/to/grav/content"