diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 431d47a..916208f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 diff --git a/mkdocs.yml b/mkdocs.yml index 46c3de3..2f91cba 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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 ]