Skip to content

Commit 52f8ca8

Browse files
committed
Infra: Move from /peps.rss to /api/peps
1 parent 30d0d6c commit 52f8ca8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,6 @@ def create_pep_zero(app: Sphinx, env: BuildEnvironment, docnames: list[str]) ->
8888

8989
# Create peps.json
9090
pep0_json = create_pep_json(peps)
91-
Path(app.outdir, "peps.json").write_text(pep0_json, encoding="utf-8")
91+
out_dir = Path(app.outdir) / "api"
92+
out_dir.mkdir(exist_ok=True)
93+
Path(out_dir, "peps").write_text(pep0_json, encoding="utf-8")

0 commit comments

Comments
 (0)