We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 089826a commit 5f88ed5Copy full SHA for 5f88ed5
pep_sphinx_extensions/pep_zero_generator/pep_index_generator.py
@@ -32,9 +32,8 @@
32
33
34
def create_pep_json(peps: list[parser.PEP]) -> str:
35
- pep_list = [
36
- {
37
- "number": pep.number,
+ pep_dict = {
+ pep.number: {
38
"title": pep.title,
39
"authors": ", ".join(pep.authors.nick for pep.authors in pep.authors),
40
"discussions_to": pep.discussions_to,
@@ -50,8 +49,8 @@ def create_pep_json(peps: list[parser.PEP]) -> str:
50
49
"url": f"https://peps.python.org/pep-{pep.number:0>4}/",
51
}
52
for pep in sorted(peps)
53
- ]
54
- return json.dumps(pep_list, indent=0)
+ }
+ return json.dumps(pep_dict, indent=1)
55
56
57
def create_pep_zero(app: Sphinx, env: BuildEnvironment, docnames: list[str]) -> None:
0 commit comments