Closed
Bug 1458882
Opened 7 years ago
Closed 2 months ago
Link to rendered documentation at firefox-source-docs.mozilla.org
Categories
(Webtools :: Searchfox, enhancement)
Webtools
Searchfox
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: kats, Assigned: arai)
References
Details
Attachments
(4 files)
e.g. the page at https://searchfox.org/mozilla-central/source/build/docs/defining-binaries.rst should have a link to the fancy schmancy rendered view at https://firefox-source-docs.mozilla.org/build/buildsystem/defining-binaries.html
Reporter | ||
Comment 1•7 years ago
|
||
https://github.com/mozsearch/mozsearch/commit/18355d19721f3959e4f42a59960a2bd41fe7c4c4 is a previous change that points to the relevant code that will need modification. We can add a config property that points to the rendered documentation root and then use the path of .rst files to figure out the path of the rendered html file. I don't think firefox-source-docs.m.o keeps old versions around, so maybe point to github's rendered view of .rst and .md files for older revisions? Or just skip that entirely.
Reporter | ||
Comment 3•6 years ago
|
||
(In reply to Kartikaya Gupta (email:kats@mozilla.com) from comment #1)
We can add a config property
that points to the rendered documentation root and then use the path of .rst
files to figure out the path of the rendered html file.
Not that easy, unfortunately. The moz.build files have SPHINX_TREES entries that provide the mappings from in-tree path to firefox-source-docs.m.o URL path. We'll either need to parse those files or produce a taskcluster artifact with the mapping.
Reporter | ||
Updated•6 years ago
|
Type: defect → enhancement
Comment 4•4 years ago
|
||
Relevant links:
- https://searchfox.org/mozilla-central/source/taskcluster/ci/source-test/doc.yml is the taskcluster job that produces a .tar.gz of the documents via
mach doc
- https://searchfox.org/mozilla-central/source/tools/moztreedocs/mach_commands.py is the mach command
- https://searchfox.org/mozilla-central/rev/80a0f3af240b6fefdfbff71a881bd96637f9a19b/tools/moztreedocs/__init__.py#43-75 is the
read_build_config
logic that extracts theSPHINX_TREES
variables. It uses aBuildReader
which has generated documentation that can currently be found here: https://firefox-source-docs.mozilla.org/python/mozbuild.frontend.html#mozbuild.frontend.reader.BuildReader. - Interestingly, it seems like the use of find_variables_from_ast may currently only be used by the doc builder and the mechanism that seems to categorize the tests into a11y/browser-chrome/chrome/mochitest/xpcshell.
- https://searchfox.org/mozilla-central/rev/80a0f3af240b6fefdfbff71a881bd96637f9a19b/tools/moztreedocs/__init__.py#43-75 is the
Updated•2 years ago
|
Keywords: leave-open
Comment 5•2 years ago
|
||
This will enable tools like searchfox to map source files in the
tree to their rendered URLs.
Updated•2 years ago
|
Assignee: nobody → ahal
Status: NEW → ASSIGNED
Updated•2 years ago
|
Attachment #9295788 -
Attachment description: Bug 1458882 - [moztreedocs] Add flag to dump sphinx trees to a file, r?#firefox-source-docs-reviewers → Bug 1458882 - [moztreedocs] Add flag to dump sphinx trees to a file, r?#firefox-source-docs-reviewers!
Comment 6•2 years ago
|
||
I'm not actively working on this, though the attached patch should at least make this possible.
Assignee: ahal → nobody
Status: ASSIGNED → NEW
Updated•2 years ago
|
Assignee: nobody → ahal
Status: NEW → ASSIGNED
Pushed by ahalberstadt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6b854ed6f7ef
[moztreedocs] Add flag to dump sphinx trees to a file, r=firefox-source-docs-reviewers,sylvestre
Comment 8•2 years ago
|
||
bugherder |
Assignee | ||
Comment 9•2 months ago
|
||
Updated•2 months ago
|
Assignee: ahal → nobody
Status: ASSIGNED → NEW
Assignee | ||
Comment 10•2 months ago
|
||
Updated•2 months ago
|
Assignee: nobody → arai.unmht
Status: NEW → ASSIGNED
Assignee | ||
Comment 11•2 months ago
|
||
Comment 12•2 months ago
|
||
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/4cf342f19395
Add index to the source-test-doc-generate task. r=sylvestre
Comment 13•2 months ago
|
||
bugherder |
Assignee | ||
Updated•2 months ago
|
Keywords: leave-open
Assignee | ||
Updated•2 months ago
|
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Comment 14•2 months ago
|
||
It would be nice to communicate on it :)
You need to log in
before you can comment on or make changes to this bug.
Description
•