Commit Graph

6 Commits (263a31e2455697283c011598f72d038bb3d06979)

Author SHA1 Message Date
Miguel Garcia 754bee9fab linkchecker: detect absolute links with missing leading slash
When an absolute link is missing the leading slash (it starts with
"docs/foo" instead of "/docs/foo/"), print a more specific error instead
of the generic catch-all warning.

Without the leading slash, these are treated as relative paths and so
lead to non-existing pages.

Also, while we're at it, fix the instance it detects.
2023-05-27 23:19:29 +02:00
howieyuen f0ccbff316 [zh]Update other pages for links with '/zh/' prefix, using new prefix '/zh-cn/' 2022-06-24 11:13:35 +08:00
Qiming Teng 95257a2edd Improve the linkchecker script
The linkchecker script is not working the same way as the `scripts/lsync.sh`.

- The path must start with '/docs'. This is not implied in any way.
- The language can be deduced if user provides a full path to a markdown
  file, e.g. `content/en/docs/concepts/security/controlling-access.md`.
- The path parameter could use a positional argument for ease of use.

This PR improves the user experience for the tool.
2022-05-03 18:56:34 +08:00
Philippe Martin 216b34a3d1 Update script to check api-reference links 2021-09-11 10:59:46 +02:00
TAKAHASHI Shuuji f1349a26bb
Fix the description of `-f` argument 2021-04-18 11:31:01 +09:00
Qiming Teng d13f959fa1 Link checker for doc site.
Please see the in-file comment for details.
2020-07-20 16:19:06 +08:00