You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sphinx.ext.viewcode could not work as expected on parallel build #8933
changed the title [-]sphinx.ext.viewcode could not work with class/function aliases[/-][+]sphinx.ext.viewcode could not work as expected[/+]on Feb 24, 2021
changed the title [-]sphinx.ext.viewcode could not work as expected[/-][+]sphinx.ext.viewcode could not work as expected while using ext.autosummary[/+]on Feb 24, 2021
And I can provide a Tutorial to build and deploy the document locally. But it was written in Chinese so I think you can use Google translation or look at this file:
changed the title [-]sphinx.ext.viewcode could not work as expected while using ext.autosummary[/-][+]sphinx.ext.viewcode could not work as expected on parallel build[/+]on Feb 25, 2021
@MegChai Hi! I see that you closed MegEngine/Documentation#49 but, from what I understand, MegEngine has Sphinx 3.5.4 pinned. We are investigating whether there is still a bug with sphinx.ext.viewcode accidentally introduced by #8935 (see #9210). Could you please try to build MegEngine docs with Sphinx 4.0 and report back the results? Thanks in advance!
Activity
[-]sphinx.ext.viewcode could not work with class/function aliases[/-][+]sphinx.ext.viewcode could not work as expected[/+][-]sphinx.ext.viewcode could not work as expected[/-][+]sphinx.ext.viewcode could not work as expected while using ext.autosummary[/+]tk0miya commentedon Feb 25, 2021
Now I checked your public document on https://megengine.org.cn/api/latest/_modules/megengine/functional/elemwise.html#cosh, but it seems working fine. Does this trouble happen in your local environment?
0xMashiro commentedon Feb 25, 2021
@tk0miya Thanks for your reply. Now our doc website is an old version(all APIs are generated by
sphinx.ext.autodocautomodule) and it will be replaced soon. If you want to reproduce the problem locally, here is the source code: https://github.com/MegEngine/Tutorials/tree/docs-transferAnd I can provide a Tutorial to build and deploy the document locally. But it was written in Chinese so I think you can use Google translation or look at this file:
It's in the testing status for MegEngine 1.3 (not release now) so there will be lots of API missing warning if you build it with MegEngine v1.2.
Fix sphinx-doc#8933: viewcode: Failed to create back-links on paralle…
Fix sphinx-doc#8933: viewcode: Failed to create back-links on paralle…
Fix sphinx-doc#8933: viewcode: Failed to create back-links on paralle…
tk0miya commentedon Feb 25, 2021
I found the reason. It's a bug of the viewcode extension on parallel build mode. #8935 will resolve the error.
0xMashiro commentedon Feb 25, 2021
So efficient. 👍
[-]sphinx.ext.viewcode could not work as expected while using ext.autosummary[/-][+]sphinx.ext.viewcode could not work as expected on parallel build[/+]Merge pull request #8935 from tk0miya/8933_viewcode_backlink_on_paral…
Master.patch (#1)
astrojuanlu commentedon May 10, 2021
@MegChai Hi! I see that you closed MegEngine/Documentation#49 but, from what I understand, MegEngine has Sphinx 3.5.4 pinned. We are investigating whether there is still a bug with
sphinx.ext.viewcodeaccidentally introduced by #8935 (see #9210). Could you please try to build MegEngine docs with Sphinx 4.0 and report back the results? Thanks in advance!0xMashiro commentedon May 11, 2021
@astrojuanlu Cool.
sphinx.ext.viewcodeworks as expected now. Thanks for your work.I fix the Sphinx version because of other unadapted extensions and have a workaround later. And I will start using Sphinx 4.0 in the next version of MegEngine documentation (see WIP PR).