name: RustDoc CI
on: [push, pull_request]
jobs:
docs:
name: Rust Cargo Doc CI on ${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v6.0.2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Cargo doc
uses: actions-rs/cargo@v1
with:
command: doc
args: --no-deps
- name: Build landing page with README and add .nojekyll
run: |
python3 -m venv .venv
.venv/bin/pip install --quiet markdown
.venv/bin/python build_landing_page.py > target/doc/index.html
touch target/doc/.nojekyll