Skip to content

Commit

Permalink
Add api docs to the generated docs site
Browse files Browse the repository at this point in the history
  • Loading branch information
rnijveld authored and davidv1992 committed Nov 30, 2023
1 parent 4c35393 commit 5bb3f25
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,21 @@ jobs:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Build docs
run: cargo doc -p statime --lib --no-deps

- name: Build site
run: utils/mkdocs.sh --no-bind-port build

- name: Copy API docs
run: cp -R target/doc target/docs/site/api

- name: Upload artifact
uses: actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c
with:
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ nav:
- guide/getting-started.md
- Man Pages:
- statime(8): man/statime.8.md
- statime.toml(5): man/statime.toml.5.md

0 comments on commit 5bb3f25

Please sign in to comment.