mirror of
https://github.com/ivabus/www
synced 2024-11-22 18:55:06 +03:00
Error on broken links
This commit is contained in:
parent
a75fc122ff
commit
7e7a5f8e7a
6 changed files with 29 additions and 4 deletions
8
.github/workflows/cd.yml
vendored
8
.github/workflows/cd.yml
vendored
|
@ -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 sync’d
|
||||
- uses: chetan/git-restore-mtime-action@v1
|
||||
|
||||
|
|
8
.github/workflows/staging.yml
vendored
8
.github/workflows/staging.yml
vendored
|
@ -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
13
lychee.toml
Normal 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:.*@.*",
|
||||
]
|
|
@ -21,7 +21,6 @@
|
|||
<footer>
|
||||
{{- partial "footer.html" . -}}
|
||||
</footer>
|
||||
{{- partial "scriptFooter.html" . -}}
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -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"
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
<script src="/js/main.js"></script>
|
Loading…
Reference in a new issue