From 5231c6c840a38b64c13895309b1797a56705cffa Mon Sep 17 00:00:00 2001 From: LBlend Date: Mon, 9 Aug 2021 19:08:07 +0200 Subject: [PATCH] remove comments --- schemas/blockContent.js | 21 --------------------- schemas/schema.js | 10 ---------- 2 files changed, 31 deletions(-) diff --git a/schemas/blockContent.js b/schemas/blockContent.js index 7f7df0f..f8c9288 100644 --- a/schemas/blockContent.js +++ b/schemas/blockContent.js @@ -1,13 +1,3 @@ -/** - * This is the schema definition for the rich text fields used for - * for this blog studio. When you import it in schemas.js it can be - * reused in other parts of the studio with: - * { - * name: 'someName', - * title: 'Some title', - * type: 'blockContent' - * } - */ export default { title: "Block Content", name: "blockContent", @@ -16,10 +6,6 @@ export default { { title: "Block", type: "block", - // Styles let you set what your user can mark up blocks with. These - // correspond with HTML tags, but you can set any title or value - // you want and decide how you want to deal with it where you want to - // use your content. styles: [ { title: "Normal", value: "normal" }, { title: "H1", value: "h1" }, @@ -29,15 +15,11 @@ export default { { title: "Quote", value: "blockquote" }, ], lists: [{ title: "Bullet", value: "bullet" }], - // Marks let you mark up inline text in the block editor. marks: { - // Decorators usually describe a single property – e.g. a typographic - // preference or highlighting by editors. decorators: [ { title: "Strong", value: "strong" }, { title: "Emphasis", value: "em" }, ], - // Annotations can be any object structure – e.g. a link or a footnote. annotations: [ { title: "URL", @@ -54,9 +36,6 @@ export default { ], }, }, - // You can add additional types here. Note that you can't use - // primitive types such as 'string' and 'number' in the same array - // as a block type. { type: "image", options: { hotspot: true }, diff --git a/schemas/schema.js b/schemas/schema.js index 998d9f2..a1ce0f8 100644 --- a/schemas/schema.js +++ b/schemas/schema.js @@ -1,29 +1,19 @@ -// First, we must import the schema creator import createSchema from "part:@sanity/base/schema-creator"; - -// Then import schema types from any plugins that might expose them import schemaTypes from "all:part:@sanity/base/schema-type"; -// We import object and document schemas import blockContent from "./blockContent"; import event from "./event"; import post from "./post"; import author from "./author"; -// Then we give our schema to the builder and provide the result to Sanity export default createSchema({ - // We name our schema name: "default", - // Then proceed to concatenate our document type - // to the ones provided by any plugins that are installed types: schemaTypes.concat([ // The following are document types which will appear // in the studio. post, author, event, - // When added to this list, object types can be used as - // { type: 'typename' } in other document schemas blockContent, ]), });