Fix broken webber script
This commit is contained in:
@ -48,6 +48,7 @@ exports.sourceNodes = ({ actions, createNodeId, createContentDigest, getNodesByT
|
|||||||
type HtmlData @infer {
|
type HtmlData @infer {
|
||||||
full: String
|
full: String
|
||||||
text: String
|
text: String
|
||||||
|
fullText: String
|
||||||
code: String
|
code: String
|
||||||
example: String
|
example: String
|
||||||
}
|
}
|
||||||
@ -132,6 +133,7 @@ exports.createResolvers = ({ createResolvers }) => createResolvers({
|
|||||||
return {
|
return {
|
||||||
full: `${html}`,
|
full: `${html}`,
|
||||||
text: `${getTextualContent(html, true)}`,
|
text: `${getTextualContent(html, true)}`,
|
||||||
|
fullText: `${getTextualContent(html, false)}`,
|
||||||
code: `${optimizeAllNodes(getCodeBlocks(html).code)}`,
|
code: `${optimizeAllNodes(getCodeBlocks(html).code)}`,
|
||||||
example: `${optimizeAllNodes(getCodeBlocks(html).example)}`
|
example: `${optimizeAllNodes(getCodeBlocks(html).example)}`
|
||||||
};
|
};
|
||||||
@ -168,6 +170,7 @@ exports.createPages = ({ graphql, actions }) => {
|
|||||||
example
|
example
|
||||||
full
|
full
|
||||||
text
|
text
|
||||||
|
fullText
|
||||||
}
|
}
|
||||||
code {
|
code {
|
||||||
src
|
src
|
||||||
|
|||||||
2
src/docs/templates/SnippetPage.js
vendored
2
src/docs/templates/SnippetPage.js
vendored
@ -30,7 +30,7 @@ const SnippetPage = props => {
|
|||||||
html: snippet.html.full,
|
html: snippet.html.full,
|
||||||
codeHtml: snippet.html.code,
|
codeHtml: snippet.html.code,
|
||||||
exampleHtml: snippet.html.example,
|
exampleHtml: snippet.html.example,
|
||||||
textHtml: snippet.html.text,
|
textHtml: snippet.html.fullText,
|
||||||
code: snippet.code.src,
|
code: snippet.code.src,
|
||||||
tags: snippet.tags.all,
|
tags: snippet.tags.all,
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user