-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (49 loc) · 1.53 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Docs
on:
push:
branches:
- master
workflow_dispatch:
jobs:
docs:
name: Build documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Deps
run: |
rustup toolchain install stable nightly
rustup component add rust-src --toolchain nightly
rustup default stable
cargo install doc-merge
- name: cargo doc
run: |
for d in pixie-*; do
pushd $d
cargo doc \
--color=always \
--no-deps \
--document-private-items \
--all-features \
--package $d \
--package pixie-shared
popd
done
- name: Merge docs
run: |
for d in pixie-*/target/doc; do
doc-merge --src $d --dest doc --create-dest
done
# doc-merge does not work with nightly
# we merge pixie-uefi doc by hand by search is broken
cp -r pixie-uefi/target/x86_64-unknown-uefi/doc/static.files doc/
cp -r pixie-uefi/target/x86_64-unknown-uefi/doc/pixie_uefi doc/
echo 'window.ALL_CRATES = ["pixie_server","pixie_shared","pixie_web","pixie_uefi"];' > doc/crates.js
- name: Make index.html
run: |
echo '<meta http-equiv="Refresh" content="0; url=./pixie_server/index.html">' > doc/index.html
- name: Publish
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
branch: gh-pages
folder: doc