forked from PlebeiusGaragicus/VibeReaderTwo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserve-docs.sh
More file actions
37 lines (30 loc) Β· 948 Bytes
/
serve-docs.sh
File metadata and controls
37 lines (30 loc) Β· 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# VibeReader Documentation Server
# Builds and serves the MkDocs documentation locally
echo "π VibeReader Documentation"
echo "=============================="
echo ""
# Check if Python is installed
if ! command -v python3 &> /dev/null; then
echo "β Python 3 is not installed. Please install Python 3 first."
exit 1
fi
# Check if pip is installed
if ! command -v pip3 &> /dev/null && ! command -v pip &> /dev/null; then
echo "β pip is not installed. Please install pip first."
exit 1
fi
# Install dependencies if needed
if ! command -v mkdocs &> /dev/null; then
echo "π¦ Installing MkDocs and dependencies..."
pip install -q -r docs-requirements.txt
echo "β
Dependencies installed"
echo ""
fi
# Serve the documentation
echo "π Starting documentation server..."
echo "π Open http://127.0.0.1:8000 in your browser"
echo ""
echo "Press Ctrl+C to stop the server"
echo ""
mkdocs serve