-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(common): add markdown link check test for product documentation #12472
Conversation
Adds check-markdown package that parses .md files, looks for links and images, and verifies that they are valid links (for internal links).
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
ios/build.sh
Outdated
# Please note that this build script (understandably) assumes that it is running on Mac OS X. | ||
verify_on_mac | ||
# verify_on_mac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced we need this. Build will fail if we try on a non-Mac anyway. And by leaving it off, we can do things like run test:help
mac/build.sh
Outdated
# Please note that this build script (understandably) assumes that it is running on Mac OS X. | ||
verify_on_mac | ||
# verify_on_mac |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced we need this. Build will fail if we try on a non-Mac anyway. And by leaving it off, we can do things like run test:help
@@ -301,3 +301,7 @@ _select_node_version_with_nvm() { | |||
builder_die "Attempted to select node.js version $REQUIRED_NODE_VERSION but found $CURRENT_NODE_VERSION instead" | |||
fi | |||
} | |||
|
|||
check-markdown() { | |||
node "$KEYMAN_ROOT/resources/tools/check-markdown" --root "$1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We rely on build.sh building things as needed, but we could check for existence of build/index.js and build it here if missing also
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Changes in this pull request will be available for download in Keyman version 18.0.126-alpha |
Adds check-markdown package that parses .md files, looks for links and
images, and verifies that they are valid links (for internal links).
@keymanapp-test-bot skip