Skip to content

build docs during ci #3

build docs during ci

build docs during ci #3

Workflow file for this run

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