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

Tweak documentation to use bold font when a class is referencing itself #78649

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

MewPurPur
Copy link
Contributor

@MewPurPur MewPurPur commented Jun 24, 2023

Similar to how the website does it.

image

image

Please take a look at the implementation as there might be a better way.

@AThousandShips AThousandShips requested review from Calinou and removed request for Calinou June 24, 2023 17:27
@Calinou Calinou added this to the 4.x milestone Jun 24, 2023
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally, it works:

image

I'm not sure why the underline is missing on OP's screenshot; it's present just fine here. Maybe your custom editor font is causing it to disappear due to the underline width not being read correctly (or not being clamped to be at least 1 pixel)?

For reference, MediaWiki also highlights self-page references in bold with no URL. Therefore, the overall idea looks good to me.

Regarding the implementation, I can't think of a better way to do it.

@MewPurPur
Copy link
Contributor Author

MewPurPur commented Jun 24, 2023

I'm not sure why the underline is missing on OP's screenshot

The first image is how it's after the PR, the second image is a comparison with the website, sorry for not being clear.

@akien-mga akien-mga modified the milestones: 4.x, 4.2 Jun 26, 2023
@YuriSizov YuriSizov merged commit 22b4861 into godotengine:master Jul 12, 2023
@YuriSizov
Copy link
Contributor

Thanks!

@MewPurPur MewPurPur deleted the dont-link-to-own-page branch July 12, 2023 15:46
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.

5 participants