mirror of https://github.com/astral-sh/ruff
Fix link relativization in generate_mkdocs.py
This commit is contained in:
parent
58d4e00604
commit
860993187e
|
|
@ -40,11 +40,8 @@ def main() -> None:
|
||||||
raise ValueError(msg)
|
raise ValueError(msg)
|
||||||
content = content.replace(DOCUMENTATION_LINK, "")
|
content = content.replace(DOCUMENTATION_LINK, "")
|
||||||
|
|
||||||
# Replace all GitHub links with relative links.
|
# Make the documentation links in the README more relative.
|
||||||
content = content.replace(
|
content = content.replace("https://beta.ruff.rs", "")
|
||||||
"https://github.com/charliermarsh/ruff/blob/main/docs/rules/",
|
|
||||||
"rules/",
|
|
||||||
)
|
|
||||||
|
|
||||||
Path("docs").mkdir(parents=True, exist_ok=True)
|
Path("docs").mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue