Skip to content

Commit

Permalink
Merge pull request #7 from GradleUp/linting
Browse files Browse the repository at this point in the history
Add the static site linter + Cleanup documentation imports
  • Loading branch information
oleg-nenashev authored Aug 6, 2024
2 parents e2a68cd + df545f8 commit cfa9249
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
name: Continuous Integration

on:
# We have deploy there
# push:
# branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
runLint:
description: 'Run the static linter'
required: false
default: false

jobs:
# Build job
Expand Down Expand Up @@ -45,3 +47,14 @@ jobs:
mkdocs build
env: |
FULL_BUILD=true
- name: Lint the static site
uses: anishathalye/proof-html@v2
if: ${{ inputs.runLint }}
with:
directory: ./_site
enforce_https: false
tokens: |
{"https://github.com": "${{ secrets.GITHUB_TOKEN }}"}
ignore_url: |
https://fonts.gstatic.com
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ plugins:
imports: [ README.md, CONTRIBUTING.md ]
- name: static-analysis-plugin
import_url: 'https://github.com/GradleUp/static-analysis-plugin?branch=master&edit_uri=/blob/master/'
imports: [ README.md, CHANGELOG.md ]
imports: [ README.md, CHANGELOG.md, LICENSE, 'docs/**' ]
- name: shadow
import_url: 'https://github.com/GradleUp/shadow?branch=main&edit_uri=/blob/main/'
imports: [ README.md ]
Expand Down

0 comments on commit cfa9249

Please sign in to comment.