Initial commit

This commit is contained in:
Waylon Walker 2019-05-09 10:15:41 -05:00
commit 5a3bf52ebb
86 changed files with 2639 additions and 0 deletions

41
studio/schemas/schema.js Normal file
View file

@ -0,0 +1,41 @@
// 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'
// Document types
import category from './documents/category'
import person from './documents/person'
import project from './documents/project'
import siteSettings from './documents/siteSettings'
// Object types
import bioPortableText from './objects/bioPortableText'
import figure from './objects/figure'
import projectMember from './objects/projectMember'
import projectPortableText from './objects/projectPortableText'
import simplePortableText from './objects/simplePortableText'
// Then we give our schema to the builder and provide the result to Sanity
export default createSchema({
// We name our schema
name: 'portfolio',
// Then proceed to concatenate our our document type
// to the ones provided by any plugins that are installed
types: schemaTypes.concat([
// When added to this list, object types can be used as
// { type: 'typename' } in other document schemas
bioPortableText,
figure,
projectMember,
projectPortableText,
simplePortableText,
// The following are document types which will appear
// in the studio.
category,
person,
project,
siteSettings
])
})