mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-23 20:04:42 +00:00
Fix link relativization in generate_mkdocs.py
This commit is contained in:
parent
58d4e00604
commit
860993187e
1 changed files with 2 additions and 5 deletions
|
@ -40,11 +40,8 @@ def main() -> None:
|
|||
raise ValueError(msg)
|
||||
content = content.replace(DOCUMENTATION_LINK, "")
|
||||
|
||||
# Replace all GitHub links with relative links.
|
||||
content = content.replace(
|
||||
"https://github.com/charliermarsh/ruff/blob/main/docs/rules/",
|
||||
"rules/",
|
||||
)
|
||||
# Make the documentation links in the README more relative.
|
||||
content = content.replace("https://beta.ruff.rs", "")
|
||||
|
||||
Path("docs").mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue