Closed Bug 1742605 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 31440 - Use JSDoc for documentation

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox96 fixed)

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 31440 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/31440
Details from upstream follow.

James Graham <james@hoppipolla.co.uk> wrote:

Use JSDoc for documentation

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:

  • The addition of sphinx-js to enable adding JSDoc strings directly into the docs.
  • Conversion of the testharness and testdriver docs to use the JSDoc rather than repeating all the documentation in the markdown files as well as in the source.

There are also some incidential changes:

  • The readdition of a Dockerfile for generating docs. The wpt build-docs command is updated to optionally use this docker image, avoiding the need to install the js components locally.
  • The addition of sphinx-autoreload so that it's possible to work on the docs using a local server and have the output regenerated when the inputs change.
PR 31440 applied with additional changes from upstream: ae483100a12ee8e7110c95142f95b14f2d659f6a
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3b847659e868
[wpt PR 31440] - Use JSDoc for documentation, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.