From 4c9173581a029692e25636c5ab962caaa96931d7 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Sat, 19 Aug 2023 19:47:39 +0200 Subject: [PATCH] generate oranda websites for coreutils and findutils --- .github/workflows/docs.yml | 46 ++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 713d6bde7..8f8d77955 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -29,45 +29,43 @@ jobs: default: true profile: minimal - - name: Install `mdbook` dep + - name: Install `libacl` run: | sudo apt install libacl1-dev - - name: Install `mdbook` - uses: actions-rs/install@v0.1 - with: - crate: mdbook - version: latest - use-tool-cache: false - env: - RUSTUP_TOOLCHAIN: stable - - name: Download tldr archive run: | curl https://tldr.sh/assets/tldr.zip --output coreutils/docs/tldr.zip - - name: Install `mdbook-toc` - uses: actions-rs/install@v0.1 + - name: Install necessary tools (oranda, mdbook and mdbook-toc) + uses: taiki-e/install-action@v2 with: - crate: mdbook-toc - version: latest - use-tool-cache: false - env: - RUSTUP_TOOLCHAIN: stable + tool: oranda,mdbook,mdbook-toc - - name: Build user Documentation + - name: Build Coreutils Docs run: | cd coreutils cargo run --bin uudoc --all-features - cd docs - mdbook build + oranda build - - name: Deploy Docs + - name: Deploy Coreutils Docs uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./coreutils/docs/book/ - destination_dir: user/ + publish_dir: ./coreutils/public/ + destination_dir: coreutils/ + + - name: Build Findutils Docs + run: | + cd findutils + oranda build + + - name: Deploy Findutils Docs + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./findutils/public/ + destination_dir: findutils/ docs: name: generate the dev doc @@ -97,7 +95,7 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./coreutils/target/doc - destination_dir: dev/ + destination_dir: coreutils/dev/ build-report: