mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-15 15:33:47 +00:00
add redirect for crate docs on gh pages
This commit is contained in:
parent
cfb00d0115
commit
be3f00b51e
2 changed files with 11 additions and 3 deletions
13
.github/workflows/doc.yml
vendored
13
.github/workflows/doc.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue