Ref #1606
Let's use this for an example:
mkdir -p public/assets public/download public/test1 public/test2
touch public/assets/app.css public/assets/app.js public/download/something.json public/test1/index.html
and the public/index.html file:
<html>
<head>
<link rel="stylesheet" href="/sub/dir/another/assets/app.css">
<link rel="stylesheet" href="https://example.com/sub/dir/another/assets/app.css">
</head>
<body>
<dl>
<dt>index</dt>
<dd><a href="/sub/dir/another">/sub/dir/another</a></dd>
<dd><a href="/sub/dir/another/">/sub/dir/another/</a></dd>
<dt>file</dt>
<dd><a href="/sub/dir/another/download/something.json">/sub/dir/another/download/something.json</a></dd>
<dt>homepage</dt>
<dd><a href="/sub/dir/another/test1/">/sub/dir/another/test1/</a></dd>
<dd><a href="/sub/dir/another/test2/">/sub/dir/another/test2/</a></dd>
</dl>
</body>
</html>
When I run Lychee like so
lychee --base-url https://example.com/sub/dir/another --root-dir `pwd`/public public/index.html --offline
I expect these things to happen:
- it checks everything (currently it excludes everything)
- it finds all the links are valid, except
test2 because we didn't create an index.html file in it (I'm assuming I need to remap this?)
- it treats URLs prefixed with
base-url as offline in this case (because it's equivalent to the others)
Am I missing something or should this already work as is? I'm using just-built master.
Ref #1606
Let's use this for an example:
and the
public/index.htmlfile:When I run Lychee like so
I expect these things to happen:
test2because we didn't create anindex.htmlfile in it (I'm assuming I need to remap this?)base-urlas offline in this case (because it's equivalent to the others)Am I missing something or should this already work as is? I'm using just-built master.