Notes/bin/docs/preview.sh

8 lines
231 B
Bash
Raw Permalink Normal View History

2024-07-20 12:41:30 +03:00
#!/usr/bin/env bash
2024-07-27 23:27:18 +03:00
LISTEN_ADDRESS=127.0.0.1:8088
2024-07-20 12:41:30 +03:00
script_dir=$(realpath $(dirname $0))
2024-07-27 23:27:18 +03:00
output_dir="$script_dir/../../docs"
echo "Preview the documentation at http://$LISTEN_ADDRESS"
httpd -fv -p "$LISTEN_ADDRESS" -h "$output_dir"