From e43a067cae1873d5be7c8823eead780823f2ea08 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 25 Nov 2024 18:59:03 +0300 Subject: [PATCH] ci: build docs-checklink package in CI to ensure link validity --- .github/workflows/check-docs.yml | 21 ++++++++++++++------- .github/workflows/manual.yml | 2 +- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index 18e6a2ef..43a97313 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -19,13 +19,6 @@ jobs: - docs-manpages - docs-json steps: - - uses: easimon/maximize-build-space@v10 - with: - overprovision-lvm: true - remove-android: true - remove-dotnet: true - remove-haskell: true - - name: Install Nix uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/magic-nix-cache-action@main @@ -49,3 +42,17 @@ jobs: with: name: "${{ matrix.package }}" path: result/share/doc/nvf + +flake-docs-linkcheck: + name: Validate hyperlinks in documentation sources + runs-on: ubuntu-latest + steps: + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + + - uses: actions/checkout@v4 + name: Checkout + + - name: Build documentation packages + run: nix build .#docs-linkcheck -Lv diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 23381e4e..5b66c8a6 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -47,7 +47,7 @@ jobs: - uses: DeterminateSystems/nix-installer-action@main - uses: DeterminateSystems/magic-nix-cache-action@main - run: | - nix build .#docs + nix build .#docs -Lv cp -r result/share/doc/nvf public - uses: peaceiris/actions-gh-pages@v4 with: