feat(docs): Japanese translated & minor issues fixed (#865)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Neko <neko@ayaka.moe>
This commit is contained in:
Lovehsigure_520
2026-01-03 01:48:33 +08:00
committed by GitHub
co-authored by autofix-ci[bot] Neko
parent ad874fec41
commit b5c6ab58ad
63 changed files with 4934 additions and 202 deletions
@@ -129,7 +129,16 @@ export function frontmatterAssets(): Plugin {
}
recursivelyFindAtAssets(data, (matched) => {
mAssetAbsoluteUrlMetadata.set(join(dirname(file), fromAtAssets(matched)), { url: file, builtUrl: file, hash: '' })
const assetPath = fromAtAssets(matched)
let absoluteAssetPath: string
if (assetPath.startsWith('/')) {
absoluteAssetPath = join(resolvedConfig?.vitepress.srcDir || '', assetPath)
}
else {
absoluteAssetPath = join(dirname(file), assetPath)
}
mAssetAbsoluteUrlMetadata.set(absoluteAssetPath, { url: file, builtUrl: file, hash: '' })
return undefined
})
}