Skip to content

Commit

Permalink
Include the PEP index in peps.json (#2567)
Browse files Browse the repository at this point in the history
  • Loading branch information
wookie184 authored May 1, 2022
1 parent 77b5482 commit 278070a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 278070a

Please sign in to comment.