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

Fix? nested id for the link tag (#17) #61

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

krerkkiat
Copy link

@krerkkiat krerkkiat commented Mar 27, 2024

The nested id for the tag appears to be solved, but not sure if it affects other part or not.

What I did was setting a breakpoint at https://github.com/sphinx-doc/sphinx/blob/bfce4f54b0fc010b04f0d17ad8b9d47d8c279e1f/sphinx/domains/python/_object.py#L212 and with this

.. autoclass:: amod.AClass
    :members:

in the index.rst. When printing out classname it is None. (using the name, amod.AClass, from the comment in #17)

Since that is how autodoc do it, I set the py:class to None. With this change, the id appears to be normal and not nested.

@krerkkiat krerkkiat changed the title Fix nested id for the link tag (#17) Fix? nested id for the link tag (#17) Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant