My .nav.yml (deep down in my docu tree) looks like:
nav:
- Up: ../
- Sibling: ../sibling/
Which results in
WARNING - A reference to '../' is included in the 'nav' configuration, which is not found in the documentation files.
WARNING - A reference to '../sibling/' is included in the 'nav' configuration, which is not found in the documentation files.
The directories ../ and ../sibling exist.
For fun I tested as well:
Which resulted in the rebuild of mkdocs serve crashing with a really long Traceback and
ERROR - [11:52:22] An error happened during the rebuild. The server will appear stuck until build errors are resolved.
So this is clearly pointing into the direction of one or several bugs in the handling of ./ and ../.
As there is an example with ../ in the documentation I'd expected that to work, it is a useful feature to have relative path. ../sibling/file.md does not work either.
Look like Up points to the document-root (instead of one level up) and Sibling points to document-root/sibling instead of the sibling of the current path which both are wrong.
$ cat requirements.txt
mkdocs==1.6.1
mkdocs-awesome-nav==3.3.0
mkdocs-git-revision-date-localized-plugin==1.4.7
mkdocs-material==9.6.14
mkdocs-open-in-new-tab==1.0.8
mkdocs-rss-plugin==1.17.3
pymdown-extensions==10.15
python-frontmatter==1.1.0
setuptools==80.9.0
If needed I can prepare a branch of our docu repo which shows this in detail.
Regards,
Harald.
My .nav.yml (deep down in my docu tree) looks like:
Which results in
The directories
../and../siblingexist.For fun I tested as well:
Which resulted in the rebuild of mkdocs serve crashing with a really long Traceback and
So this is clearly pointing into the direction of one or several bugs in the handling of
./and../.As there is an example with
../in the documentation I'd expected that to work, it is a useful feature to have relative path.../sibling/file.mddoes not work either.Look like Up points to the document-root (instead of one level up) and Sibling points to document-root/sibling instead of the sibling of the current path which both are wrong.
If needed I can prepare a branch of our docu repo which shows this in detail.
Regards,
Harald.