mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-31 07:38:00 +00:00
Remove options from README
This commit is contained in:
parent
b0d72c47b4
commit
d658bfc024
5 changed files with 10 additions and 1997 deletions
|
@ -49,6 +49,10 @@ def main() -> None:
|
|||
# Split the README.md into sections.
|
||||
for title, filename in SECTIONS:
|
||||
with Path(f"docs/{filename}").open("w+") as f:
|
||||
if filename == "settings.md":
|
||||
f.write(subprocess.check_output(["cargo", "dev", "generate-options"], encoding="utf-8"))
|
||||
continue
|
||||
|
||||
block = content.split(f"<!-- Begin section: {title} -->")
|
||||
if len(block) != 2:
|
||||
msg = f"Section {title} not found in README.md"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue