forked from omnirexflora-labs/omnicoreagent
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocs.sh
More file actions
executable file
·51 lines (48 loc) · 1.65 KB
/
Copy pathdocs.sh
File metadata and controls
executable file
·51 lines (48 loc) · 1.65 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
# Documentation management script for MCPOmni Connect
set -e
case "${1:-help}" in
"serve")
echo "🚀 Starting MkDocs development server..."
uv run mkdocs serve --dev-addr=127.0.0.1:8080
;;
"build")
echo "🔨 Building documentation..."
uv run mkdocs build
echo "✅ Documentation built successfully!"
echo "📁 Static files are in: ./site/"
;;
"install")
echo "📦 Installing documentation dependencies..."
uv sync --group docs
echo "✅ Documentation dependencies installed!"
;;
"clean")
echo "🧹 Cleaning build artifacts..."
rm -rf site/
echo "✅ Build artifacts cleaned!"
;;
"deploy")
echo "🚀 Building and deploying documentation..."
uv run mkdocs gh-deploy --clean
echo "✅ Documentation deployed to GitHub Pages!"
;;
"help"|*)
echo "📖 MCPOmni Connect Documentation Manager"
echo ""
echo "Usage: ./docs.sh [command]"
echo ""
echo "Commands:"
echo " serve - Start development server (http://127.0.0.1:8080)"
echo " build - Build static documentation"
echo " install - Install documentation dependencies"
echo " clean - Clean build artifacts"
echo " deploy - Deploy to GitHub Pages"
echo " help - Show this help message"
echo ""
echo "Examples:"
echo " ./docs.sh serve # Start development server"
echo " ./docs.sh build # Build for production"
echo " ./docs.sh deploy # Deploy to GitHub Pages"
;;
esac