mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
Utilities+Meta: Check icons in markdown-check
We use the environment variable SERENITY_SOURCE_DIR to resolve and check icon links. This is a bit inconvenient as SERENITY_SOURCE_DIR needs to be set correctly before invoking the markdown checker, but as we use it through the check-markdown script anyways, I think it's not a problem.
This commit is contained in:
parent
4ef1bedc38
commit
084347becc
Notes:
sideshowbarker
2024-07-17 18:12:19 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: 084347becc
Pull-request: https://github.com/SerenityOS/serenity/pull/12759
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/TobyAsE ✅
2 changed files with 20 additions and 4 deletions
|
@ -18,4 +18,9 @@ if [ -z "${MARKDOWN_CHECK_BINARY:-}" ] ; then
|
|||
MARKDOWN_CHECK_BINARY="Build/lagom/markdown-check"
|
||||
fi
|
||||
|
||||
if [ -z "$SERENITY_SOURCE_DIR" ] ; then
|
||||
SERENITY_SOURCE_DIR=$(pwd -P)
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue