mirror of
https://github.com/ivabus/www
synced 2024-11-22 19:05:05 +03:00
Merge pull request #91 from teaxyz/89-dead-link-checker
Check for broken links
This commit is contained in:
commit
c90baa0dbe
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:
|
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 sync’d
|
## means s3 sync will only sync things we need sync’d
|
||||||
- uses: chetan/git-restore-mtime-action@v1
|
- 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:
|
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
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>
|
<footer>
|
||||||
{{- partial "footer.html" . -}}
|
{{- partial "footer.html" . -}}
|
||||||
</footer>
|
</footer>
|
||||||
{{- partial "scriptFooter.html" . -}}
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -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"
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
<script src="/js/main.js"></script>
|
|
Loading…
Reference in a new issue