-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use custom ids to avoid the map of rule IDs to links
Simplify the website code and reduce the work needed to add a new rule by leveraging custom ids in the `RULES.md` documentation to create deterministic anchors. In particular, the `id` attribute on the added `<a>` tags create an anchor on the generated HTML that can be referred to (whereas the default anchor for a title is a hyphenated version of the name). Thus, this allows linking to the custom anchor which is easier to determine. Signed-off-by: Eric Cornelissen <ericornelissen@gmail.com>
- Loading branch information
1 parent
6edce3f
commit 526f3a2
Showing
2 changed files
with
8 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters