Skip to content

Commit f5e0210

Browse files
committed
docs: Improve the preview script
1 parent f32fb16 commit f5e0210

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/docs/preview.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
LISTEN_ADDRESS=127.0.0.1:8088
4+
35
script_dir=$(realpath $(dirname $0))
4-
output_dir="$script_dir/../docs"
5-
httpd -fv -p 127.0.0.1:8089 -h "$output_dir"
6+
output_dir="$script_dir/../../docs"
7+
echo "Preview the documentation at http://$LISTEN_ADDRESS"
8+
httpd -fv -p "$LISTEN_ADDRESS" -h "$output_dir"

0 commit comments

Comments
 (0)