Open Bug 1458882 Opened 6 years ago Updated 2 years ago

Link to rendered documentation at firefox-source-docs.mozilla.org

Categories

(Webtools :: Searchfox, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: kats, Assigned: ahal)

References

Details

(Keywords: leave-open)

Attachments

(1 file)

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.

(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.

Type: defect → enhancement

Relevant links:

Keywords: leave-open

This will enable tools like searchfox to map source files in the
tree to their rendered URLs.

Assignee: nobody → ahal
Status: NEW → ASSIGNED
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!

I'm not actively working on this, though the attached patch should at least make this possible.

Assignee: ahal → nobody
Status: ASSIGNED → NEW
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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: