docs(fix): revert prettier formatting on markdown files (#1612)

Prettier formatting our markdown files is causing bugs because of the
differences between Gatsby's parser and Prettier's. Also, Prettier
formats the inline code-blocks containing example CMS configs, but the
formatting it uses doesn't really make much sense or match the suggested
CMS config style.

It doesn't actually make much sense to format the docs anyway, since we
use the CMS itself to edit/generate them.
This commit is contained in:
Caleb
2018-08-14 11:33:13 -06:00
committed by GitHub
parent dd56d6e2d9
commit ebc2471c6b
40 changed files with 452 additions and 502 deletions

View File

@ -6,36 +6,31 @@ backend:
publish_mode: editorial_workflow
media_folder: 'website/static/img' # Folder where user uploaded files should go
public_folder: 'img'
media_folder: "website/static/img" # Folder where user uploaded files should go
public_folder: "img"
collections: # A list of collections the CMS should be able to edit
- name: 'docs' # Used in routes, ie.: /admin/collections/:slug/edit
label: 'Docs' # Used in the UI, ie.: "New Post"
folder: 'website/content/docs' # The path to the folder where the documents are stored
- name: "docs" # Used in routes, ie.: /admin/collections/:slug/edit
label: "Docs" # Used in the UI, ie.: "New Post"
folder: "website/content/docs" # 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: 'Title', name: 'title', widget: 'string', tagname: 'h1' }
- { label: 'Group', name: 'group', widget: 'string' }
- { label: 'Weight', name: 'weight', widget: 'number' }
- { label: 'Body', name: 'body', widget: 'markdown' }
- name: 'blog'
label: 'Blog'
label_singular: 'Post'
folder: 'website/site/content/blog'
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
- {label: "Group", name: "group", widget: "string"}
- {label: "Weight", name: "weight", widget: "number"}
- {label: "Body", name: "body", widget: "markdown"}
- name: "blog"
label: "Blog"
label_singular: "Post"
folder: "website/site/content/blog"
create: true
fields:
- { label: 'Title', name: 'title', widget: 'string', tagname: 'h1' }
- { label: 'Author', name: 'author', widget: 'string' }
- { label: 'Description (for blog list)', name: 'description', widget: 'text' }
- {
label: 'Meta Description (defaults to Description)',
name: 'meta_description',
widget: 'text',
required: false,
}
- { label: 'Date', name: 'date', widget: 'date' }
- { label: 'Body', name: 'body', widget: 'markdown' }
- {label: "Title", name: "title", widget: "string", tagname: "h1"}
- {label: "Author", name: "author", widget: "string"}
- {label: "Description (for blog list)", name: "description", widget: "text"}
- {label: "Meta Description (defaults to Description)", name: "meta_description", widget: "text", required: false}
- {label: "Date", name: "date", widget: "date"}
- {label: "Body", name: "body", widget: "markdown"}
- name: updates
label: Updates
files:
@ -47,9 +42,9 @@ collections: # A list of collections the CMS should be able to edit
label: Releases
widget: list
fields:
- { name: version, label: Version }
- { name: date, label: Date, widget: date }
- { name: description, label: Description }
- {name: version, label: Version}
- {name: date, label: Date, widget: date}
- {name: description, label: Description}
- name: notifications
label: Notifications
file: website/data/notifications.yml
@ -59,8 +54,8 @@ collections: # A list of collections the CMS should be able to edit
label: Notifications
widget: list
fields:
- { label: Title, name: title, widget: string, tagname: h1 }
- { label: Published, name: published, widget: boolean }
- { label: Loud, name: loud, widget: boolean }
- { label: Message, name: message, widget: text }
- { label: URL, name: url }
- {label: Title, name: title, widget: string, tagname: h1}
- {label: Published, name: published, widget: boolean}
- {label: Loud, name: loud, widget: boolean}
- {label: Message, name: message, widget: text}
- {label: URL, name: url}