Comcast / Surf-N-Perf

Micro-library for gathering web page performance data

Home Page:http://comcast.github.io/Surf-N-Perf/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate JSDoc Documentation

JohnRiv opened this issue · comments

Fully comment the code using JSDoc syntax and publish the generated documentation to http://comcast.github.io/Surf-N-Perf/

I'd like to publish it similar to how Polymer does:
Example Source: https://github.com/Polymer/core-ajax/blob/master/core-ajax.html
Example Output: https://www.polymer-project.org/docs/elements/core-elements.html#core-ajax

I haven't looked at how they're doing that yet.

Note that I originally planned to use NDoc syntax and only commented some of the code, so the existing comments will have to be modified appropriately.

I'm reviewing Pull Request #36 which addresses this. Hope to have my proposed changes to that available today. Pull Request #37 will need to be merged in before that as well since that details with the gh-pages branch

OK I finally figured out what we need to modify in #36 to get this ready to merge. Here's the rundown:

{
  destination: './_build/docs',
  configure: './jsdoc-conf.json',
  template: './node_modules/jaguarjs-jsdoc',
  private: false
}
$ npm install jaguarjs-jsdoc --save-dev
$ npm install grunt-jsdoc --save-dev
  • ^ that should add a couple lines to your package.json's list of devDependencies

Before submitting the pull request, run these commands to make sure the documentation generates:

$ grunt jsdoc
$ open _build/docs/index.html

That should open up a webpage with documentation for Surf-N-Perf

You should now have a much smaller Pull Request, containing only edits to:

  • .gitignore
  • .travis.yml
  • Gruntfile.js
  • deploy.sh [new file]
  • jsdoc-conf.json [new file]
  • package.json

If that's the case, send it over! ;-)

Pull Request #44 took care of this