Skip to content

Commit ccb8ee2

Browse files
committed
last try for now
1 parent 5e778c9 commit ccb8ee2

File tree

3 files changed

+42
-53
lines changed

3 files changed

+42
-53
lines changed

.doc/Cargo.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[workspace]
2+
members = [
3+
"../rustecal",
4+
"../rustecal-types-string",
5+
"../rustecal-types-bytes",
6+
"../rustecal-types-protobuf"
7+
]
8+
9+
resolver = "2"

.github/workflows/deploy-docs.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Generate API Documentation
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
doc:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Rust (nightly) with docs
17+
uses: actions-rs/toolchain@v1
18+
with:
19+
toolchain: nightly
20+
override: true
21+
components: rust-docs
22+
23+
- name: Generate Rust API documentation (doc-only workspace)
24+
working-directory: .doc
25+
run: |
26+
export RUSTDOCFLAGS="--cfg docsrs"
27+
cargo +nightly doc --no-deps --workspace
28+
29+
- name: Deploy to GitHub Pages
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: .doc/target/doc

0 commit comments

Comments
 (0)