Skip to content

Commit bd2d35b

Browse files
committed
Fix docs deployment: add index.html for workspace docs
1 parent d766b68 commit bd2d35b

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/docs.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,29 @@ jobs:
3131
~/.cargo/git
3232
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
3333

34-
- name: Build Documentation
35-
run: cargo doc --no-deps --workspace --document-private-items
34+
- name: Build Documentation
35+
run: cargo doc --no-deps --workspace --document-private-items
3636

37-
- name: Setup Pages
37+
- name: Create index.html
38+
run: |
39+
cat > target/doc/index.html << 'EOF'
40+
<html>
41+
<head>
42+
<title>Code-Guardian Documentation</title>
43+
</head>
44+
<body>
45+
<h1>Code-Guardian Workspace Documentation</h1>
46+
<ul>
47+
<li><a href="code_guardian_cli/index.html">CLI Crate</a></li>
48+
<li><a href="code_guardian_core/index.html">Core Crate</a></li>
49+
<li><a href="code_guardian_output/index.html">Output Crate</a></li>
50+
<li><a href="code_guardian_storage/index.html">Storage Crate</a></li>
51+
</ul>
52+
</body>
53+
</html>
54+
EOF
55+
56+
- name: Setup Pages
3857
uses: actions/configure-pages@v4
3958

4059
- name: Upload artifact

0 commit comments

Comments
 (0)