Skip to content

Commit a638c8c

Browse files
committed
chore(ci): publish rustdoc at /docs on Pages
- Build workspace rustdoc in Pages workflow and copy to public/docs\n- Update site header [docs] link to /docs/\n- Inherit repository URL in member crates for rustdoc 'Repository' links
1 parent 5da4739 commit a638c8c

10 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/pages.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v4
2323

24+
- name: Install Rust
25+
uses: dtolnay/rust-toolchain@stable
26+
27+
- name: Build Rust docs
28+
run: cargo doc --workspace --no-deps --all-features
29+
2430
- name: Install Zola
2531
uses: taiki-e/install-action@v2
2632
with:
@@ -29,6 +35,8 @@ jobs:
2935
- name: Build site
3036
run: |
3137
zola --root keyless-website build --output-dir public
38+
mkdir -p public/docs
39+
cp -R target/doc/* public/docs/
3240
3341
- name: Upload artifact
3442
uses: actions/upload-pages-artifact@v3

keyless-audio/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "keyless-audio"
33
version.workspace = true
44
edition.workspace = true
5+
repository.workspace = true
56
license.workspace = true
67
publish = false
78

keyless-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "keyless-core"
33
version.workspace = true
44
edition.workspace = true
5+
repository.workspace = true
56
license.workspace = true
67
publish = false
78

keyless-logging/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "keyless-logging"
33
version.workspace = true
44
edition.workspace = true
5+
repository.workspace = true
56
license.workspace = true
67
publish = false
78

keyless-models/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "keyless-models"
33
version.workspace = true
44
edition.workspace = true
5+
repository.workspace = true
56
publish = false
67
license.workspace = true
78

keyless-output/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "keyless-output"
33
version.workspace = true
44
edition.workspace = true
5+
repository.workspace = true
56
license.workspace = true
67
publish = false
78

keyless-runtime/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "keyless-runtime"
33
version.workspace = true
44
edition.workspace = true
5+
repository.workspace = true
56
license.workspace = true
67
publish = false
78

keyless-website/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</svg>[github]
1717
</a>
1818
<a href="https://github.com/hate/keyless/releases" class="text-theme-text-secondary hover:text-theme-text-primary transition-colors">[releases]</a>
19-
<a href="https://github.com/hate/keyless/blob/main/CONTRIBUTING.md" class="text-theme-text-secondary hover:text-theme-text-primary transition-colors">[docs]</a>
19+
<a href="/docs/" class="text-theme-text-secondary hover:text-theme-text-primary transition-colors">[docs]</a>
2020
</div>
2121
</div>
2222
<div class="space-y-2">

keyless-whisper/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "keyless-whisper"
33
version.workspace = true
44
edition.workspace = true
5+
repository.workspace = true
56
license.workspace = true
67
publish = false
78

keyless/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "keyless"
33
version.workspace = true
44
edition.workspace = true
5+
repository.workspace = true
56
publish = false
67
license.workspace = true
78

0 commit comments

Comments
 (0)