8000 DOC Improve doc on linking code blocks by lucyleeow · Pull Request #1419 · sphinx-gallery/sphinx-gallery · GitHub
[go: up one dir, main page]

Skip to content

DOC Improve doc on linking code blocks #1419

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

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

lucyleeow
Copy link
Contributor

Follows on from #1410 (comment)

@larsoner please let me know if I got this part right.

Also any insight into why built-in python functions are not linked, e.g., print (but variables that are built-ins e.g., string or list are)? ref: #1410 (comment)

@larsoner
Copy link
Contributor
larsoner commented Jan 7, 2025

Not sure why print wouldn't show up. It's a py:function in the Python objects.inv 🤷

@larsoner larsoner merged commit 6c48495 into sphinx-gallery:master Jan 7, 2025
20 of 21 checks passed
@larsoner
Copy link
Contributor
larsoner commented Jan 7, 2025

Thanks @lucyleeow !

@lucyleeow lucyleeow deleted the doc_links branch January 8, 2025 01:31
@lucyleeow
Copy link
Contributor Author

Not sure why print wouldn't show up. It's a py:function in the Python objects.inv

Good to know it's meant to work.

Interestingly it comes up as a gold colour:

image

similar to numbers:

image

from page: https://sphinx-gallery.github.io/stable/auto_examples/plot_3_capture_repr.html

I would like to know why but I probably don't have time to investigate 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0