oprypin / mkdocs-literate-nav

MkDocs plugin to specify the navigation in Markdown instead of YAML
https://oprypin.github.io/mkdocs-literate-nav
MIT License
73 stars 8 forks source link

Remove Deprecation Warning with mkdocs 1.5.3 #30

Closed jonaprieto closed 5 months ago

jonaprieto commented 5 months ago

I'm getting this deprecation warning with the following version:

mkdocs 1.5.3

INFO    -  DeprecationWarning: A plugin has set File.page to an instance of Page and it got
           overwritten. The behavior of this will change in MkDocs 1.6.
             File "/opt/homebrew/lib/python3.11/site-packages/mkdocs/structure/nav.py",
           line 183, in <listcomp>
               _data_to_navigation((key, value), files, config)
             File "/opt/homebrew/lib/python3.11/site-packages/mkdocs/structure/nav.py",
           line 209, in _data_to_navigation
               warnings.warn(
oprypin commented 5 months ago

You should upgrade to the latest version of this plugin

jonaprieto commented 5 months ago

I did pip3 install --upgrade mkdocs-literate-nav and the warning still pops up.

oprypin commented 5 months ago

I haven't been seeing such a warning so I don't know how it could be produced. Is mkdocs-literate-nav the only plugin that you're using or could it be something else causing this warning?

jonaprieto commented 5 months ago

https://github.com/oprypin/mkdocs-literate-nav/assets/1428088/01150423-77a8-4b4b-a5f4-279f14f4164e

$ mkdocs --version
mkdocs, version 1.5.3 from /opt/homebrew/lib/python3.11/site-packages/mkdocs (Python 3.11)
$ pip3 freeze | grep -a "literate-nav"
mkdocs-literate-nav==0.6.1