-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add yuidoc blocks to pager-control.js, see #223 #633
Add yuidoc blocks to pager-control.js, see #223 #633
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start, but this is pretty bare bones. Check out this one for an example: https://github.com/code-corps/code-corps-ember/blob/develop/app/components/project-card-skills.js and check out https://github.com/code-corps/code-corps-ember/blob/develop/.github/CONTRIBUTING.md#what-kind-of-documentation-are-you-writing for documentation how to.
@rileytaylor @pixelhandler it's a good question as to what extent we're overdocumenting in other cases and if this is the right level of documentation here. Are some of these functions self-documenting enough just by naming convention? I'm not totally positive, but am certainly open to some competing ideas here to see what direction we should take. |
@joshsmith @pixelhandler agreed. Some of the simple boolean values could go without description, but some could definitely use |
If you plan to use generated docs, only methods with doc blocks will show up. For example here are the generated docs I use for an addon project, http://ember-jsonapi-resources.com/docs/ |
@rileytaylor I'll add the defaults and the component doc block as well, thanks |
@pixelhandler I wasn't clear: I meant that you didn't need much more than |
@joshsmith cool thanks for the clarity, I do like seeing |
I was unclear again! I just meant that you didn't need extra English-language description about what it means. |
@joshsmith with generated docs the English language description can be handy even when the property name is super targeted, there is usually some clarity that can be added. Also the generated docs too read nice with human descriptions vs variable names only, here is another example page of props, http://ember-jsonapi-resources.com/docs/classes/ApplicationAdapter.html |
Okay, then I would definitely consider adding those descriptions here, then. |
63c88ab
to
dce19cb
Compare
@rileytaylor @joshsmith I updated this PR after rebasing on develop, Added doc block for the component as well as human friendly descriptions for the properties. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've reviewed the previous feedback, and checked out the latest changes. This LGTM thanks @pixelhandler
Feel free to squash & merge
👍 please do rebase and squash when you can @pixelhandler! |
dce19cb
to
668b3f8
Compare
@joshsmith I rebased and squashed; so CI should run again :) |
- Add component block and human readable descriptions
668b3f8
to
5281bdb
Compare
@rileytaylor do you need to 👍 for the requested changes ? |
yes, looks like I do! Looks good now. |
🙌 |
What's in this PR?
Progress on: #223