-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Use JSDoc for documentation #31440
Merged
Use JSDoc for documentation #31440
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jgraham
force-pushed
the
docs
branch
3 times, most recently
from
October 29, 2021 14:07
fdbe5ce
to
a17e3c9
Compare
jgraham
force-pushed
the
docs
branch
2 times, most recently
from
November 5, 2021 15:47
4d8caee
to
7230491
Compare
Ms2ger
reviewed
Nov 8, 2021
jgraham
force-pushed
the
docs
branch
3 times, most recently
from
November 8, 2021 17:53
26a9df4
to
1f13427
Compare
@jgraham there are conflicts to resolve here. I guess that this is ready for review apart from that though? |
Yes, this is ready for review. |
This adds a `--serve` option to `wpt build-docs` which will run a local server. sphinx-autobuild is used so that the docs are automatically rebuilt when relevant files change.
This extracts more of the documentation from the JSDoc comments in the file itself and reorganises things a little so the documentation is easier to navigate.
This extracts most of the documentation from the JSDoc comments rather than maintaining it in two places. Due to the limitations of sphinx-js, it seems like every command needs to be included one-by-one in the docs. However that has the advantage that we can give them some orgnaisation rather than just providing a flat list of commands.
foolip
approved these changes
Nov 22, 2021
|
||
COPY ./package.json ./ | ||
RUN npm install . | ||
ENV PATH=/app/node_modules/.bin:$PATH |
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.
This might be necessary, but maybe npx
could be used, at least if invoked from /app/.
jgraham
force-pushed
the
docs
branch
7 times, most recently
from
November 23, 2021 10:46
ae77d98
to
e212f94
Compare
Trying to run it in the parent seems to not work in npm 6.x
Co-authored-by: Philip Jägenstedt <[email protected]>
foolip
approved these changes
Nov 23, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The goal here is to address some complaints around the quality of the API documentation, and to make the docs easier to maintain going forward. To that end there are two big changes:
There are also some incidential changes:
wpt build-docs
command is updated to optionally use this docker image, avoiding the need to install the js components locally.