Skip to content

Commit 67cebe8

Browse files
authored
Merge pull request #7 from tertsdiepraam/oranda-setup
Generate oranda websites for coreutils and findutils
2 parents f0e8d44 + 4c91735 commit 67cebe8

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

.github/workflows/docs.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,45 +29,43 @@ jobs:
2929
default: true
3030
profile: minimal
3131

32-
- name: Install `mdbook` dep
32+
- name: Install `libacl`
3333
run: |
3434
sudo apt install libacl1-dev
3535
36-
- name: Install `mdbook`
37-
uses: actions-rs/install@v0.1
38-
with:
39-
crate: mdbook
40-
version: latest
41-
use-tool-cache: false
42-
env:
43-
RUSTUP_TOOLCHAIN: stable
44-
4536
- name: Download tldr archive
4637
run: |
4738
curl https://tldr.sh/assets/tldr.zip --output coreutils/docs/tldr.zip
4839
49-
- name: Install `mdbook-toc`
50-
uses: actions-rs/install@v0.1
40+
- name: Install necessary tools (oranda, mdbook and mdbook-toc)
41+
uses: taiki-e/install-action@v2
5142
with:
52-
crate: mdbook-toc
53-
version: latest
54-
use-tool-cache: false
55-
env:
56-
RUSTUP_TOOLCHAIN: stable
43+
tool: oranda,mdbook,mdbook-toc
5744

58-
- name: Build user Documentation
45+
- name: Build Coreutils Docs
5946
run: |
6047
cd coreutils
6148
cargo run --bin uudoc --all-features
62-
cd docs
63-
mdbook build
49+
oranda build
6450
65-
- name: Deploy Docs
51+
- name: Deploy Coreutils Docs
52+
uses: peaceiris/actions-gh-pages@v3
53+
with:
54+
github_token: ${{ secrets.GITHUB_TOKEN }}
55+
publish_dir: ./coreutils/public/
56+
destination_dir: coreutils/
57+
58+
- name: Build Findutils Docs
59+
run: |
60+
cd findutils
61+
oranda build
62+
63+
- name: Deploy Findutils Docs
6664
uses: peaceiris/actions-gh-pages@v3
6765
with:
6866
github_token: ${{ secrets.GITHUB_TOKEN }}
69-
publish_dir: ./coreutils/docs/book/
70-
destination_dir: user/
67+
publish_dir: ./findutils/public/
68+
destination_dir: findutils/
7169

7270
docs:
7371
name: generate the dev doc
@@ -97,7 +95,7 @@ jobs:
9795
with:
9896
github_token: ${{ secrets.GITHUB_TOKEN }}
9997
publish_dir: ./coreutils/target/doc
100-
destination_dir: dev/
98+
destination_dir: coreutils/dev/
10199

102100

103101
build-report:

0 commit comments

Comments
 (0)