zachhannum / mkdocs-autolinks-plugin

An MkDocs plugin that automagically generates relative links between markdown pages
https://pypi.org/project/mkdocs-autolinks-plugin/
MIT License
80 stars 31 forks source link

Update to use POSIX paths for compatibility with MkDocs starting from version 1.4.0 under Windows #29

Closed arterm-sedov closed 1 year ago

arterm-sedov commented 1 year ago

The plugin version 0.6.0 does not work in Windows with MkDocs starting from version 1.4.0.

This commit implements POSIX relative paths for cross-platform compatibility with MkDocs v1.4.0 and above.

See: [https://www.mkdocs.org/about/release-notes/#upgrades-for-plugin-developers https://github.com/mkdocs/mkdocs/pull/2930](https://www.mkdocs.org/about/release-notes/#replace-filesrc_path-to-not-deal-with-backslashes-2930)

zachhannum commented 1 year ago

Hi @arterm-sedov, sorry for the delay in taking a look at this! I'd still like to pull this change in to the repo. If you could update this PR or open a new one with just the plugin changes, I'd be happy to get that merged in and published today!

arterm-sedov commented 1 year ago

Hi @arterm-sedov, sorry for the delay in taking a look at this! I'd still like to pull this change in to the repo. If you could update this PR or open a new one with just the plugin changes, I'd be happy to get that merged in and published today!

Hi Zach!

Sure, I'll redo it right now

arterm-sedov commented 1 year ago

Hi @arterm-sedov, sorry for the delay in taking a look at this! I'd still like to pull this change in to the repo. If you could update this PR or open a new one with just the plugin changes, I'd be happy to get that merged in and published today!

Hi Zach!

Here is the new clean pull-request https://github.com/zachhannum/mkdocs-autolinks-plugin/pull/31