mirror of
https://github.com/LukeHagar/plexpy.git
synced 2025-12-07 12:47:45 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.615.2
This commit is contained in:
@@ -10,12 +10,17 @@ try:
|
||||
GITHUB_URL = (
|
||||
GITHUB_URL[: -len(".git")] if GITHUB_URL.endswith(".git") else GITHUB_URL
|
||||
)
|
||||
REPO_SUBDIR = "."
|
||||
# Ensure the subdirectory has a trailing slash
|
||||
if not REPO_SUBDIR.endswith("/"):
|
||||
REPO_SUBDIR += "/"
|
||||
# links on PyPI should have absolute URLs
|
||||
readme_contents = re.sub(
|
||||
r"(\[[^\]]+\]\()((?!https?:)[^\)]+)(\))",
|
||||
lambda m: m.group(1)
|
||||
+ GITHUB_URL
|
||||
+ "/blob/master/"
|
||||
+ REPO_SUBDIR
|
||||
+ m.group(2)
|
||||
+ m.group(3),
|
||||
readme_contents,
|
||||
|
||||
Reference in New Issue
Block a user