Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Emruz Hossain
7691a4692e
Merge branch 'main' into html-proof 2024-01-01 14:58:37 +06:00
hossainemruz
b22c606137 Ignore # URL
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2024-01-01 13:33:20 +06:00
hossainemruz
0a84f2773a Add HTML proofer action
Signed-off-by: hossainemruz <hossainemruz@gmail.com>
2024-01-01 13:33:20 +06:00

View file

@ -90,3 +90,35 @@ jobs:
- uses: actions/checkout@v4.1.1 - uses: actions/checkout@v4.1.1
# run markdown linter # run markdown linter
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.15 - uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
proof-html:
runs-on: ubuntu-latest
steps:
# checkout to the commit that has been pushed
- uses: actions/checkout@v4.1.1
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install node modules
run: npm install
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.6.0
with:
hugo-version: 'latest'
extended: true
- name: Build
run: |
cd exampleSite
hugo --minify
# Run HTML Proofer
- uses: anishathalye/proof-html@v2.1.2
with:
directory: exampleSite/public
enforce_https: false
ignore_url: "#"