mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-09 20:06:39 +00:00
Remove autogenerated docs/rules/*.md files
This commit is contained in:
parent
8120d7c974
commit
02285c18d1
49 changed files with 8 additions and 1299 deletions
|
@ -1,6 +1,7 @@
|
|||
"""Generate an MkDocs-compatible `docs` and `mkdocs.yml` from the README.md."""
|
||||
import argparse
|
||||
import shutil
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
import yaml
|
||||
|
@ -27,6 +28,9 @@ FATHOM_SCRIPT: str = (
|
|||
|
||||
def main() -> None:
|
||||
"""Generate an MkDocs-compatible `docs` and `mkdocs.yml`."""
|
||||
|
||||
subprocess.run(["cargo", "dev", "generate-docs"], check=True)
|
||||
|
||||
with Path("README.md").open(encoding="utf8") as fp:
|
||||
content = fp.read()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue