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

[proof of concept] Fix anchor links for inlined classes #2215

Closed
wants to merge 4 commits into from

Conversation

Eric-Arellano
Copy link
Collaborator

Closes #2210. Before, we would convert anchor links like runtime-job#qiskit_ibm_runtime.RuntimeJob.submit to be runtime-job#submit. This is because the header is set to submit, so that is the autogenerated anchor for the header.

We could instead link to the original full ID like #qiskit_ibm_runtime.RuntimeJob.submit because we set this on the component itself, like the <Function component. However, until we solve #1395, that means the anchor will take you below the header to the colored bar. That is especially problematic for attributes which don't have a code signature, like the second image.

Screenshot 2024-10-31 at 9 01 05 AM Screenshot 2024-10-31 at 9 01 14 AM

So, this PR is the best solution long-term, but blocked by #1395.

@Eric-Arellano Eric-Arellano deleted the EA/inlined-class-method-anchor branch October 31, 2024 18:30
github-merge-queue bot pushed a commit that referenced this pull request Nov 1, 2024
Closes #2210. Before,
cross references to inlined class methods would try using the link
`InlineClass.some_method`, but the link should really be `some_method`
without `InlineClass`.

The better fix is #2215
because it avoids the risk of ambiguous anchors. However, it would be a
UX regression to land that until
#1395 is done. Fixing this
is tracked by #2217.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Broken link for inlined classes in addon docs
1 participant