mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-24 01:07:41 +00:00
The check-markdown tool gets called as part of a TC build. The
configure action in `build.sh` will select the correct node version
and set the necessary environment variables. However, previously this
failed because `${KEYMAN_ROOT}/node_modules` might already exist even
though we didn't configure check-markdown before.
This change checks a local directory as output of the configure action
and thus allows to build on a Noble based TC agent.
|
||
|---|---|---|
| .. | ||
| src | ||
| .gitignore | ||
| build.sh | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
check-markdown
This tool is used to test the validity of internal links within product
documentation, e.g. /android/docs/help/**/*.md.
It currently tests that:
- Markdown can be parsed
- Links to other files in the same section exist (with or without .md extension)
- Images exist
It will also optionally report on:
- External absolute links (starting with http/https)
- Relative links outside the root of the help documentation
- Unnecessary use of .md extension in links
We could extend it to include:
- Checks for anchor validity