Closed Bug 2070411 Opened 2 months ago Closed 2 months ago

Document how a JSDoc comment's markup renders in the documentation skill

Categories

(Developer Infrastructure :: AI for Development, task)

task

Tracking

(firefox157 fixed)

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

Bug 2068532 added the rendering facts a JSDoc author needs to the documentation skill. Three more turned up while documenting the Tabbed Browser component:

  • A single backtick is reStructuredText's title-reference role, so it renders as italic prose; code needs double backticks. |name| is a substitution reference, and an undefined one fails the build rather than warning.
  • A @param description renders as one paragraph. sphinx-js replaces every newline in it with a space, so a list or a heading written inside one arrives glued to the parameter above it; structure belongs in the function's own description.
  • Indexed access ({Foo['id']}) has no spelling jsdoc accepts, whatever the quoting, so a derived type needs a named @typedef alias. The skill lists indexed access among the rejected expressions but gives no remedy.
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/043ca485b40d https://hg.mozilla.org/integration/autoland/rev/a839e4d258d9 Document how a JSDoc comment's markup renders in the documentation skill. r=ai4dev-reviewers,padenot DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
Blocks: 2071162
See Also: → tabbrowser-docs
See Also: tabbrowser-docs →
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: