Add scripts to verify anchors#3835
Merged
Merged
Conversation
463acfe to
b154562
Compare
ti-srebot
pushed a commit
to ti-srebot/docs-cn
that referenced
this pull request
Jul 2, 2020
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
5 tasks
Contributor
|
cherry pick to release-4.0 in PR #3854 |
yikeke
pushed a commit
that referenced
this pull request
Jul 2, 2020
This was referenced Jul 2, 2020
yikeke
added a commit
that referenced
this pull request
Jul 2, 2020
* cherry pick #3835 to release-4.0 Signed-off-by: ti-srebot <ti-srebot@pingcap.com> * fix conflict * fix conflict * test * test result: script ok Co-authored-by: Wenxuan <hi@breeswish.org> Co-authored-by: yikeke <yikeke@pingcap.com> Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
5 tasks
yikeke
added a commit
that referenced
this pull request
Jul 3, 2020
yikeke
added a commit
that referenced
this pull request
Jul 3, 2020
ti-srebot
pushed a commit
that referenced
this pull request
Jul 3, 2020
5 tasks
5 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is changed, added or deleted? (Required)
Add a script to verify anchors.
The source code of the checker is at https://github.com/breeswish/remark-lint-pingcap-docs-anchor/blob/master/index.js , which uses the same slug algorithm as the current one in https://docs.pingcap.com/
Note that I didn't modified CI script to execute this script since I'm too lazy to fix existing problems.53 dead anchors in docs-cn:master
21 dead anchors in docs:master
Which TiDB version(s) do your changes apply to? (Required)
What is the related PR or file link(s)?