chore: Format file

pull/4283/head
Brad Veryard 11 months ago
parent 1a8088cae2
commit b4da6570f5

@ -177,14 +177,17 @@ export async function createMarkdownToVueRenderFn(
resolved =
siteConfig?.rewrites.inv[resolved + '.md']?.slice(0, -3) || resolved
const htmlFileExists = fs.existsSync(path.resolve(dir, publicDir, `${resolved}.html`))
const checkIfPublicFileExists = fs.existsSync(path.resolve(dir, publicDir, resolved))
const htmlFileExists = fs.existsSync(
path.resolve(dir, publicDir, `${resolved}.html`)
)
const checkIfPublicFileExists = fs.existsSync(
path.resolve(dir, publicDir, resolved)
)
if (
!pages.includes(resolved) &&
(
!htmlFileExists && !checkIfPublicFileExists
) &&
!htmlFileExists &&
!checkIfPublicFileExists &&
!shouldIgnoreDeadLink(url)
) {
recordDeadLink(url)
@ -286,7 +289,8 @@ function injectPageDataCode(tags: string[], data: PageData) {
)
} else {
tags.unshift(
`<script ${isUsingTS ? 'lang="ts"' : ''
`<script ${
isUsingTS ? 'lang="ts"' : ''
}>${code}\nexport default {name:${JSON.stringify(
data.relativePath
)}}</script>`

Loading…
Cancel
Save