Skip to content

Commit

Permalink
build docs during ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Virv12 committed Dec 13, 2023
1 parent 31df7a4 commit 1a48295
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Docs

on:
push:
branches:
- doc-test
workflow_dispatch:

jobs:
docs:
name: Build documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@nightly
with:
component: rust-src
- name: Install Deps
run: |
cargo install doc-merge
- name: cargo doc
run: |
for d in pixie-*; do
pushd $d
cargo doc --color=always --no-deps
popd
done
- name: Merge docs
run: |
mkdir doc
for d in pixie-*; do
doc-merge --src $d/target/doc --dest doc
done
- name: Make index.html
run: |
echo '<meta http-equiv="Refresh" content="0; url=./pixie_server/index.html">' > doc/index.html
- name: Publish
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: target/doc

0 comments on commit 1a48295

Please sign in to comment.