mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-18 00:38:14 +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:
|
jobs:
|
||||||
rustdoc:
|
rustdoc:
|
||||||
name: Build Rust API docs
|
name: Build API docs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|
@ -31,11 +31,18 @@ jobs:
|
||||||
uses: actions-rust-lang/setup-rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
|
||||||
- name: Build Documentation
|
- 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
|
- name: Deploy Docs
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./target/doc/mrc
|
publish_dir: ./target/doc
|
||||||
publish_branch: gh-pages
|
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"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
default-run = "cli"
|
default-run = "cli"
|
||||||
|
authors = ["NotAShelf <raf@notashelf.dev>"]
|
||||||
|
|
||||||
# CLI implementation for terminal usage
|
# CLI implementation for terminal usage
|
||||||
[[bin]]
|
[[bin]]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue