mkdocs-ezlinks-plugin icon indicating copy to clipboard operation
mkdocs-ezlinks-plugin copied to clipboard

incompatibility with mkdocs 1.4.0

Open schrursk opened this issue 2 years ago • 1 comments

Latest version 0.1.14 does not work anymore with mkdocs 1.4.0

Basically links are corrupt. (WARNING - Documentation file 'yyy/xxx.md' contains a link to 'aaa/..\bbb\ccc.md' which is not found in the documentation files.)

(Remark: Latest version 0.1.14 still work anymore with mkdocs 1.3.1)

Seems following change in mkdocs 1.4.0 is causing the issue: https://www.mkdocs.org/about/release-notes/#replace-filesrc_path-to-not-deal-with-backslashes-2930

Advised on that page: Use File.src_uri instead of File.src_path Use os.path.* instead of posixpath.*

I quickly tested it and it seems to indeed solve the compatibility issues.

schrursk avatar Oct 08 '22 15:10 schrursk

I have the same issue when I enable this plugin. same error:

WARNING - Documentation file 'yyy/xxx.md' contains a link to 'aaa/..\bbb\ccc.md' which is not found in the documentation files.

mkdocs, version 1.4.3 from C:\Python311\Lib\site-packages\mkdocs (Python 3.11)

I'm relatively new to MKDocs so I don't understand what you did to fix this however? Please can you elaborate @schrursk? Can you provide an example please?

Tim-H-OC avatar Aug 08 '23 08:08 Tim-H-OC