Skip to content

Commit d1e0afd

Browse files
Add gatsby plugin for sanity. Tweak schemas
1 parent cf7fac1 commit d1e0afd

File tree

5 files changed

+336
-4
lines changed

5 files changed

+336
-4
lines changed

studio/schemas/section.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ export default {
1616
{
1717
title: 'Description',
1818
name: 'description',
19-
type: 'text'
19+
type: 'text',
20+
rows: 4
2021
},
2122
{
2223
title: 'Subsections',

studio/schemas/shortcut.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export default {
66
{
77
title: 'Name',
88
name: 'name',
9-
type: 'string'
9+
type: 'string',
10+
validation: Rule => Rule.unique()
1011
},
1112
{
1213
title: 'Mac Command',

studio/schemas/subsection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ export default {
66
{
77
title: 'Name',
88
name: 'name',
9-
type: 'string',
10-
validation: Rule => Rule.unique()
9+
type: 'string'
1110
},
1211
{
1312
title: 'Description',
1413
name: 'description',
1514
type: 'text',
15+
rows: 4
1616
},
1717
{
1818
title: 'Code Samples',

0 commit comments

Comments
 (0)