Skip to content

DOC Improve doc on linking code blocks#1419

Merged
larsoner merged 1 commit intosphinx-gallery:masterfrom
lucyleeow:doc_links
Jan 7, 2025
Merged

DOC Improve doc on linking code blocks#1419
larsoner merged 1 commit intosphinx-gallery:masterfrom
lucyleeow:doc_links

Conversation

@lucyleeow
Copy link
Copy Markdown
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
Copy Markdown
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
@larsoner
Copy link
Copy Markdown
Contributor

larsoner commented Jan 7, 2025

Thanks @lucyleeow !

@lucyleeow lucyleeow deleted the doc_links branch January 8, 2025 01:31
@lucyleeow
Copy link
Copy Markdown
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