Matthias Endler
Matthias Endler
@lebensterben do you mean like this? https://github.com/lycheeverse/lychee/pull/561
Posting the remap section from your config here for future reference: ```toml # Remap URI matching pattern to different URI. remap = [ "../../issues https://github.com/usnistgov/OSCAL/issues", "../../projects https://github.com/usnistgov/OSCAL/projects", "../../tree https://github.com/usnistgov/OSCAL/tree", "../../releases...
This does indeed look correct to me, however the error is very spurious: ``` Error: Invalid path to URL conversion: projects ``` I would assume there is no more output...
The code that causes the error is located here: https://github.com/lycheeverse/lychee/blob/c4e004bdf8ee19c4e5945628255851d5498dd400/lychee-lib/src/helpers/request.rs#L87-L106
So in this case `Url::from_file_path(&path)` fails. One step into the direction might be to print the underlying error instead of swallowing it (`_e` is never used in the code above)....
> The output, remap or not, does not seem to recursively traverse all subdirectories with Markdown files suggest (I have tried **/*.md and ./**/*.md and it seems to work for...
Any update on this one? https://github.com/lycheeverse/lychee/pull/691 is merged now and there's a new lychee version and a new version of the lychee-action, so maybe it's resolved?
I thought that already works. I was wrong. We should support that, yes. If anyone wants to give it a try, comment here.
I'm astonished by that ingenuity.😄 It does make sense, though. Thanks for mentioning that!
Implementation-wise, this can be done with a `GlobSet`: ```rust use globset::{Glob, GlobSetBuilder}; let mut builder = GlobSetBuilder::new(); // A GlobBuilder can be used to configure each glob's match semantics //...