Created
November 5, 2024 07:01
-
-
Save yeiichi/9824286e52b9f6b20daaf01a61f7c969 to your computer and use it in GitHub Desktop.
Run Sphinx "make html" in a subshell.
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
#!/usr/bin/env zsh | |
# Begin Help block | |
my_name=$(basename "$0") | |
display_help() { | |
cat <<EOF | |
*** Run Sphinx "make html" in a subshell. *** | |
usage: $my_name <No args are required> | |
EOF | |
} | |
[[ $1 == '--help' ]] && display_help && return 0 | |
# End Help block | |
main() { | |
(cd docs && make html && open build/index.html) | |
} | |
main "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment