Skip to content
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

cpp: objects generate hypertarget names unexpectedly #7276

Closed
tk0miya opened this issue Mar 7, 2020 · 0 comments
Closed

cpp: objects generate hypertarget names unexpectedly #7276

tk0miya opened this issue Mar 7, 2020 · 0 comments

Comments

@tk0miya
Copy link
Member

tk0miya commented Mar 7, 2020

Describe the bug
The C++ objects generate hyperlink names internally. As a result, it conflicts with normal hyperlink target.

To Reproduce
Input:

.. _say_hello:

.. cpp:function:: say_hello()

warnings:

/Users/tkomiya/work/tmp/doc/index.rst:14: WARNING: Duplicate explicit target name: "say_hello".

As a side effect, C++ objects can be refer via hyperlink reference syntax:

.. cpp:function:: say_hello()

Both :cpp:func:`say_hello` and say_hello_ can refer above definition

Expected behavior
I suppose this is not unexpected behavior. So it should not define hyperlink names internally.

Your project
N/A

Screenshots
N/A

Environment info

  • OS: Mac
  • Python version: 3.8.2
  • Sphinx version: 2.4.4
  • Sphinx extensions: No
  • Extra tools: No
@tk0miya tk0miya added this to the 3.0.0 milestone Mar 7, 2020
tk0miya added a commit to tk0miya/sphinx that referenced this issue Mar 7, 2020
tk0miya added a commit that referenced this issue Mar 15, 2020
Fix #7276: cpp: objects generate hypertarget names unexpectedly
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant