Skip to content

Commit cfa9249

Browse files
Merge pull request #7 from GradleUp/linting
Add the static site linter + Cleanup documentation imports
2 parents e2a68cd + df545f8 commit cfa9249

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Continuous Integration
22

33
on:
4-
# We have deploy there
5-
# push:
6-
# branches: [ "main" ]
74
pull_request:
85
branches: [ "main" ]
96
workflow_dispatch:
7+
inputs:
8+
runLint:
9+
description: 'Run the static linter'
10+
required: false
11+
default: false
1012

1113
jobs:
1214
# Build job
@@ -45,3 +47,14 @@ jobs:
4547
mkdocs build
4648
env: |
4749
FULL_BUILD=true
50+
51+
- name: Lint the static site
52+
uses: anishathalye/proof-html@v2
53+
if: ${{ inputs.runLint }}
54+
with:
55+
directory: ./_site
56+
enforce_https: false
57+
tokens: |
58+
{"https://github.com": "${{ secrets.GITHUB_TOKEN }}"}
59+
ignore_url: |
60+
https://fonts.gstatic.com

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ plugins:
8181
imports: [ README.md, CONTRIBUTING.md ]
8282
- name: static-analysis-plugin
8383
import_url: 'https://github.com/GradleUp/static-analysis-plugin?branch=master&edit_uri=/blob/master/'
84-
imports: [ README.md, CHANGELOG.md ]
84+
imports: [ README.md, CHANGELOG.md, LICENSE, 'docs/**' ]
8585
- name: shadow
8686
import_url: 'https://github.com/GradleUp/shadow?branch=main&edit_uri=/blob/main/'
8787
imports: [ README.md ]

0 commit comments

Comments
 (0)