mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-17 05:50:23 +00:00
14 lines
No EOL
310 B
Bash
Executable file
14 lines
No EOL
310 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Compile the docs.
|
|
make clean
|
|
make html
|
|
|
|
# Open in the browser.
|
|
URL="build/html/index.html"
|
|
|
|
echo "Documentations index file: $URL"
|
|
|
|
[[ -x $BROWSER ]] && exec "$BROWSER" "$URL"
|
|
path=$(which xdg-open || which gnome-open || which open) && exec "$path" "$URL"
|
|
echo "Couldn't find a browser." |