-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mobile-ui-540-320-adjusted
- Loading branch information
Showing
21 changed files
with
272 additions
and
236 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
.DS_Store | ||
# macOS general | ||
# https://github.com/github/gitignore/blob/main/Global/macOS.gitignore | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
|
||
# published | ||
docs/_redirects | ||
docs/specimen/ | ||
docs/vocabulary/ |
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,44 @@ | ||
#!/bin/sh | ||
# (POSIX / Dash compatible) | ||
set -o errexit | ||
set -o nounset | ||
|
||
# https://en.wikipedia.org/wiki/ANSI_escape_code | ||
E0="$(printf "\033[0m")" # reset | ||
E30="$(printf "\033[30m")" # black foreground | ||
E107="$(printf "\033[107m")" # bright white background | ||
|
||
#### FUNCTIONS ################################################################ | ||
|
||
|
||
print_header() { | ||
# Print 80 character wide black on white heading with time | ||
printf "${E30}${E107}# %-69s$(date '+%T') ${E0}\n" "${@}" | ||
} | ||
|
||
|
||
remove_previous_from_docs() { | ||
# shellcheck disable=SC2016 | ||
print_header 'Remove previous publish from the `docs/` directory' | ||
rm -rf docs/_redirects docs/specimen docs/vocabulary | ||
mkdir -p docs/specimen docs/vocabulary | ||
echo 'done.' | ||
echo | ||
} | ||
|
||
|
||
publish_to_docs() { | ||
# shellcheck disable=SC2016 | ||
print_header 'Publish to the `docs/` directory' | ||
cp -a _redirects docs/ | ||
cp -a specimen/* docs/specimen/ | ||
cp -a src/* docs/vocabulary/ | ||
echo 'done.' | ||
echo | ||
} | ||
|
||
|
||
#### MAIN ##################################################################### | ||
|
||
remove_previous_from_docs | ||
publish_to_docs |
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
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.