-
Notifications
You must be signed in to change notification settings - Fork 0
Add lychee workarounds and update to v0.20.1 #12
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
Changes from all commits
b6aa91d
22324fc
64567cb
9c45c73
da89463
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 |
|---|---|---|
|
|
@@ -9,7 +9,22 @@ max_concurrency = 4 | |
| # Check link anchors | ||
| include_fragments = true | ||
|
|
||
| # Include additional file types beyond the default markdown/HTML | ||
| include = [ | ||
| "**/*.md", | ||
| "**/*.java", | ||
| "**/*.yml" | ||
| ] | ||
|
|
||
| remap = [ | ||
| # workaround for https://github.com/lycheeverse/lychee/issues/1729 | ||
| "https://github.com/(.*?)/(.*?)/blob/(.*?)/(.*#.*)$ https://raw.githubusercontent.com/$1/$2/$3/$4", | ||
| "https://docs.oracle.com/(.*)#.*$ https://docs.oracle.com/$1" | ||
|
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. @copilot check if any links in this repo need this 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. Yes, this remap is needed. Found 8 Oracle docs links with anchors:
These links have anchor fragments that lychee cannot check properly without the remap workaround. 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. @copilot does lychee check links in Java files? if not, can it? 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. By default, lychee only checks markdown and HTML files. It doesn't check Java files by default, but it can. Added 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. By default, lychee only checks markdown and HTML files. It doesn't check Java files by default, but it can. Added |
||
| ] | ||
|
|
||
| exclude = [ | ||
| # workaround for https://github.com/lycheeverse/lychee/issues/1729 | ||
| '^https://github.com/.*#issuecomment-.*$', | ||
|
Comment on lines
+26
to
+27
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. @copilot check if any links in this repo need this 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. Yes, this exclusion is needed. Found 1 GitHub issue comment link in This type of link cannot be reliably checked by lychee. 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. @copilot does lychee check links in yml files? if not, can it? 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. By default, lychee only checks markdown and HTML files. It doesn't check YAML files by default, but it can. Added 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. By default, lychee only checks markdown and HTML files. It doesn't check YAML files by default, but it can. Added |
||
| "^http://localhost:", | ||
| "^http://0.0.0.0:", | ||
| ] | ||
Uh oh!
There was an error while loading. Please reload this page.