Skip to content

Commit d6f1631

Browse files
committed
docs: bind mdbook server to all hosts by default
Change `mdbook serve` to bind to 0.0.0.0 instead of localhost, allowing remote access to the docs server. This is useful for development environments like remote servers or containers.
1 parent c42f4ec commit d6f1631

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/docs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ if [ ! -f "docs/mermaid-init.js" ] || [ ! -f "docs/mermaid.min.js" ]; then
88
cd ..
99
fi
1010

11-
# Serve the docs
12-
cd docs && mdbook serve --open
11+
# Serve the docs (bind to all hosts for remote access)
12+
cd docs && mdbook serve --hostname 0.0.0.0 --open

0 commit comments

Comments
 (0)