Remove options from README

This commit is contained in:
Martin Fischer 2023-02-15 21:40:12 +01:00 committed by Charlie Marsh
parent b0d72c47b4
commit d658bfc024
5 changed files with 10 additions and 1997 deletions

View file

@ -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"