backstage / mkdocs-monorepo-plugin

✚ Build multiple documentation folders in a single Mkdocs. Designed for large codebases.
https://backstage.github.io/mkdocs-monorepo-plugin/
Apache License 2.0
328 stars 74 forks source link

Allow cross-referencing in nav #94

Open haneul opened 1 year ago

haneul commented 1 year ago

Sometimes we want to add a page under different subsites (or main site) in a subsite's nav. While linking with ../ may work, but mkdocs can't properly process as it can't find the page.

It shows error like WARNING - A relative path to 'test/../cross.md' is included in the 'nav' configuration, which is not found in the documentation files

And the navigation title will be None.

This PR fixes it by having normpath for nav link.

haneul commented 1 year ago

okay updated

agentbellnorm commented 1 year ago

Seems like a test needs updated.

bih commented 10 months ago

@haneul Can you go ahead and update the test? I can go ahead and merge this once that's resolved :)