-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
extensions:viewcodeThe `sphinx.ext.linkcode` or `sphinx.ext.viewcode` extensionsThe `sphinx.ext.linkcode` or `sphinx.ext.viewcode` extensionstype:bug
Milestone
Description
Describe the bug
I'm using sphinx to build the document for the project MegEngine.
In Docs repo, most APIs are organized manually for some reasons:
.. autosummary::
:toctree: api
:nosignatures:
cos
sin
tan
acos
asin
atan
atan2
cosh
sinh
tanh
acosh
asinh
atanh
As you can see, several functions are implemented here:
Everything works for cosh()
:
But it doesn't work for some other APIs like asin()
acos()
...
Seems viewcode-back
class is not generated for every API.
To Reproduce
I'm sure that sphinx.ext.viewcode
not works as expected.
You can do it with these steps to reproduce the behavior with a GitHub workflow file: https://github.com/MegEngine/Tutorials/blob/main/.github/workflows/sphinx-build.yml
Expected behavior
copied Class/Function source codes HTML pages can be highlighted and add links to documents correctly.
Environment info
- OS: Ubuntu 18.04
- Python version: 3.6/3.7
- Sphinx version: sphinx-build 3.5.1
- Sphinx extensions: sphinx.ext.viewcode
- Extra tools: -
Metadata
Metadata
Assignees
Labels
extensions:viewcodeThe `sphinx.ext.linkcode` or `sphinx.ext.viewcode` extensionsThe `sphinx.ext.linkcode` or `sphinx.ext.viewcode` extensionstype:bug