Skip to content

chore: fix linting issues #9

chore: fix linting issues

chore: fix linting issues #9

Workflow file for this run

name: Check
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
markdown:
name: Lining Markdown files
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- name: Install mdl
run: gem install mdl
- name: Linting markdowns
run: mdl --style=.mdlrc.rb ./content
- name: Check markdowns links
run: gaurav-nelson/github-action-markdown-link-check@v1
check-images:
name: Check images
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check images
run: python .github/workflows/check_images.py ./website
html-proofer:
name: HTML proofer
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.121.2
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--gc --minify \
--baseURL "https://docs.pactus.com/"
- name: HTML5Validator
uses: Cyb3r-Jak3/[email protected]
with:
root: public/
- name: Check HTML
uses: chabad360/htmlproofer@master
with:
directory: "./public"