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

incompatibility with mkdocs 1.4.0 #46

Open
schrursk opened this issue Oct 8, 2022 · 1 comment
Open

incompatibility with mkdocs 1.4.0 #46

schrursk opened this issue Oct 8, 2022 · 1 comment

Comments

@schrursk
Copy link

schrursk commented Oct 8, 2022

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.

@Tim-H-OC
Copy link

Tim-H-OC commented Aug 8, 2023

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?

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

2 participants