-
Notifications
You must be signed in to change notification settings - Fork 173
[FIX] Lychee failing action #352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 4.x
Are you sure you want to change the base?
Changes from 1 commit
07fd2ee
f470d1d
067678c
aa7a31c
70900be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,14 +2,29 @@ | |||||
|
|
||||||
| # Verbose program output | ||||||
| # Accepts log level: "error", "warn", "info", "debug", "trace" | ||||||
| #verbose = "warn" | ||||||
| verbose = "warn" | ||||||
|
|
||||||
| # Output format | ||||||
| format = "detailed" | ||||||
|
|
||||||
| # Output display mode | ||||||
| mode = "emoji" | ||||||
|
|
||||||
| # Don't show interactive progress bar while checking links. | ||||||
| no_progress = false | ||||||
|
|
||||||
| # Path to summary output file. | ||||||
| output = ".github/link_report.md" | ||||||
|
|
||||||
| # Show host statistics | ||||||
| host_stats = true | ||||||
|
|
||||||
| # Extract links instead of checking them | ||||||
| dump = true | ||||||
|
|
||||||
| # Dump inputs instead of doing link extraction / checking | ||||||
| dump_inputs = true | ||||||
|
|
||||||
| ############################# Cache ############################### | ||||||
|
|
||||||
| # Enable link caching. This can be helpful to avoid checking the same links on | ||||||
|
|
@@ -19,8 +34,14 @@ cache = true | |||||
| # Discard all cached requests older than this duration. | ||||||
| max_cache_age = "1d" | ||||||
|
|
||||||
| # A list of status codes that will be ignored from the cache | ||||||
| cache_exclude_status = "500.." | ||||||
|
|
||||||
| ############################# Runtime ############################# | ||||||
|
|
||||||
| # File to read and write cookies | ||||||
| cookie_jar = "cookie-jar" | ||||||
|
|
||||||
| # Number of threads to utilize. | ||||||
| # Defaults to number of cores available to the system if omitted. | ||||||
| threads = 2 | ||||||
|
|
@@ -34,6 +55,18 @@ max_retries = 2 | |||||
| # Maximum number of concurrent link checks. | ||||||
| max_concurrency = 14 | ||||||
|
|
||||||
| # extension applied to files without extension | ||||||
| default_extension = "md" | ||||||
|
|
||||||
| # GitHub API token | ||||||
| github_token = "secret" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| # Resolve directories to index files | ||||||
| index_files = ["index.html"] | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| # Preprocess input files | ||||||
| preprocess = { command = "preprocess.sh" } | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| ############################# Requests ############################ | ||||||
|
|
||||||
| # User agent to send with each request. | ||||||
|
|
@@ -46,14 +79,21 @@ timeout = 20 | |||||
| retry_wait_time = 2 | ||||||
|
|
||||||
| # Comma-separated list of accepted status codes for valid links. | ||||||
| accept = [200, 429] | ||||||
| # Supported values are: | ||||||
| # | ||||||
| # accept = ["200..=204", "429"] | ||||||
| # accept = "200..=204, 429" | ||||||
| # accept = ["200", "429"] | ||||||
| # accept = "200, 429" | ||||||
| accept = ["200", "429"] | ||||||
|
|
||||||
| # Proceed for server connections considered insecure (invalid TLS). | ||||||
| insecure = false | ||||||
|
|
||||||
| # Only test links with the given schemes (e.g. https). | ||||||
| # Omit to check links with any scheme. | ||||||
| scheme = [ "https" ] | ||||||
| # Omit to check links with any other scheme. | ||||||
| # At the moment, we support http, https, file, and mailto. | ||||||
| scheme = ["https"] | ||||||
|
|
||||||
| # When links are available using HTTPS, treat HTTP links as errors. | ||||||
| require_https = false | ||||||
|
|
@@ -62,45 +102,62 @@ require_https = false | |||||
| method = "get" | ||||||
|
|
||||||
| # Custom request headers | ||||||
| headers = [] | ||||||
| header = { "accept" = "text/html", "x-custom-header" = "value" } | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need a custom header here. 👍🏻
Suggested change
|
||||||
|
|
||||||
| # Remap URI matching pattern to different URI. | ||||||
| remap = [ "https://example.com http://example.invalid" ] | ||||||
| remap = ["https://example.com http://example.invalid"] | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| # Fallback extensions to apply when a URL does not specify one. | ||||||
| # This is common in documentation tools that cross-reference files without extensions. | ||||||
| fallback_extensions = ["md", "html"] | ||||||
|
|
||||||
| # Base URL or website root directory to check relative URLs. | ||||||
| #base = "https://pestphp.com" | ||||||
| #base_url = "https://pestphp.com" | ||||||
|
|
||||||
| # Enable the checking of fragments in links. | ||||||
| include_fragments = true | ||||||
|
|
||||||
| # HTTP basic auth support. This will be the username and password passed to the | ||||||
| # authorization HTTP header. See | ||||||
| # <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization> | ||||||
| #basic_auth = ["example.com user:pwd"] | ||||||
| # Minimum accepted TLS Version | ||||||
| min_tls = "TLSv1_3" | ||||||
|
|
||||||
| ############################# Exclusions ########################## | ||||||
|
|
||||||
| # Skip missing input files (default is to error if they don't exist). | ||||||
| skip_missing = false | ||||||
|
|
||||||
| # Do not skip hidden directories and files | ||||||
| hidden = true | ||||||
|
|
||||||
| # Do not skip files that are ignored | ||||||
| no_ignore = true | ||||||
|
|
||||||
| # Check links inside `<code>` and `<pre>` blocks as well as Markdown code | ||||||
| # blocks. | ||||||
| include_verbatim = false | ||||||
|
|
||||||
| # Ignore case of paths when matching glob patterns. | ||||||
| glob_ignore_case = false | ||||||
|
|
||||||
| # Exclude URLs and mail addresses from checking (supports regex). | ||||||
| # receiving forbidden but valid link, receiving timeout but valid link | ||||||
| # Exclude URLs and mail addresses from checking. The values are treated as regular expressions | ||||||
| exclude = [ | ||||||
| 'https://opensource.org/licenses/MIT', | ||||||
| 'https://twitter.com/pestphp', | ||||||
| '^https://laracasts.com/series/(pest-driven-laravel|pest-from-scratch)$', | ||||||
| '^https://www.linkedin.com/learning/.*$', | ||||||
| ] | ||||||
|
|
||||||
| # Exclude these filesystem paths from getting checked. | ||||||
| #exclude_path = ["file/path/to/Ignore", "./other/file/path/to/Ignore"] | ||||||
| # Exclude paths from getting checked. The values are treated as regular expressions | ||||||
| #exclude_path = [ | ||||||
| # "\\.txt$", # skip .txt extensions | ||||||
| # "(^|/)test/", # skip directories named "test" | ||||||
| # "[aeiouAEIOU]", # exclude paths containing vowels | ||||||
| #] | ||||||
|
|
||||||
| # Check the specified file extensions | ||||||
| extensions = ["md"] | ||||||
|
|
||||||
| # URLs to check (supports regex). Has preference over all excludes. | ||||||
| #include = [ 'gist\.github\.com.*' ] | ||||||
| #include = ['gist\.github\.com.*'] | ||||||
|
|
||||||
| # Exclude all private IPs from checking. | ||||||
| # Equivalent to setting `exclude_private`, `exclude_link_local`, and | ||||||
|
|
@@ -116,6 +173,19 @@ exclude_link_local = false | |||||
| # Exclude loopback IP address range and localhost from checking. | ||||||
| exclude_loopback = false | ||||||
|
|
||||||
| # Exclude all mail addresses from checking. | ||||||
| exclude_mail = false | ||||||
| # Check mail addresses | ||||||
| include_mail = false | ||||||
|
|
||||||
| # Check WikiLinks in Markdown files | ||||||
| include_wikilinks = true | ||||||
|
|
||||||
| # Only check local files | ||||||
| #offline = true | ||||||
|
|
||||||
| ############################# Hosts ############################# | ||||||
|
|
||||||
| # Maximum simultaneous requests to the same host | ||||||
| host_concurrency = 5 | ||||||
|
|
||||||
| # Minimum interval between requests to the same host | ||||||
| host_request_interval = "50ms" | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's comment out bits that aren't relevant for us.