draft: updating contributing_to_the_p5js_reference for v2#8462
draft: updating contributing_to_the_p5js_reference for v2#8462nbogie wants to merge 15 commits intoprocessing:dev-2.0from
Conversation
e679c39 to
3b8ee24
Compare
|
|
||
| The `@for` tag defines the relationship between this module and the overall `p5` class, effectively saying this module is a part of the `p5` class. | ||
|
|
||
| <!-- TODO: clarify the nature of this relationship documented by the @for tag. Where might this be used - still only in docs? also in type-gen? elsewhere? --> |
There was a problem hiding this comment.
Sometimes I think we add it when documentation.js inference fails. The main one I think is in properties of a class that we want to document -- since it doesnt correctly parse when we put the comment block in the class itself, we have to document it outside, and then we need to use @for to attach the docs to the right class.
| The `@requires` tag defines the required imported modules that the current module depends on. | ||
|
|
||
| ``` | ||
| <!-- TODO: clarify where this @requires info is made use of. What responsibilities does the author have to state these correctly and comprehensively? --> |
There was a problem hiding this comment.
I'm also not sure we really need this, as we use import now rather than assuming other files will be loaded.
| The website won't be _fully_ functional when partially prepared in this way. Notably: | ||
|
|
||
| * links between pages may be broken | ||
| * You'll need to manually add a trailing slash '/' |
There was a problem hiding this comment.
tbh we should probably fix that in the website code when we encounter it and not rely on auto adding of the / on deployments, so we can encourage people to file and fix these if they see them!
There was a problem hiding this comment.
(we dont make non-trailing-slash urls work on dev because they dont exist on deploys, and it means relative links work differently than when there's a trailing slash, which means something can work locally but break on the live site.)
There was a problem hiding this comment.
Sorry, I'm not clear on this. Do you mean all links in the reference doc comments should be changed to include a trailing slash (in the source code)? Like this:
* <a href="#/p5.Image/">p5.Image</a>
(So far, I think there are zero instances of that in the codebase.)
(low-priority - even if this is so, I'm guessing it doesn't have to make this first v2 overhaul of the guide.)
Update norender to use //META: norender. Remove notest and modernizr completely.
also, hard wrap applyMatrix example for readability correct anchor syntax
Addresses #8454
WIP. This PR is meant only as an early draft for discussion, just now.
Changes in summary:
changes in more detail
regarding main document: /contributor_docs/contributing_to_the_p5js_reference,
comprehensive overhaul for v2.0 correctness, detail, and (hopefully) readability, as follows:
update first sections
update description section
update the params section
update return section
on code examples:
on assets:
on the sin() example used throughout
on @module and @submodule - clarified this is a documentation concept, gave examples
on how to generate and preview the reference:
add section on linting doc comments
on the formatting of the document (inline reference):
add various hyperlinks
v1-v2 differences
regarding document: style guide
regarding document: jsdoc best practices
Screenshots of the change:
TODO
PR Checklist
[ ] checked for bad links
[ ] check build:contributor-docs
[x] spelling check - (american english)
[ ] grammar check