Error on broken links

This commit is contained in:
Jacob Heider 2022-08-22 16:12:58 -04:00
parent a75fc122ff
commit 7e7a5f8e7a
6 changed files with 29 additions and 4 deletions

View file

@ -30,6 +30,14 @@ jobs:
with: with:
target: build 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 ## means s3 sync will only sync things we need syncd
- uses: chetan/git-restore-mtime-action@v1 - uses: chetan/git-restore-mtime-action@v1

View file

@ -38,6 +38,14 @@ jobs:
with: with:
target: build 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 - uses: actions/setup-node@v3
with: with:
node-version: 14 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> <footer>
{{- partial "footer.html" . -}} {{- partial "footer.html" . -}}
</footer> </footer>
{{- partial "scriptFooter.html" . -}}
</body> </body>
</html> </html>

View file

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