-
Notifications
You must be signed in to change notification settings - Fork 266
Auto-generate JS doc #1471
Comments
|
I've had some minor success with https://github.com/documentationjs/documentation. The main downside is that it only generates API docs for things with JSDoc comments. That means that we have to manually add comments to every single exported function/class and every single method 😿 |
Some status updates. I've landed some upstream changes at https://github.com/documentationjs/documentation. The big remaining task is to generate documentation for all exported functions/classes/vars. |
Once repo became public godoc works - https://godoc.org/github.com/attic-labs/noms. We still have work to do in order to make the content better - and of course we need a JS equivalent. |
I don't think we need a bug for "make content better" . That can just be On Wed, Aug 3, 2016 at 6:30 PM, Mike Gray [email protected] wrote:
|
Some update on the JS front. I've been contributing to documentation.js and there is one important feature missing. I have a PR for that: documentationjs/documentation#490. With that done we have "a complete" documentation. We then need to setup a build that generates the HTML and deploy that somewhere. After that I think we need to tweak the generated HTML quite a bit. |
The documentation.js tool is "good enough" to move on. For deployment I could set up another ec2 instance or maybe we should just store these in s3 (since these are just static files). @cmasone-attic @zcstarr @mikegray What do you think? |
Probably makes sense to take advantage of AWS CloudFront in front of S3 to serve these if they are all static. |
agreed |
agreed as well , I think @mike is right s3 + aws cloudfront for smooth sailing and low maintence |
Turns out that documentationjs reads the babelrc file from js/noms which leads to us having to do npm install in js/noms. Therefore putting the dev deps in there and running the script from there makes things cleaner. It also allows doing: npm run build-docs Towards attic-labs#1471
Turns out that documentationjs reads the babelrc file from js/noms which leads to us having to do npm install in js/noms. Therefore putting the dev deps in there and running the script from there makes things cleaner. It also allows doing: npm run build-docs Towards #1471
This picks up my commits to discover all exported bindings as well as sorting the docs alphabetically. Towards attic-labs#1471
This picks up my commits to discover all exported bindings as well as sorting the docs alphabetically. Towards #1471
We now automatically deploy to https://docs.noms.io/js/ I'm closing this. Lets open more specific bugs for things that needs to be improved. |
So much awesome! |
In Go, we get Godoc for free. In JavaScript/Node I'm sure there are tools for this -- probably tons of them, all slightly broken and different.
The text was updated successfully, but these errors were encountered: