From f5e02102e7abafa61034a7b6fd7e773c29871a86 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 27 Jul 2024 23:27:18 +0300 Subject: [PATCH] docs: Improve the preview script --- bin/docs/preview.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/docs/preview.sh b/bin/docs/preview.sh index 507dec3fc..17521df55 100755 --- a/bin/docs/preview.sh +++ b/bin/docs/preview.sh @@ -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" \ No newline at end of file +output_dir="$script_dir/../../docs" +echo "Preview the documentation at http://$LISTEN_ADDRESS" +httpd -fv -p "$LISTEN_ADDRESS" -h "$output_dir" \ No newline at end of file