docs: Improve the preview script

This commit is contained in:
Elian Doran 2024-07-27 23:27:18 +03:00
parent f32fb168dc
commit f5e02102e7
No known key found for this signature in database

View File

@ -1,5 +1,8 @@
#!/usr/bin/env bash
LISTEN_ADDRESS=127.0.0.1:8088
script_dir=$(realpath $(dirname $0))
output_dir="$script_dir/../docs"
httpd -fv -p 127.0.0.1:8089 -h "$output_dir"
output_dir="$script_dir/../../docs"
echo "Preview the documentation at http://$LISTEN_ADDRESS"
httpd -fv -p "$LISTEN_ADDRESS" -h "$output_dir"