Skip to content
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

Open
nie7321 opened this issue Dec 9, 2022 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@nie7321
Copy link

nie7321 commented Dec 9, 2022

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 to docs/ to make the link, which results in incorrect links if docs 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 to https://my-website.net/home/runner/work/. . ..

image

I can try a PR if you're open to it!

@Stuyk
Copy link
Owner

Stuyk commented Dec 10, 2022

Always open to a PR

@Stuyk Stuyk added the enhancement New feature or request label Mar 2, 2023
@Tijawk
Copy link

Tijawk commented Mar 24, 2023

I'm writting some improvments and this will be fixed in my next PR.

Edit: PR is ready #21

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants