From 0bac7bd181c5613ccef17a266afd505d3c6b44a9 Mon Sep 17 00:00:00 2001 From: wookie184 Date: Sun, 1 May 2022 13:44:46 +0100 Subject: [PATCH] Include pep 0 in api/peps.json --- .../pep_zero_generator/pep_index_generator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py b/pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py index 27732e43f17..257be006d51 100644 --- a/pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py +++ b/pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py @@ -78,7 +78,10 @@ def create_pep_zero(app: Sphinx, env: BuildEnvironment, docnames: list[str]) -> peps.append(pep) pep0_text = writer.PEPZeroWriter().write_pep0(sorted(peps)) - Path(f"{pep_zero_filename}.rst").write_text(pep0_text, encoding="utf-8") + pep0_path = Path(f"{pep_zero_filename}.rst") + pep0_path.write_text(pep0_text, encoding="utf-8") + + peps.append(parser.PEP(pep0_path, authors_overrides)) # Add to files for builder docnames.insert(1, pep_zero_filename)