Closed Bug 2084550 Opened 1 month ago Closed 10 days ago

Update sphinx version

Categories

(Thunderbird :: Help Documentation, task, P2)

Thunderbird 160
task

Tracking

(Not tracked)

RESOLVED FIXED
163 Branch

People

(Reporter: freaktechnik, Assigned: ebaginski, NeedInfo)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file, 1 obsolete file)

The version of the python packages we use for source doc hasn't been touched in a while and seems fairly far behind compared to m-c. My local setup complained about the sphinx-js version. I've tried to update the versions locally and that seems to have worked, but I don't think my patch is quite correct for it, thus only submitting as WIP.

Priority: -- → P2

I've noticed when I locally run sphinx with these updated packages a bunch of xrefs seem to break.

Just trying to judge priority of this. Is sphinx-js broken at the current version? I don't think these dependencies are meant to be kept in sync with Firefox. But they are pretty old and do need updating.

mach tb-doc fails to run locally for some at least. Might be python version related, not sure. But it complains that it can't install sphinx-js.

Using Python 3.14.8 environment at: /home/[...]/mozbuild/srcdirs/[...]/_virtualenvs/tb_docs
error: No solution found when resolving dependencies
  cause: Because sphinx-js==3.2.2 depends on markupsafe==2.0.1 and markupsafe==3.0.2, we can
         conclude that sphinx-js==3.2.2 cannot be used.
         And because you require sphinx-js==3.2.2, we can conclude that your requirements are
         unsatisfiable.
Attachment #9665894 - Attachment is obsolete: true
Assignee: nobody → ebaginski

sphinx-js 3.2.2 pins markupsafe==2.0.1, which conflicts with the
markupsafe 3.0.2 vendored by m-c, so mach tb-doc fails.

This updates Sphinx and related libraries to the versions used by m-c,
and copies m-c's staging_paths extension to fix links broken by the
Sphinx upgrade.

I was able to get sphinx and related libraries to the same versions as those in Firefox, and build succeeds. The broken xrefs @freaktechnik mentioned was caused by the update and was fixed by Firefox in D324436, so I just ported that addon in this patch too.

There are other (186 to be exact) errors related to jsdoc, which according to Claude existed before and are mostly build noise. So I'll address those separately, if that's okay.

Flags: needinfo?(martin)

New bug: 2094823

Target Milestone: --- → 163 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/44730855bf50
Update Thunderbird docs to Sphinx 9.1.0. r=coreycb,freaktechnik

Status: NEW → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: