From 58a63692987765b6fc2b6a2960adf9a94505567c Mon Sep 17 00:00:00 2001 From: Austin Macdonald Date: Thu, 19 Dec 2024 12:10:52 -0600 Subject: [PATCH] use htmlproofer without external link check --- .github/workflows/link-checker.yaml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/link-checker.yaml b/.github/workflows/link-checker.yaml index f13be39..70b7fda 100644 --- a/.github/workflows/link-checker.yaml +++ b/.github/workflows/link-checker.yaml @@ -25,20 +25,18 @@ jobs: with: hugo-version: '${{ steps.hugo-version.outputs.HUGO_VERSION }}' - # If you have a custom install step for themes beyond submodules, do it here - # For example, if your theme is not a submodule but you need to download it: - # - name: Install Theme - # run: | - # git clone https://github.com/username/your-hugo-theme.git themes/your-hugo-theme - - name: Install Requirements - run: | - pip install linkchecker + - name: Build site + run: hugo - - name: Start server - run: | - nohup hugo server --baseURL http://localhost:1313 --bind 0.0.0.0 --disableFastRender > hugo_server.log 2>&1 & - sleep 1 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.0' - - name: Check links + - name: Install dependencies run: | - linkchecker --check-extern -t 1 http://localhost:1313 + echo "source 'https://rubygems.org'\ngem 'html-proofer'" > Gemfile + bundle install + + - name: Run html-proofer + run: htmlproofer ./public --disable-external --no-enforce-https