Skip to content

Instantly share code, notes, and snippets.

@yeiichi
Created November 5, 2024 07:01
Show Gist options
  • Save yeiichi/9824286e52b9f6b20daaf01a61f7c969 to your computer and use it in GitHub Desktop.
Save yeiichi/9824286e52b9f6b20daaf01a61f7c969 to your computer and use it in GitHub Desktop.
Run Sphinx "make html" in a subshell.
#!/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