-
-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to sphinx 5.2 #34615
Comments
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Author: Antonio Rojas |
comment:4
I haven't been pushed to 5.2 yet, so I haven't seen it. Although I could have had reports. This is quite different from the previous fix we pushed. Was it supposed to be implicit in older version of sphinx. |
comment:5
No, this is a new attribute in 5.2. That's why I was surprised this still works with older sphinx |
comment:6
Ah, no. It does throw errors with older sphinx, although docs still seem to build fine. |
comment:7
I suggest we take the opportunity to upgrade sphinx in sage itself then. I didn't do it for 5.1 and that may have been lazy on my part :) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:9
I am busy this morning but if you don't do more, I'll look at the sphinx contribution packages that may need updating or- be added to sage. |
comment:10
Everything builds fine and docs look OK |
comment:11
After looking more closely, only sphinxcontrib_websupport would need a version bump. |
This comment has been minimized.
This comment has been minimized.
Changed author from Antonio Rojas to Antonio Rojas, François Bissey |
Changed branch from u/arojas/fix_build_with_sphinx_5_2 to u/fbissey/sphinx5_2 |
New commits:
|
comment:13
On macos, with the ticket branch merged to the develop branch, I encountered
|
comment:14
Upgrading to |
comment:15
Replying to Kwankyu Lee:
It ended up successfully, and the built documents look good. |
comment:17
You are right, the version of imagesize was way to low in sage (1.2). Updating now. |
comment:19
Updated imagesize and pushed sphinx to 5.2.3. |
This comment has been minimized.
This comment has been minimized.
comment:20
Thanks. It works well and looks good to me. |
Reviewer: Kwankyu Lee |
Changed branch from u/fbissey/sphinx5_2 to |
comment:22
This upgrade seems to have introduced an unpleasant change of doc appearance. Compare with https://doc.sagemath.org/html/en/reference/curves/index.html See all the second-level headings. Those weren't before. |
Changed commit from |
comment:23
I suspect that the upgrade does not work well with sage's custom |
comment:24
Possibly, it is hardly news that we should get rid of it as quickly as we can. I wanted to ask whether you had an idea why there are subsection for say "plane conics" but not "curves"? When I tried to post yesterday, trac was in maintenance :( |
comment:25
Replying to François Bissey:
I agree! But that seems a formidable task (unless we just leave the consequential "broken doc" at it is).
It is because of the
Hence it is normal. The real problem seems that definitions doc is regarded as content headings. I don't know if this is a feature of the upgraded sphinx or a problem of |
comment:26
A simple and laborious solution would be to change all affected |
comment:27
Replying to Kwankyu Lee:
This certainly does not solve all problems. See the "Contents" on the right |
comment:28
I don't think that's bad. It is on a static right space while the content is just in a middle frame. This really looks like a standard template. One I have seen in other places. Of course, if it is inconsistent with other pages, we have a problem. |
comment:29
Replying to François Bissey:
Object definitions in TOC is a new standard feature of the upgraded Sphinx. But this changes our doc in an unintended way. This is fixed now in #34706. Needs review. |
Sphinx, upgraded to 5.2.3 in sagemath#34615, builds the doc with object (classes, functions, ...) entries in toc (table of contents). We keep the object entries in TOC, but remove them from the main index pages. URL: https://trac.sagemath.org/34710 Reported by: klee Ticket author(s): Kwankyu Lee Reviewer(s): François Bissey
New changes in sphinx requires new attributes to be defined. Supporting this change introduces non fatal error and warnings when building with older version of sphinx.
Therefore we think it is time to upgrade sphinx in sage.
The ticket update
CC: @kiwifb
Component: build
Author: Antonio Rojas, François Bissey
Branch:
8f8af65
Reviewer: Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/34615
The text was updated successfully, but these errors were encountered: