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

Respect Gitlinks per Attached Repository

Open GAS85 opened this issue 4 years ago • 2 comments

Hello dear community, in e.g. mkdocs-material there is nice feature: https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/#adding-a-git-repository

By simple config in yaml file:

repo_name: Trolololo
repo_url: https://somehost.com/Trololo
edit_uri: "edit/master/docs/"

will enable this: grafik By clicking you are jumping into the Repositroy to exact file.

When I use monorepo no links will be provided.

Please respect config per attached repository.

GAS85 avatar Apr 23 '21 11:04 GAS85

Hi! This is a great feature, but is a bit broken with this plugin at the moment. There are issues open for this problem, see #2 and #45.

realandersn avatar Apr 26 '21 09:04 realandersn

Seems partly works now. I can see Edit Button, but Links are broken - there is a site_name: Value taken from the merged mkdocs.yml. I need to apply workaround to html directly what is not really good way of doing this (as per your README example):

find v1/ -name '*.html' -exec sed -i 's/\/versions\/v1//' {} \;
find v2/ -name '*.html' -exec sed -i 's/\/versions\/v2//' {} \;

GAS85 avatar Apr 12 '23 12:04 GAS85