forked from ppy/osu-wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ppy#10545 from cl8n/scripts-cleanup
- Loading branch information
Showing
14 changed files
with
56 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/sh | ||
|
||
set -eu | ||
|
||
if test $# -eq 0; then | ||
set -- news wiki | ||
fi | ||
|
||
error_files="$(find "$@" -type f -size +1000000c)" | ||
warning_files="$(find "$@" -type f -size +500000c -size -1000001c)" | ||
|
||
exec >&2 | ||
|
||
if test "$warning_files"; then | ||
printf '\033[33mWarning:\033[m The following files are larger than 500kB and should be compressed if possible:\n' | ||
printf %s "$warning_files" | sort | sed 's/^/ /' | ||
fi | ||
|
||
if test "$error_files"; then | ||
printf '\033[31mError:\033[m The following files are larger than 1MB and must be compressed:\n' | ||
printf %s "$error_files" | sort | sed 's/^/ /' | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
set -eu | ||
|
||
reporter=@noomorph/vfile-reporter-position | ||
|
||
if test "${GITHUB_ACTIONS:-}"; then | ||
reporter=vfile-reporter-github-action | ||
fi | ||
|
||
npx remark -fq --color --no-stdout --report "$reporter" --silently-ignore "${@:-.}" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.