Pretty format (#20352)
* Update prettier flow to include JS * Run prettier * ...run prettier
This commit is contained in:
@@ -6,9 +6,12 @@ import { liquid } from '../../../lib/render-content/index.js'
|
||||
import getMiniTocItems from '../../../lib/get-mini-toc-items.js'
|
||||
import rewriteLocalLinks from '../../../lib/rewrite-local-links.js'
|
||||
const includes = path.join(process.cwd(), 'includes')
|
||||
const inputObjectIncludeFile = fs.readFileSync(path.join(includes, 'graphql-input-object.html'), 'utf8')
|
||||
const inputObjectIncludeFile = fs.readFileSync(
|
||||
path.join(includes, 'graphql-input-object.html'),
|
||||
'utf8'
|
||||
)
|
||||
|
||||
export default async function prerenderInputObjects (context) {
|
||||
export default async function prerenderInputObjects(context) {
|
||||
const inputObjectsArray = []
|
||||
|
||||
// render the graphql-object.html layout for every object
|
||||
@@ -25,6 +28,6 @@ export default async function prerenderInputObjects (context) {
|
||||
|
||||
return {
|
||||
html: inputObjectsHtml,
|
||||
miniToc: getMiniTocItems(inputObjectsHtml)
|
||||
miniToc: getMiniTocItems(inputObjectsHtml),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user