Merge pull request #91 from teaxyz/89-dead-link-checker

Check for broken links
This commit is contained in:
Jacob Heider 2022-08-31 17:19:09 -04:00 committed by GitHub
commit c90baa0dbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 4 deletions

View file

@ -30,6 +30,14 @@ jobs:
with:
target: build
- name: Check for broken links
uses: lycheeverse/lychee-action@v1
with:
fail: true
args: --verbose --no-progress './public/**/*.md' './public/**/*.html'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
## means s3 sync will only sync things we need syncd
- uses: chetan/git-restore-mtime-action@v1

View file

@ -38,6 +38,14 @@ jobs:
with:
target: build
- name: Check for broken links
uses: lycheeverse/lychee-action@v1
with:
fail: true
args: --verbose --no-progress './public/**/*.md' './public/**/*.html'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- uses: actions/setup-node@v3
with:
node-version: 14

13
lychee.toml Normal file
View file

@ -0,0 +1,13 @@
verbose = true
no-progress = true
scheme = []
base = "./public"
exclude-mail = true
include = ["./public/**/*.md", "./public/**/*.html"]
exclude = [
"https://fonts.gstatic.com/",
"https://fonts.googleapis.com/",
"https://www.clarity.ms/tag/",
"https://www.googletagmanager.com/gtm.js",
".*/mailto:.*@.*",
]

View file

@ -21,7 +21,6 @@
<footer>
{{- partial "footer.html" . -}}
</footer>
{{- partial "scriptFooter.html" . -}}
</body>
</html>

View file

@ -88,8 +88,6 @@
</div>
</div>
<script src="js/classListShim.js"></script>
<!-- JavaScript Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"

View file

@ -1 +0,0 @@
<script src="/js/main.js"></script>