Skip to content
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

Merged
merged 7 commits into from
Oct 11, 2024

Conversation

mcdurdin
Copy link
Member

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

Adds check-markdown package that parses .md files, looks for links and
images, and verifies that they are valid links (for internal links).
@darcywong00 darcywong00 modified the milestones: A18S11, A18S12 Sep 28, 2024
Base automatically changed from refactor/developer/12347-move-help-in-repo to master September 28, 2024 02:34
ios/build.sh Outdated
Comment on lines 12 to 13
# Please note that this build script (understandably) assumes that it is running on Mac OS X.
verify_on_mac
# verify_on_mac
Copy link
Member Author

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
Comment on lines 28 to 29
# Please note that this build script (understandably) assumes that it is running on Mac OS X.
verify_on_mac
# verify_on_mac
Copy link
Member Author

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"
Copy link
Member Author

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

@mcdurdin mcdurdin marked this pull request as ready for review October 7, 2024 07:42
android/build.sh Outdated Show resolved Hide resolved
resources/tools/check-markdown/src/index.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcdurdin mcdurdin merged commit 43e7d32 into master Oct 11, 2024
28 checks passed
@mcdurdin mcdurdin deleted the feat/common/12347-check-markdown-links branch October 11, 2024 01:23
@keyman-server
Copy link
Collaborator

Changes in this pull request will be available for download in Keyman version 18.0.126-alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants