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

Fix edit_uri starting with http when using ssh #120

Merged
merged 5 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
## 0.6.3
## 0.6.4

### prs in Release

- [Support edit_url starting with http](https://github.com/jdoiro3/mkdocs-multirepo-plugin/pull/120)

### Prs in Release

Expand Down
3 changes: 3 additions & 0 deletions mkdocs_multirepo_plugin/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ def get_edit_url(
self.docs_dir.replace("/*", ""),
src_path,
]
if(self.edit_uri.startswith("http")):
# If edit_uri starts with http wee will use this instead of repo url
url_parts.pop(0)
jdoiro3 marked this conversation as resolved.
Show resolved Hide resolved
return "/".join(part.strip("/") for part in url_parts)

def set_edit_uri(self, edit_uri) -> None:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mkdocs-multirepo-plugin"
version = "0.6.3"
version = "0.6.4"
description = "Build documentation in multiple repos into one site."
authors = ["jdoiro3 <[email protected]>"]
license = "MIT"
Expand Down
Loading