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

Add anchors to all terms of the glossary #38073

Merged
merged 1 commit into from
Jan 19, 2022
Merged

Conversation

oandregal
Copy link
Member

@oandregal oandregal commented Jan 19, 2022

This PR makes all words in the glossary linkable, so they're easier to share and so gain wider visibility.

Implementation

I've made them all h2 headings because of how the handbook works: it automatically adds a link to the headings, see the FAQ section as an example.

Alternatively, I could have added id="title-of-section" to the existing DT items. However, this is prone to human errors (typos, people forgetting to add the id, etc). The fact that only one of the terms already had ID should speak about this. Embracing the existing native handbook structure seems more future-proof.

@oandregal oandregal requested review from a team and aristath and removed request for a team January 19, 2022 13:22
@oandregal oandregal self-assigned this Jan 19, 2022
@oandregal oandregal added the [Type] Developer Documentation Documentation for developers label Jan 19, 2022
@oandregal oandregal changed the title Add anchors to all words of the glossary Add anchors to all terms of the glossary Jan 19, 2022
@oandregal oandregal merged commit e8d105e into trunk Jan 19, 2022
@oandregal oandregal deleted the add/anchors-to-glossary branch January 19, 2022 14:09
@github-actions github-actions bot added this to the Gutenberg 12.5 milestone Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants