forked from managedcode/Orleans.StateMachine
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-docs.sh
More file actions
executable file
·47 lines (39 loc) · 1.17 KB
/
build-docs.sh
File metadata and controls
executable file
·47 lines (39 loc) · 1.17 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
#!/bin/bash
# Build Orleans.StateMachineES Documentation
# This script builds the projects and generates DocFx documentation
set -e # Exit on error
echo "==================================="
echo "Building Orleans.StateMachineES Documentation"
echo "==================================="
echo ""
# Step 1: Restore dependencies
echo "[1/4] Restoring dependencies..."
dotnet restore
# Step 2: Build projects (generates XML documentation)
echo "[2/4] Building projects..."
dotnet build --no-restore --configuration Release
# Step 3: Install DocFx if not present
echo "[3/4] Checking DocFx installation..."
if ! command -v docfx &> /dev/null; then
echo "DocFx not found. Installing..."
dotnet tool install -g docfx
else
echo "DocFx already installed."
fi
# Step 4: Build documentation
echo "[4/4] Building documentation..."
cd docfx
docfx docfx.json
echo ""
echo "==================================="
echo "Documentation build complete!"
echo "==================================="
echo ""
echo "Output directory: docfx/_site/"
echo ""
echo "To serve documentation locally, run:"
echo " cd docfx"
echo " docfx serve _site"
echo ""
echo "Then open: http://localhost:8080"
echo ""