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

Respect Gitlinks per Attached Repository #46

Open
GAS85 opened this issue Apr 23, 2021 · 2 comments
Open

Respect Gitlinks per Attached Repository #46

GAS85 opened this issue Apr 23, 2021 · 2 comments

Comments

@GAS85
Copy link

GAS85 commented Apr 23, 2021

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.

@realandersn
Copy link
Contributor

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.

@GAS85
Copy link
Author

GAS85 commented Apr 12, 2023

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//' {} \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

2 participants