Skip to content

Commit

Permalink
Merge pull request #44 from Rust-Wellcome/dev
Browse files Browse the repository at this point in the history
0.1.5
  • Loading branch information
DLBPointon authored Aug 15, 2024
2 parents c0c4aa5 + 8edce07 commit 66ba192
Show file tree
Hide file tree
Showing 28 changed files with 21,139 additions and 497 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Documentation

on:
push:
branches:
- master

jobs:
docs:
permissions:
contents: write
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- name: Build documentation
run: RUSTDOCFLAGS="--html-in-header katex-header.html" cargo doc --no-deps
# uses: actions-rs/cargo@v1
# with:
# command: doc
# args: --verbose --no-deps --all-features

- name: Finalize documentation
run: |
CRATE_NAME=$(echo '${{ github.repository }}-lib' | tr '[:upper:]' '[:lower:]' | cut -f2 -d"/")
echo "<meta http-equiv=\"refresh\" content=\"0; url=${CRATE_NAME/-/_}\">" > target/doc/index.html
touch target/doc/.nojekyll
- name: Upload as artifact
uses: actions/upload-artifact@v2
with:
name: Documentation
path: target/doc

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
# ACCESS_TOKEN: ${{ secrets.GH_PAT }}
# BRANCH: gh-pages
folder: target/doc
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
.idea
Loading

0 comments on commit 66ba192

Please sign in to comment.