diff --git a/Meta/check-markdown.sh b/Meta/check-markdown.sh index aee514e0079..6132ca303b7 100755 --- a/Meta/check-markdown.sh +++ b/Meta/check-markdown.sh @@ -23,4 +23,4 @@ if [ -z "$SERENITY_SOURCE_DIR" ] ; then export SERENITY_SOURCE_DIR fi -find AK Base Documentation Kernel Meta Ports Tests Userland -path 'Ports/*/*' -prune -o -type f -name '*.md' -print0 | xargs -0 "${MARKDOWN_CHECK_BINARY}" README.md CONTRIBUTING.md +find AK Base Documentation Kernel Meta Ports Tests Userland -type f -name '*.md' -print0 | xargs -0 "${MARKDOWN_CHECK_BINARY}" README.md CONTRIBUTING.md diff --git a/Userland/Utilities/markdown-check.cpp b/Userland/Utilities/markdown-check.cpp index 5e6e22e99d5..0115f9c07e8 100644 --- a/Userland/Utilities/markdown-check.cpp +++ b/Userland/Utilities/markdown-check.cpp @@ -6,9 +6,9 @@ /* * You may want to invoke the checker like this: - * $ cd Build/lagom - * $ ninja - * $ find ../../AK ../../Base ../../Documentation/ ../../Kernel/ ../../Meta/ ../../Ports/ ../../Tests/ ../../Userland/ -type f -name '*.md' | xargs ./markdown-check ../../README.md + * $ ninja -C Build/lagom + * $ export SERENITY_SOURCE_DIR=/path/to/serenity + * $ find AK Base Documentation Kernel Meta Ports Tests Userland -type f -name '*.md' -print0 | xargs -0 Build/lagom/markdown-check README.md CONTRIBUTING.md */ #include