This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
Incorrect links generated when markdown files are not in a docs/ folder #12
Labels
enhancement
New feature or request
Relating to #5, I've got a repo with the docs in the project root instead of a
docs/
subfolder.The link being generated for files is assuming
docs
is in the path. When generating file info, replaces the path up up todocs/
to make the link, which results in incorrect links ifdocs
isn't in the path.For example, in my repo,
employee-handbook/index.md
has a link with the full filesystem path. This results in a 404 when clicking the search result because it'll attempt to navigate tohttps://my-website.net/home/runner/work/. . .
.I can try a PR if you're open to it!
The text was updated successfully, but these errors were encountered: