File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test Docs Build
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+
8+ jobs :
9+ test-docs-build :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout 🛎️
13+ uses : actions/checkout@v5
14+
15+ - name : Setup .NET ⚙️
16+ uses : actions/setup-dotnet@v5
17+ with :
18+ dotnet-version : ' 8.0.x'
19+
20+ - name : Install DocFX 🛠️
21+ run : dotnet tool update -g docfx
22+
23+ - name : Create index.md from README.md
24+ run : cp README.md index.md
25+
26+ - name : Generate DocFx metadata
27+ run : docfx metadata docfx.json
28+
29+ - name : Build Documentation 📖
30+ run : docfx build docfx.json --warningsAsErrors
31+
32+ - name : Verify build output
33+ run : |
34+ if [ ! -d "./_site" ]; then
35+ echo "❌ Error: _site directory not found"
36+ exit 1
37+ fi
38+
39+ # Check if index.html exists (main entry point)
40+ if [ ! -f "./_site/index.html" ]; then
41+ echo "❌ Error: index.html not generated"
42+ exit 1
43+ fi
44+
45+ # Check if any HTML files were generated
46+ html_count=$(find ./_site -name "*.html" | wc -l)
47+ if [ "$html_count" -eq 0 ]; then
48+ echo "❌ Error: No HTML files generated"
49+ exit 1
50+ fi
51+
52+ echo "✅ Documentation built successfully"
53+ echo "📊 Generated $html_count HTML files"
You can’t perform that action at this time.
0 commit comments