Browse Source

Merge pull request #29 from rust3ds/feature/gh-pages-docs

First pass of generating docs to github pages
pull/32/head
Ian Chamberlain 1 year ago committed by GitHub
parent
commit
2da7285b7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .github/workflows/ci.yml
  2. 31
      .github/workflows/docs.yml

4
.github/workflows/ci.yml

@ -24,7 +24,7 @@ jobs: @@ -24,7 +24,7 @@ jobs:
container: devkitpro/devkitarm
steps:
- name: Checkout branch
uses: actions/checkout@v2
uses: actions/checkout@v4
- uses: rust3ds/test-runner/setup@v1
with:
@ -57,7 +57,7 @@ jobs: @@ -57,7 +57,7 @@ jobs:
container: devkitpro/devkitarm
steps:
- name: Checkout branch
uses: actions/checkout@v2
uses: actions/checkout@v4
- uses: rust3ds/test-runner/setup@v1
with:

31
.github/workflows/docs.yml

@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
name: docs
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
container: devkitpro/devkitarm
steps:
- name: Checkout branch
uses: actions/checkout@v4
- uses: rust3ds/test-runner/setup@v1
with:
toolchain: nightly
- name: Build workspace docs
run: cargo 3ds --verbose doc --verbose --no-deps --workspace
- name: Upload generated docs
uses: actions/upload-pages-artifact@v2
with:
path: ./target/armv6k-nintendo-3ds/doc
- name: Deploy GitHub pages
uses: actions/deploy-pages@v2
Loading…
Cancel
Save