forked from ppy/osu-wiki
-
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.
Add reference- and in-article link checking to the wikilink checker
The wikilink checker is updated with changes from Walavouchey/osu-wiki-tools@76f2b53 to Walavouchey/osu-wiki-tools@cdbfa96 to make some more progress towards ppy#6233. The full commit history along with tests can be viewed in that repo. The two main features of reference- and in-article link checking require additional parsing logic to handle ignoring comments and getting the correct identifier from headings and custom identifier tags. For in-article links, the articles they point to are parsed for their identifiers in order to check if the #link-fragment is correct, and if not, all possible identifiers are printed as suggestions. By default, all links from outdated articles are ignored. The plan is to eventually turn on link checking for all files in CI runs when the remaining errors have been fixed, so this is to prevent contributors from having to edit already outdated articles. Currently on master this this runs for about 40s with `--outdated` and about 32s without on my Windows machine. There are 152 remaining errors without counting outdated articles and 253 errors in total.
- Loading branch information
1 parent
7ab84e0
commit 8b52363
Showing
12 changed files
with
1,115 additions
and
212 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
Empty file.
Oops, something went wrong.