Skip to content

Commit

Permalink
Enable index page for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Sep 17, 2024
1 parent 0f2f2e9 commit fcdbee7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ on:

env:
CARGO_TERM_COLOR: always
# Nightly Rust necessary for building docs.
RUST_NIGHTLY_VERSION: nightly-2024-08-01

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -69,7 +71,7 @@ jobs:
document:
needs:
- build_and_test
if: github.event_name == 'push' && github.ref_type == 'branch'
# if: github.event_name == 'push' && github.ref_type == 'branch'
permissions:
contents: write
runs-on: ubuntu-latest
Expand All @@ -80,15 +82,15 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: ${{ env.RUST_NIGHTLY_VERSION }}
- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Build docs
run: |
cargo clean --doc && \
cargo rustdoc -p zksync_vm2_interface && \
cargo rustdoc -p zksync_vm2
cargo rustdoc -p zksync_vm2_interface -- -Z unstable-options --enable-index-page && \
cargo rustdoc -p zksync_vm2 -- -Z unstable-options --enable-index-page
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
Expand Down

0 comments on commit fcdbee7

Please sign in to comment.