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

Class reference: Add self-links to methods, properties, etc. #91537

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rburing
Copy link
Member

@rburing rburing commented May 3, 2024

Have you ever wanted to link someone to a specific place in the class reference? You can find the links to specific methods, properties, etc. in the tables at the top of the page. But what if you find the right place by Ctrl+F or by scrolling? Are you going to scroll all the way back up just to get the link? No! No more of this 🙂

Get what you want directly from where you are: the little 🔗 has the link that can be clicked and/or copied.

godot-classref-selflinks

Ideally, as a follow-up someone would update the CSS on godot-docs to make the 🔗 appear only when the parent element is hovered, to reduce visual clutter (as is standard).

The feature is inspired by the SageMath documentation.

@JoNax97
Copy link
Contributor

JoNax97 commented May 3, 2024

Nice improvement!

I'd like if a link icon 🔗 could be used instead, I think it's more commonly understood nowadays

@Calinou
Copy link
Member

Calinou commented May 3, 2024

I'd like if a link icon 🔗 could be used instead, I think it's more commonly understood nowadays

I would also make the text/icon a bit larger so it's easier to click/tap, or at least give it some padding to its clickable area with a custom CSS class.

@rburing
Copy link
Member Author

rburing commented May 3, 2024

The CSS part needs to be done on the godot-docs repo.

Edit: Done.

@AThousandShips AThousandShips added this to the 4.x milestone May 4, 2024
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.

None yet

4 participants