-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Docs: build with Sphinx 5 #5121
Conversation
💊 CI failures summary and remediationsAs of commit d06535e (more details on the Dr. CI page):
5 failures not recognized by patterns:
This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
Hi @adamjstewart ! In case you didn't know You can click on I might have a finer look this weekend comparing the two :) |
Thanks for the PR @adamjstewart . I'll keep an eye on pytorch/pytorch#70309 and merge this one when pytorch/pytorch#70309 is accepted on the pytorch core side. |
d06535e
to
9ccad3d
Compare
@NicolasHug pytorch/pytorch#70309 has been merged, so this should be good to go once the tests pass. |
CI failures look unrelated, is there a way to rerun the failing test? |
Can you merge main branch to this and do a push?. Or click on update branch button in github UI |
Different error this time. Do I rebase again? |
You actually don't need to rebase. Btw the docs are visible over I'm having a look |
OK so it looks great with Sphinx 5. Some bugs are fixed. Mostly the font size looks bold (and better) Visible difference in font and layout Old https://pytorch.org/vision/main/models.html#initializing-pre-trained-models New Old New While a good thing is that the improper graying has gone. On the flip side nice contrast of each thumbnail has vanished Apart from that @adamjstewart do you know what are some features that we could use with sphinx 5? |
From looking at the Changelog it seems most of the changes in Sphinx 4 and 5 are changes to defaults in autodoc. For me, the main reason to upgrade to modern Sphinx is bugfixes for issues like pytorch/pytorch#60979. Also see sphinx-doc/sphinx#9395. |
Both have the same result, it's just a difference of whether there's a merge commit added or not. |
I don't see any error with the branch. Just that it's out of date with main branch. Rest all looks great 😀. Somehow I prefer merge commit over rebase. Maybe a personal choice. |
Seems like the tests are also failing on main... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The docs look fine although slightly worse IMO. But it's probably best to align with torch core to avoid integration issues.
Thanks for the PR @adamjstewart , LGTM
Summary: * Docs: build with Sphinx 5 * Sphinx 5 no longer accepts language = None Reviewed By: YosuaMichael Differential Revision: D37038117 fbshipit-source-id: 24ac8b0a67fafb2004aea581026822564a7ab87e Co-authored-by: Nicolas Hug <contact@nicolas-hug.com>
Companion to pytorch/pytorch#70309. See pytorch/pytorch#60979, pytorch/pytorch#61045, and sphinx-doc/sphinx#9395 for discussion.
I believe the reason that we were previously pinning to Sphinx 3 was because of issues with pytorch_sphinx_theme and Sphinx 4 support, but these seem to have been resolved now. See https://torchgeo.readthedocs.io/ for an example of docs built with pytorch_sphinx_theme and Sphinx 4.