add redirect for crate docs on gh pages

This commit is contained in:
raf 2025-02-05 03:34:01 +03:00
commit be3f00b51e
No known key found for this signature in database
GPG key ID: EED98D11B85A2819
2 changed files with 11 additions and 3 deletions

View file

@ -18,7 +18,7 @@ concurrency:
jobs:
rustdoc:
name: Build Rust API docs
name: Build API docs
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: 1
@ -31,11 +31,18 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build Documentation
run: cargo doc
run: |
cargo doc --no-deps
echo '<meta http-equiv="refresh" content="0;url=mrc/index.html">' > target/doc/index.html
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc/mrc
publish_dir: ./target/doc
publish_branch: gh-pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: target/doc

View file

@ -3,6 +3,7 @@ name = "mrc"
version = "0.1.0"
edition = "2021"
default-run = "cli"
authors = ["NotAShelf <raf@notashelf.dev>"]
# CLI implementation for terminal usage
[[bin]]