Skip to content

Commit

Permalink
chore: fix index page
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Dec 15, 2024
1 parent abe7d15 commit fecfc68
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- v*.*.*
pull_request:
branches: [main]
paths:
- ".github/workflows/docs.yml"

env:
CARGO_NET_GIT_FETCH_WITH_CLI: true
Expand Down Expand Up @@ -39,8 +41,12 @@ jobs:
- name: Build documentation
run: cargo doc --workspace

# We only want the index page to display workspace crates, so we build
# separately and copy over the index as a hack
- name: Build index page
run: cargo doc --workspace --no-deps --exclude "openvm-benchmarks"
run: |
cargo doc --workspace --no-deps --exclude "openvm-benchmarks" --target-dir target/doc-nodeps
cp target/doc-nodep/doc/index.html target/doc/
env:
RUSTDOCFLAGS: --enable-index-page -Zunstable-options

Expand Down

0 comments on commit fecfc68

Please sign in to comment.