Closed Bug 1748845 Opened 3 years ago Closed 3 years ago

With MyST relative references to other components in firefox-source-docs are broken

Categories

(Developer Infrastructure :: Source Documentation, defect)

defect

Tracking

(firefox-esr91 unaffected, firefox95 unaffected, firefox96 unaffected, firefox97 wontfix, firefox98 fixed)

RESOLVED FIXED
98 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox95 --- unaffected
firefox96 --- unaffected
firefox97 --- wontfix
firefox98 --- fixed

People

(Reporter: whimboo, Assigned: jgraham)

References

(Regressed 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(10 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

Since bug 1746782 has been landed all the relative references at least in the /remote/doc and /testing/geckodriver/doc files are broken and links are no longer existent on rendered pages.

For example check mozconfig at:
https://firefox-source-docs.mozilla.org/testing/marionette/Building.html

There are a lot more references that are affected. Sadly it wasn't noticed when landing bug 1746782 that these are busted now. I wonder how more widespread this issue is.

We could likely backout bug 1746782, though I wouldn't expect anyone to attempt re-landing (doc infrastructure is unowned).. so we'd lose out on the benefits myst provides and be on the deprecated recommonmark.

Afaict, the only other alternative is to fix the regressions. I don't think the fixes would be too hard, but I don't have time for it.. and if no one else has time, backing out might be the only option.

I can't resist mentioning that if I were maintaining docs in markdown.. I'd be very excited about myst :p

Andrew, could you maybe repeat the proposed solutions as you mentioned on Element? Maybe you have some more information or an example too? I assume there is no solution that works for both? If we are going to update our own docs others might still be busted, and reverting the patch would render our changes as broken then.

Flags: needinfo?(ahal)

The options are outlined in comment 1.

As for examples, it depends on what you're trying to do, but there are some examples here:
https://myst-parser.readthedocs.io/en/latest/sphinx/use.html

Looks like you can link to docs like:

[link](path/to/doc.md)

You could also probably use the :doc: role (e.g in in rst) or the :ref: role (which is more robust than manually linking to a doc as it will survive renames).

But I've never used myst myself, so you'll have to experiment.

Flags: needinfo?(ahal)
See Also: → 1748904

Set release status flags based on info from the regressing bug 1746782

Assignee: nobody → james
Status: NEW → ASSIGNED

These were broken since the update to MyST.

These were broken since we adopted MyST.

These were broken since the update to MyST.

sphinx-js is apparently trying to link these to another object. In the interests
of removing all 'reference target not found' type warnings, I just removed the
@see annotations, since it wasn't trivial to work out if there was something
they could point at the would work in the generated docs.

The idea is to capture the warnings in a temporary file, and then
apply a set of regex to find any that should be treated as fatal.

This allows us to fix warnings one type at a time, and prevents us
regressing the warnings that are already fixed.

The "reference target not count" warning is added to the initial
forbidden list, so we can ensure we don't end up with internal links
pointing to nowhere.

Attachment #9258081 - Attachment description: Bug 1748845 - Update source-relative links in performance docs, → Bug 1748845 - Update source-relative links in glean docs,
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/d9b01f388d27 Fix geckodriver docs links, r=webdriver-reviewers,whimboo https://hg.mozilla.org/integration/autoland/rev/72207858d8c7 Update source-relative links in remote docs, r=firefox-source-docs-reviewers,webdriver-reviewers,sylvestre,whimboo https://hg.mozilla.org/integration/autoland/rev/dc15c73282cf Update source-relative links in devtools docs, r=firefox-source-docs-reviewers,Honza,sylvestre https://hg.mozilla.org/integration/autoland/rev/33babc343579 Update source-relative links in testing docs, r=firefox-source-docs-reviewers,ahal,sylvestre https://hg.mozilla.org/integration/autoland/rev/e6b91230a0c0 Update source-relative links in rust docs, r=firefox-source-docs-reviewers,sylvestre https://hg.mozilla.org/integration/autoland/rev/334f96cdbe67 Update source-relative links in dom docs, r=firefox-source-docs-reviewers,sylvestre,peterv https://hg.mozilla.org/integration/autoland/rev/db2f5380d783 Update source-relative links in performance docs, r=firefox-source-docs-reviewers,sylvestre https://hg.mozilla.org/integration/autoland/rev/8bf9a5e9580b Update source-relative links in glean docs, r=firefox-source-docs-reviewers,chutten,sylvestre https://hg.mozilla.org/integration/autoland/rev/d742452c2851 Remove @see links from JSDoc that didn't resolve to anything, r=rpl,firefox-source-docs-reviewers,sylvestre https://hg.mozilla.org/integration/autoland/rev/6a3d6ade80e6 Add a custom mechanism to make some docs warnings fatal, r=ahal,firefox-source-docs-reviewers,sylvestre

Is this something we need on Beta too or is riding 98 to release sufficient?

Flags: needinfo?(james)

I think riding the trains to release is fine; this only really affects https://firefox-source-docs.mozilla.org/ and not anything we ship to end users.

Flags: needinfo?(james)
Has Regression Range: --- → yes
Regressions: 1754299
Product: Firefox Build System → Developer Infrastructure
See Also: → 1799760
Regressions: 1807867
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: