mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-03 11:47:48 +08:00
fix(docs): contributors when only one language (#7093)
This commit is contained in:
parent
1c632ef709
commit
80676ed520
@ -28,7 +28,8 @@ export function MarkdownTransform(): Plugin {
|
||||
|
||||
code = transformVpScriptSetup(code, append)
|
||||
|
||||
const compPaths = await glob(`{${languages.join(',')}}/component`, {
|
||||
const pattern = `{${[...languages, languages[0]].join(',')}}/component`
|
||||
const compPaths = await glob(pattern, {
|
||||
cwd: docRoot,
|
||||
absolute: true,
|
||||
onlyDirectories: true,
|
||||
|
Loading…
Reference in New Issue
Block a user