-
Notifications
You must be signed in to change notification settings - Fork 0
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
Productize: documentation #10
Comments
@ckreiger1 , I've updated this ticket's description to include the API documentation template for a class in Markdown. As we refine and extend this, we can keep updating the template here. Edit: Okay, now I've really changed the contents of this ticket to try to help make it more clear. 😄 Another edit: I've just pushed a change to move the API docs part of the content to api-docs.md, so that's the new file in which you'll be primarily working. It's the same thing, but I've just split it into another page. I'll handle the general documentation in |
Dena showed me an HCG Portal API docs example, for reference:
|
PR #35 to bring |
Hey, @ckreiger1! I was looking at the config properties documentation and I realized that in the header for each one (e.g., So, do you think we should change this: #### fretMarkerEnabled (set)
Exists as a property of the config property... ...to this: #### `fretMarkerEnabled` (set)
Exists as a property of the config property... ...or do we have too many instances for code-formatted text on the page already and we should be going in the other direction? I'd love to hear your thoughts on this. Thanks! PS: If we choose to make one of these changes, I can probably do it with regular expressions and find/replace, so don't dive in head first doing that manually if that's what we decide to do. |
Background
Guitar Diagram JS should be productized and ready for use by the community. This includes packaging, documentation, properly commented code, etc.
Issues in this pseudo-epic
Acceptance Criteria
API documentation is available on
docs/api-docs.md
API docs are available for all public functions/methods and members
Coverage should include (this can be the outline format):
guitar-diagrams.js
guitar-diagrams-config.js
guitar-diagrams-marker.js
Each section should be listed alphabetically and grouped by type (method, config value)
Fields for each type should include:
✅Member
✅Property
✅Method
✅Member
✅Property
✅Method
✅Member
✅Property (set only)
✅Method
❓Member
✅Property (get only)
❓Method
✅Member
✅Property
✅Method
❓Member
❓Property
❓Method
Key: ✅Yes, required. ❓Optional. ❌ No, not necessary.
Remaining documentation has been reviewed and approved (or edited and approved)
README.md
- general project introductiondocs/examples/index.md
- documentation home pagedocs/examples/index.html
- Examples HTML pagedocs/examples/code-owner-docs.md
- code owner documentation pageFormatting Template
The formatting template exists between the next two HRs.
class-name.js
Classclass-name.js
ConstructorsConstructor(s) in
class-name.js
go here...class-name.js
Public PropertiesProperties in
class-name.js
go here...propertyName (get)
Property definition....
Example:
propertyName (set)
Property definition....
Example:
class-name.js
Public MethodsmethodName
Description of method....
Example:
Approach
docs/api-docs.md
(formerlydocs/index.md
)Notes
Notes for Chad
For each JS file, document the following:
#
#
You can ignore:
#
)#
)guitar-diagrams.js
)Be sure to reference default values for any properties by looking at the matching private member (e.g., get
someValue()
or setsomeValue(paramSomeValue)
would have a private member named#someValue
with a default value.The text was updated successfully, but these errors were encountered: