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

AriaRoles: Remove pagemacro #3392

Merged
merged 2 commits into from
Mar 23, 2021

Conversation

hamishwillee
Copy link
Collaborator

@hamishwillee hamishwillee commented Mar 23, 2021

Fixes up sidebar on all 37 AriaRoles docs (as part of removing {{Page}} macro (FYI @wbamberg).

In summary, all the aria role docs had {{Page("/en-US/docs/Web/Accessibility/ARIA/Roles", "Subnav")}} which was supposed to generate the sidebar from the Subnav heading in parent doc. However "Subnav" sections got removed at some point as sidebars are done differently.

Instead, this now uses the "Quick_links" section to generate the intended effect.

It also fixes a few broken links, and changes the names of some broken links to lower case (which may not have been necessary, but seemed consistent when I started, and is non harmful).

EDITED. Also added XPath comparison doc fix (only other case ofa page import of a subnav). I took the quicklinks from the XPath page - so it matches the expected sidebar.

@hamishwillee hamishwillee requested a review from a team as a code owner March 23, 2021 03:57
@hamishwillee hamishwillee requested review from ericwbailey and removed request for a team March 23, 2021 03:58
@hamishwillee hamishwillee requested a review from a team as a code owner March 23, 2021 04:04
@hamishwillee hamishwillee requested review from chrisdavidmills and removed request for a team March 23, 2021 04:04
Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

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

LGTM; cheers @hamishwillee

@chrisdavidmills chrisdavidmills merged commit 1e8c048 into mdn:main Mar 23, 2021
@hamishwillee hamishwillee deleted the accessibility_pagemacro branch March 26, 2021 05:59
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants