Skip to content

Commit c1cc633

Browse files
JacobCoffeeclaude
andcommitted
fix: drop GraphQL backend and add Contribute nav dropdown
GraphQL + open_authoring crashes in Decap CMS 3.x; fall back to REST API. Remove leftover title/orphan frontmatter fields that injected YAML into plain-markdown wiki pages. Add a "Contribute" header dropdown linking to the CMS editor and GitHub repo. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7055754 commit c1cc633

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
lines changed

_extra/edit/config.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ collections:
2020
extension: md
2121
nested:
2222
depth: 100
23-
summary: "{{title}}"
23+
summary: "{{filename}}"
2424
subfolders: false
2525
meta:
2626
path:
@@ -30,9 +30,7 @@ collections:
3030
editor:
3131
preview: false
3232
fields:
33-
- { label: Title, name: title, widget: string }
34-
- { label: Orphan, name: orphan, widget: hidden, default: true }
35-
- { label: Body, name: body, widget: markdown }
33+
- {label: Body, name: body, widget: markdown}
3634

3735
- name: psf-wiki
3836
label: PSF Wiki
@@ -42,7 +40,7 @@ collections:
4240
extension: md
4341
nested:
4442
depth: 100
45-
summary: "{{title}}"
43+
summary: "{{filename}}"
4644
subfolders: false
4745
meta:
4846
path:
@@ -52,9 +50,7 @@ collections:
5250
editor:
5351
preview: false
5452
fields:
55-
- { label: Title, name: title, widget: string }
56-
- { label: Orphan, name: orphan, widget: hidden, default: true }
57-
- { label: Body, name: body, widget: markdown }
53+
- {label: Body, name: body, widget: markdown}
5854

5955
- name: jython-wiki
6056
label: Jython Wiki
@@ -64,7 +60,7 @@ collections:
6460
extension: md
6561
nested:
6662
depth: 100
67-
summary: "{{title}}"
63+
summary: "{{filename}}"
6864
subfolders: false
6965
meta:
7066
path:
@@ -74,6 +70,4 @@ collections:
7470
editor:
7571
preview: false
7672
fields:
77-
- { label: Title, name: title, widget: string }
78-
- { label: Orphan, name: orphan, widget: hidden, default: true }
79-
- { label: Body, name: body, widget: markdown }
73+
- {label: Body, name: body, widget: markdown}

conf.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,21 @@
139139
{"title": "Python Wiki", "url": "python/index"},
140140
{"title": "PSF Wiki", "url": "psf/index"},
141141
{"title": "Jython Wiki", "url": "jython/index"},
142+
{
143+
"title": "Contribute",
144+
"children": [
145+
{
146+
"title": "Edit with CMS",
147+
"url": "https://wiki.python.org/edit/",
148+
"summary": "Use the web-based editor to create or edit wiki pages",
149+
},
150+
{
151+
"title": "Edit on GitHub",
152+
"url": "https://github.com/JacobCoffee/wiki",
153+
"summary": "Fork the repository and submit changes via pull request",
154+
},
155+
],
156+
},
142157
],
143158
}
144159

0 commit comments

Comments
 (0)