You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately the above config does not work as mkdocs-monorepo-plugin resolves the symlinks to absolute paths which are outside of the project directory.
I was curious if there is a need to resolve symlinks for the plugin and if the below two resolve actions?
Summary
Request to add support for mono-repos that use symlinks
Details
We are exploring the usage of
mkdocs
for a typescript mono-repo that uses symlinks viapnpm
package manager to link packages.An example folder tree structure would be
with a mkdocs.yml config:
Unfortunately the above config does not work as mkdocs-monorepo-plugin resolves the symlinks to absolute paths which are outside of the project directory.
I was curious if there is a need to resolve symlinks for the plugin and if the below two
resolve
actions?mkdocs-monorepo-plugin/mkdocs_monorepo_plugin/parser.py
Line 56 in b1965a2
mkdocs-monorepo-plugin/mkdocs_monorepo_plugin/parser.py
Line 117 in b1965a2
Proposal
A suggested change proposal would be to update the above path method
.resolve()
to.absolute()
, which still resolves the absolute path but does not resolve the symlink per https://docs.python.org/3/library/pathlib.html#pathlib.Path.absoluteThe text was updated successfully, but these errors were encountered: