Closed
Bug 2068556
Opened 2 months ago
Closed 2 months ago
Correct the build, cross-reference and lint guidance in the documentation skill
Categories
(Developer Infrastructure :: AI for Development, task)
Developer Infrastructure
AI for Development
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)
Four things the documentation skill either states misleadingly or leaves out. Each cost time while adding browser/components/sessionstore/docs/events.md (bug 2066123), so they are corrections with a case behind them rather than a reading of the Sphinx docs. Bug 2068546 covers a separate gap in the same file.
--no-autodocis described only as a way to make builds faster ("skip Python/JS API generation for faster builds", "for faster iteration when not working on API docs"). It is also the only way to build a page at all while some other component's JSDoc is broken: sphinx-js analyzes everyjs_source_pathsentry no matter which directory./mach docwas scoped to, so one aborting error takes the whole build down and names a file the change never touched. APathsTakencollision inbrowser/components/urlbar/content/UrlbarChildController.mjsaborted a build scoped tobrowser/components/sessionstore/docs. The skill should say that a build failure naming an unrelated JS file is not yours, and that--no-autodocgets past it with only the generated API pages missing.- A
{doc}role renders the target page's title as its link text, so a following noun duplicates it:in the {doc}api`` came out as "in the SessionStore API reference reference". The document cross-referencing section covers the path and extension rules but not what the reader ends up seeing, and this is invisible until the built page is read. Worth stating alongside the existing advice to build and check. docs/config.ymlcategories are described as though each new page needs an entry ("Every documentation path must be assigned to a category. If a new doc path is not categorized here, the build fails"). The entries are directory prefixes, so a page added inside an already-listed tree needs no change: a new file underbrowser/components/sessionstore/docsis covered by the existingbrowserentry. As written, the skill sends a reader to edit a file that does not need editing.- Naming the linters matters for a docs-only change.
./mach lint <docs dir>with no-lexits non-zero with anAssertionErrortraceback out ofmozlint/roller.pyfor linters that have nothing to check in a.mdfile, which reads as though the change broke something../mach lint -l codespell -l file-whitespace -l trojan-source <path>are the ones that apply, andfile-whitespaceis the one that actually catches things (a trailing blank line at end of file).
| Assignee | ||
Comment 1•2 months ago
|
||
Verified in-tree rather than taken from the skill: conf.py passes the whole js_source_paths list to sphinx-js regardless of the build's scope, the categorization check compares tree indexes and only on a full build, and a bare mach lint over a docs directory exits non-zero with three linter failures and an assertion out of mozlint's roller.
Updated•2 months ago
|
Assignee: nobody → dao+bmo
Status: NEW → ASSIGNED
Pushed by dgottwald@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/4d0e4a9c547a
https://hg.mozilla.org/integration/autoland/rev/04ca9f30328d
Correct four things the documentation skill gets wrong about docs-only changes. r=ai4dev-reviewers,padenot DONTBUILD
Comment 3•2 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
status-firefox157:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
| Assignee | ||
Updated•1 month ago
|
See Also: → sessionstore-docs
| Assignee | ||
Updated•1 month ago
|
Blocks: sessionstore-docs
See Also: sessionstore-docs →
You need to log in
before you can comment on or make changes to this bug.
Description
•