Closed Bug 2071292 Opened 2 months ago Closed 1 month ago

Tell the documentation skill how to fix a generated API page or a diagram that comes out wrong

Categories

(Developer Infrastructure :: AI for Development, task)

task

Tracking

(firefox160 fixed)

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: dao, Assigned: dao)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

The documentation skill covers writing a JSDoc comment and a mermaid diagram, and says little about what to do when the result renders wrong. A passing ./mach doc can still produce an API page with missing members or a diagram with empty boxes, and some JSDoc shapes abort the build with a traceback that names no file.

This adds that material to the skill's reference files, which cost nothing until an agent opens them:

  • API pages: checking the rendered HTML instead of the exit status, links and anchors, types jsdoc cannot parse, members that render wrongly or not at all, the directives a singleton, an object literal or a module function needs, and the lint work to expect when adding a file to js_source_paths.
  • Mermaid diagrams: laying out for the page width, making a diagram readable in order, telling kinds of node apart, label pitfalls, replacing a diagram image, and measuring what rendered.
Depends on: 2071291
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Summary: Add the sphinx-js and mermaid diagnosis guidance to the documentation skill's reference files → Tell the documentation skill how to fix a generated API page or a diagram that comes out wrong
Attachment #9660822 - Attachment description: Bug 2071292 - Add the sphinx-js and mermaid diagnosis guidance to the documentation skill's reference files. r?sylvestre! DONTBUILD → Bug 2071292 - Tell the documentation skill how to fix a generated API page or a diagram that comes out wrong. r?sylvestre! DONTBUILD
See Also: → 2082314
Pushed by dgottwald@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/a0493903944e https://hg.mozilla.org/integration/autoland/rev/e4fd3d78bd27 Tell the documentation skill how to fix a generated API page or a diagram that comes out wrong. r=sylvestre DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
Blocks: 2088790
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: