-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-docs.sh
More file actions
executable file
·35 lines (27 loc) · 913 Bytes
/
build-docs.sh
File metadata and controls
executable file
·35 lines (27 loc) · 913 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
#!/bin/bash
# Local documentation build script
set -e
echo "Building Personal Finance Documentation..."
# Change to docs directory
cd "$(dirname "$0")/docs"
# Set environment variables for Django
export DATABASE_URL="sqlite:///docs_build.db"
export DJANGO_SETTINGS_MODULE="config.settings.local"
export DJANGO_SECRET_KEY="local-docs-build-key"
# Clean previous builds
echo "Cleaning previous builds..."
make clean
# Build HTML documentation
echo "Building HTML documentation..."
make html
echo "✅ Documentation built successfully!"
echo "📖 Open docs/_build/html/index.html in your browser to view the documentation"
# Optional: Start development server
read -p "Start local docs server? (y/n): " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "🚀 Starting documentation server at http://localhost:8000"
echo " Press Ctrl+C to stop"
cd _build/html
python -m http.server 8000
fi