mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(hakurei): docs
This commit is contained in:
parent
c0e241b83c
commit
1d038633ce
11 changed files with 238 additions and 2 deletions
16
ci/docs.sh
Normal file
16
ci/docs.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eu
|
||||
|
||||
docs_try() {
|
||||
local CMD=$1
|
||||
shift
|
||||
|
||||
if type -P "$CMD" > /dev/null 2>&1; then
|
||||
exec "$CMD" "$NF_DOCS_PATH/index.html" "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
docs_try xdg-open "$@"
|
||||
docs_try open "$@"
|
||||
docs_try firefox "$@"
|
||||
docs_try chrome "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue