Skip to content

C functions are not shown in sidebar #11424

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

Open
cc00010 opened this issue May 15, 2023 · 2 comments
Open

C functions are not shown in sidebar #11424

cc00010 opened this issue May 15, 2023 · 2 comments

Comments

@cc00010
Copy link

cc00010 commented May 15, 2023

Describe the bug

.. py:function:: or .. function:: shows function names in sidebar. But .. c:function:: does not.

How to Reproduce

.. function:: works_as_expected()

.. c:function:: void no_symbol()

Environment Information

Platform:              darwin; (macOS-13.3-arm64-arm-64bit)
Python version:        3.9.7 (default, Sep  3 2021, 04:31:11) 
[Clang 12.0.5 (clang-1205.0.22.9)])
Python implementation: CPython
Sphinx version:        6.2.1
Docutils version:      0.18.1
Jinja2 version:        3.1.2
Pygments version:      2.13.0

Sphinx extensions

No response

Additional context

No response

@cc00010
Copy link
Author

cc00010 commented May 15, 2023

Same issue with cpp. But javascript works as intended.

@AA-Turner
Copy link
Member

Happy to accept a PR. The C domain CObject would need to implement _toc_entry_name and _object_hierarchy_parts.

A

Cynerd added a commit to Cynerd/sphinx that referenced this issue Apr 23, 2025
This is based on the C++ implementation.

Implements sphinx-doc#11424
Cynerd added a commit to Cynerd/sphinx that referenced this issue Apr 29, 2025
This is based on the C++ implementation.

Implements sphinx-doc#11424
Cynerd added a commit to Cynerd/sphinx that referenced this issue May 13, 2025
This is based on the C++ implementation.

Implements sphinx-doc#11424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants