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:
co-authored by
autofix-ci[bot]
Neko
parent
ad874fec41
commit
b5c6ab58ad
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user