1
0
mirror of synced 2025-12-20 18:36:31 -05:00

Pretty format (#20352)

* Update prettier flow to include JS

* Run prettier

* ...run prettier
This commit is contained in:
Kevin Heis
2021-07-14 14:35:01 -07:00
committed by GitHub
parent ae3db795f4
commit 8a56437c93
333 changed files with 6904 additions and 5350 deletions

View File

@@ -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),
}
}