upstream #1
@ -54,7 +54,7 @@ const computedFields: ComputedFields = {
|
|||||||
type: 'string',
|
type: 'string',
|
||||||
resolve: (doc) => doc._raw.sourceFilePath,
|
resolve: (doc) => doc._raw.sourceFilePath,
|
||||||
},
|
},
|
||||||
toc: { type: 'string', resolve: (doc) => extractTocHeadings(doc.body.raw) },
|
toc: { type: 'json', resolve: (doc) => extractTocHeadings(doc.body.raw) },
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user