Skip to content

Commit

Permalink
use htmlproofer without external link check
Browse files Browse the repository at this point in the history
  • Loading branch information
asmacdo committed Dec 19, 2024
1 parent 568565b commit 58a6369
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/link-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 58a6369

Please sign in to comment.