Skip to content

Commit 74e9809

Browse files
dev: lychee excludes an errors as warnings
1 parent d0838ec commit 74e9809

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/config/lychee.toml

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# ----------------------------------------
33
# Base URL or website root directory to check relative URLs.
4-
base = "https://practical.li/"
4+
base = "https://practical.li/learn-clojure"
55

66
# Only test links with the given schemes (e.g. https).
77
# Omit to check links with any other scheme.
@@ -12,12 +12,15 @@ scheme = ["https"]
1212
# Exclusions
1313

1414
# Exclude URLs and mail addresses from checking (supports regex).
15-
# exclude = ['^https://www\.linkedin\.com', '^https://web\.archive\.org/web/']
15+
exclude = ['^https://www\.linkedin\.com', '^https://127.0.0.0']
16+
17+
# Exclude these filesystem paths from getting checked.
18+
exclude_path = ["mkdocs.yml", "overrides", "includes", ".github", ".git"]
1619

1720
# Exclude all private IPs from checking.
1821
# Equivalent to setting `exclude_private`, `exclude_link_local`, and
1922
# `exclude_loopback` to true.
20-
exclude_all_private = false
23+
exclude_all_private = true
2124

2225
# Check mail addresses
2326
include_mail = false

.github/config/markdown-lint.jsonc

+3-7
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
// MD033/no-inline-html - Inline HTML
180180
"MD033": {
181181
// Allowed elements
182-
"allowed_elements": ["iframe", "p", "div"]
182+
"allowed_elements": ["a", "iframe", "img", "p", "div"]
183183
},
184184

185185
// MD034/no-bare-urls - Bare URL used
@@ -226,9 +226,7 @@
226226
"MD042": true,
227227

228228
// MD043/required-headings/required-headers - Required heading structure
229-
"MD043": {
230-
231-
},
229+
"MD043": {},
232230

233231
// MD044/proper-names - Proper names should have the correct capitalization
234232
"MD044": {
@@ -279,8 +277,6 @@
279277
// MD053/link-image-reference-definitions - Link and image reference definitions should be needed
280278
"MD053": {
281279
// Ignored definitions
282-
"ignored_definitions": [
283-
"//"
284-
]
280+
"ignored_definitions": ["//"]
285281
}
286282
}

.github/config/megalinter.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ REPOSITORY_TRUFFLEHOG_DISABLE_ERRORS: true # Errors only as warnings
5555
# SPELL_CSPELL_DISABLE_ERRORS: true
5656
SPELL_MISSPELL_DISABLE_ERRORS: true
5757
SPELL_LYCHEE_CONFIG_FILE: ".github/config/lychee.toml"
58-
# SPELL_LYCHEE_DISABLE_ERRORS: true # Errors are only warnings
58+
SPELL_LYCHEE_DISABLE_ERRORS: true # Errors are only warnings
5959

6060
# YAML_PRETTIER_FILTER_REGEX_EXCLUDE: (docs/)
6161
# YAML_YAMLLINT_FILTER_REGEX_EXCLUDE: (docs/)

.github/workflows/megalinter.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# MegaLinter GitHub Action configuration file
33
# More info at https://megalinter.github.io
4-
# All variables described in https://megalinter.github.io/configuration/
4+
# All variables described in https://megalinter.io/latest/configuration/
55

66
name: MegaLinter
77
on:

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@
2424
- ci: spell lychee & repository trufflehog linters warn only (false positives)
2525
- intro: refactor learning path order and enhance content
2626
- dev: standardise github workflow and mkdocs configuration
27+
- dev: lychee excludes an errors as warnings

0 commit comments

Comments
 (0)