Fix sphinx warnings in `mach doc` and make them fail the build
Categories
(Developer Infrastructure :: Source Documentation, enhancement)
Tracking
(Not tracked)
People
(Reporter: ahal, Assigned: championshuttler)
References
(Blocks 1 open bug)
Details
Attachments
(11 files, 1 obsolete file)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
If you run mach doc
there are tons of WARNINGS that are spewed to stdout. We should fix them all and configure sphinx-build
to fail on warnings to prevent new ones from being added in the future. This is likely a large task, so we may want to turn this into a meta bug and file dependents to start fixing this little by little.
This is also closely related to bug 1527361, as that will catch and prevent many of the same issues. I think doing both of these things are still worthwhile however.
Reporter | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Reporter | ||
Comment 2•5 years ago
|
||
Great, thanks Shivam!
I'm setting leave-open
which means the bug will remain open after patches land. This way if you wish to keep working on this issue, you can submit multiple patches on top of one another until you either want to stop or all of the warnings have been fixed. Please let me know if you want to continue working on this or not.
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5d251a7e6031 Fix Sphinx Warning - Title Underline too short in 'mach doc'. r=ahal
Comment 4•5 years ago
|
||
bugherder |
Comment 5•5 years ago
|
||
https://hg.mozilla.org/projects/ash/rev/5d251a7e6031cd707c83c9b22425610d3e056f1d Bug 1536103 - Fix Sphinx Warning - Title Underline too short in 'mach doc'. r=ahal
Assignee | ||
Comment 6•5 years ago
|
||
Assignee | ||
Comment 7•5 years ago
|
||
Depends on D35304
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
Depends on D35309
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/97b7600d3c92 Fix Sphinx Warning - Unexpected indentation (1). r=ahal https://hg.mozilla.org/integration/autoland/rev/61c481e2d2e8 Fix Sphinx Warning - Title Underline too short in 'mach doc' (2). r=ahal https://hg.mozilla.org/integration/autoland/rev/8a205b411e7e Fix various Sphinx Warning in 'mach doc' (3). r=ahal
Comment 10•5 years ago
|
||
bugherder |
Assignee | ||
Comment 11•5 years ago
|
||
Comment 12•5 years ago
|
||
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/61ef4dac17e1 Fix various Sphinx Warning in 'mach doc' (4). r=ahal
Comment 13•5 years ago
|
||
bugherder |
Assignee | ||
Comment 14•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 15•5 years ago
|
||
Pushed by apavel@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fb0ae6ca7322
Fix Sphinx Warning for not referenced hyperlinks. r=ahal
Assignee | ||
Updated•5 years ago
|
Comment 16•5 years ago
|
||
bugherder |
Assignee | ||
Comment 17•5 years ago
|
||
Assignee | ||
Comment 18•5 years ago
|
||
Depends on D54045
Comment 19•5 years ago
|
||
Comment on attachment 9110384 [details]
Bug 1536103 - Remove unused file from marionatte docs. r=sylvestre,ahal
Revision D54045 was moved to bug 1598279. Setting attachment 9110384 [details] to obsolete.
Comment 20•5 years ago
|
||
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fb6fa343472b Add files to marionatte toctree. r=marionette-reviewers,ato
Comment 21•5 years ago
|
||
bugherder |
Assignee | ||
Comment 22•5 years ago
|
||
Comment 23•5 years ago
|
||
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b5c6e2ad46e7 Update Piplock file for mach doc command. r=sylvestre
Comment 24•5 years ago
|
||
bugherder |
Assignee | ||
Comment 25•4 years ago
|
||
Comment 26•4 years ago
|
||
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/97dfb457a8b3 Fix links for GeckoView landing page.r=sylvestre
Comment 27•4 years ago
|
||
bugherder |
Comment 28•4 years ago
|
||
I suspect this isn't going to be very practical unless we find a way to silence the "duplicate label" warnings. My gut is that it's unreasonable to force every label in the entire tree to be uniquely named (eg lots of sub-docs have labels like "Examples" and that's entirely reasonable). Excitingly, so far, my searches on the web seem to suggest that this is considered a "feature" of Sphinx and I haven't yet found a trivial way to suppress them. Though I suppose we could teach the harness to ignore them. In some ways, part of the problem seems to be Sphinx' transclusion model that pretends that things are just One Big Document. But maybe we could be using the transclusion model more effectively...
Comment 29•4 years ago
|
||
Comment 30•4 years ago
|
||
(In reply to Dan Mosedale (:dmose, :dmosedale) from comment #28)
I suspect this isn't going to be very practical unless we find a way to silence the "duplicate label" warnings. My gut is that it's unreasonable to force every label in the entire tree to be uniquely named (eg lots of sub-docs have labels like "Examples" and that's entirely reasonable). Excitingly, so far, my searches on the web seem to suggest that this is considered a "feature" of Sphinx and I haven't yet found a trivial way to suppress them. Though I suppose we could teach the harness to ignore them. In some ways, part of the problem seems to be Sphinx' transclusion model that pretends that things are just One Big Document. But maybe we could be using the transclusion model more effectively...
Agreed.
Also there are some rst files not indexed and thus producing warnings. What should happen to them?
Comment 31•4 years ago
|
||
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7da4a25e3637 Fixed mach doc warnings.r=firefox-source-docs-reviewers,championshuttler,sylvestre
Comment 32•4 years ago
|
||
bugherder |
Comment 33•4 years ago
|
||
Comment 34•4 years ago
|
||
Pushed by sledru@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bed226f8bccd Removed some unused devtools in tree placeholder documentation.r=firefox-source-docs-reviewers,sylvestre
Comment 35•4 years ago
|
||
bugherder |
Comment 36•4 years ago
|
||
fail on warnings to prevent new ones from being added in the future
I wanted to give a little bit of feedback that this issue creates a lot of friction for adding new documentation. In Bug 1641000 I wrote some new docs. I introduced quite a few errors initially, and it took some effort to remove them given the amount of output.
Comment 37•4 years ago
|
||
creates a lot of friction
Agreed but fixing tones of the warning isn't fun for anyone ... As you can see, many of us have been working on that recently. Don't hesitate to help!
Comment 38•4 years ago
|
||
Agreed but fixing tones of the warning isn't fun for anyone
Yeah, sorry if I was sounding pushy there. Thanks for helping with this. I'm super happy we have these in-tree docs. I was mostly trying to give feedback "as a new user".
Comment 39•3 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:Sylvestre, maybe it's time to close this bug?
Comment 41•3 years ago
|
||
<dd>If true, a multi-element search selector is used and a sequence
of elements will be returned. Otherwise a single element.
What sort of indentation is correct for these tags in the comment blocks ? @Sylvestre
Comment 42•3 years ago
|
||
dunno what you are talking about, sorry
Comment 43•3 years ago
|
||
driver.js:GeckoDriver(94):1611: (ERROR/3) Unexpected indentation.
Can you help me by telling what '94' and '1611' indicate here in this warning ?
Comment 44•3 years ago
|
||
figuring this out by yourself is part of the exercises ;)
but I would not start with the js warnings as it is more complex
Comment 45•3 years ago
|
||
Can this be assigned to me ?
Comment 46•3 years ago
|
||
I created a new bug for you. bug 1714788
Comment 47•2 years ago
|
||
The leave-open keyword is there and there is no activity for 6 months.
:Sylvestre, maybe it's time to close this bug?
Comment 49•2 years ago
|
||
Let's close this bug and use bug 1749473 as a meta bug for the next steps
Updated•2 years ago
|
Updated•2 years ago
|
Description
•