Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An absolute path to '/...' is included in the 'nav' configuration, which presumably points to an external #92

Closed
viceice opened this issue Nov 21, 2023 · 6 comments

Comments

@viceice
Copy link

viceice commented Nov 21, 2023

We're getting this message when using this plugin:

An absolute path to '/...' is included in the 'nav' configuration, which presumably points to an external

We're not sure how to suppress that, because it will cause an error if we enable strict mkdocs checks.

@lukasgeiter
Copy link
Owner

Do you have an example that I could use to reproduce the issue?

@viceice
Copy link
Author

viceice commented Nov 21, 2023

only our repo / PR linked above, sorry.

@viceice
Copy link
Author

viceice commented Nov 23, 2023

will try to create a reproduction

@kamilkrzyskow
Copy link
Contributor

kamilkrzyskow commented Nov 29, 2023

@lukasgeiter
This should do as a minimal reproduction, simple mkdocs new with all of the new validation features enabled.
mkdocs-awesome-issue.zip
I believe that validation of the nav comes before the plugin processes the ... in the mkdocs.yml nav

@viceice
As for your case, have you tried removing the nav from the mkdocs.yml, do you really need that to insert the .pages navigation properly on the root level?

Most of the examples here https://github.com/lukasgeiter/mkdocs-awesome-pages-plugin#combine-custom-navigation--file-structure assume some deeper nesting than root, therefore I'm assuming it's not required.

@viceice
Copy link
Author

viceice commented Nov 29, 2023

@kamilkrzyskow will try

@viceice
Copy link
Author

viceice commented Nov 29, 2023

@kamilkrzyskow Thanks, removing nav from mkdoc.yml solved the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants