Updating automated documentation

Documentation links

Note that for now the index.html nwjs starter page is left out of the automatically generated docs.

Updating documentation with Docco

Using doccoarrow-up-right for documentation inspired by thisarrow-up-right blog post. In conjunction with json doc.

install docco globally

npm install docco -g

to re-generate documentation run from root of app

npm run docco

this puts documentation in /docs/docco_docs folder.

Docco config

The setup for this is done in package.json scripts where the folders/files to consider for documentations and destination folder(-o) are specified.

"docco": "docco -o ./docs/docco_docs --title 'autoEdit 2 Documentation' ./*.js ./frontEnd/*.js ./frontEnd/date_now/*.js ./frontEnd/edl_composer/*.js ./frontEnd/srt/*.js ./frontEnd/js/*.js ./frontEnd/js/models/*.js ./frontEnd/js/views/*.js ./frontEnd/js/collections/*.js ./interactive_transcription_generator/*.js ./interactive_transcription_generator/**/*.js",

Updating documentation with JSDoc

see here for jsodc tags to usearrow-up-right when writing code comments.

To get up and running with updating the documentation install jsdoc locally

Edit config file as explain in blog postarrow-up-right{:target="_blank"}

This is because you need to edit the config file in the module at ./node_modules/jsdoc/config.json. And this part of the information is at usejsdoc.orgarrow-up-right.

to re-generate documentation run from root of app

Jsdoc config

This executes the script in package.json, and places the documentation inside of /docs/jsdoc_docs.

See /docs/jdocs_conf/conf.json for the config options,that specify which files to include, exclude etc..

Updating developer's tutorial

To add or update a tutorial in the developer documentation tutorials, go to /docs/_posts/tutorial where you can find the markdown files.

Jsdoc allows to link to tutorialarrow-up-right in documentation. In this project this is used for topics that might deserve a standalone explanation such as the one on the EDL formatarrow-up-right.

Last updated