docs: make widget docs editable (#1782)
* make widget docs editable * update widget doc frontmatter keys * improve docs preview * fix formatting * fix preview * add prism highlighting for previews * fix formatting * restore cms branch
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
backend:
|
||||
name: github
|
||||
repo: netlify/netlify-cms
|
||||
branch: master
|
||||
squash_merges: true
|
||||
|
||||
publish_mode: editorial_workflow
|
||||
@ -19,6 +18,14 @@ collections: # A list of collections the CMS should be able to edit
|
||||
- {label: "Group", name: "group", widget: "string"}
|
||||
- {label: "Weight", name: "weight", widget: "number"}
|
||||
- {label: "Body", name: "body", widget: "markdown"}
|
||||
- name: "widget_docs" # Used in routes, ie.: /admin/collections/:slug/edit
|
||||
label: "Widget Docs" # Used in the UI, ie.: "New Post"
|
||||
folder: "website/content/docs/widgets" # The path to the folder where the documents are stored
|
||||
create: true # Allow users to create new documents in this collection
|
||||
fields: # The fields each document in this collection have
|
||||
- {label: "Name", name: "title"}
|
||||
- {label: "Label", name: "label"}
|
||||
- {label: "Body", name: "body", widget: "markdown"}
|
||||
- name: "blog"
|
||||
label: "Blog"
|
||||
label_singular: "Post"
|
||||
|
Reference in New Issue
Block a user