2
0
mirror of https://github.com/Vonng/ddia.git synced 2025-03-06 15:40:11 +08:00
ddia/bin/serve
Vonng 552259bf3b add docisfy support
* now you can view doc via browswer with `make`
2021-08-10 11:24:18 +08:00

11 lines
280 B
Bash
Executable File

#!/bin/bash
PROG_DIR="$(cd $(dirname $0) && pwd)"
HOME_DIR="$(cd $(dirname ${PROG_DIR}) && pwd)"
if command -v docsify; then
cd ${HOME_DIR} && docsify serve
else
cd ${HOME_DIR} && python -m SimpleHTTPServer 3001
echo "open http://localhost:3001 with your browser"
fi