mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 10:18:02 +08:00
build: fix url error of docs in code prompt file (#3735)
This commit is contained in:
parent
11f2c267c4
commit
f0bddd5da7
@ -13,10 +13,9 @@ const reComponentName: InstallOptions['reComponentName'] = (title: string) =>
|
||||
|
||||
const reDocUrl: InstallOptions['reDocUrl'] = (fileName, header) => {
|
||||
const docs = 'https://element-plus.org/en-US/component/'
|
||||
const _header = header
|
||||
? header.replace(/[ ]+/g, '-').toLowerCase()
|
||||
: undefined
|
||||
return docs + fileName + (_header ? `#${_header}` : '')
|
||||
const _header = header ? header.replaceAll(/\s+/g, '-').toLowerCase() : ''
|
||||
|
||||
return `${docs}${fileName}.html${_header ? '#' : ''}${_header}`
|
||||
}
|
||||
|
||||
const reWebTypesSource: InstallOptions['reWebTypesSource'] = (title) => {
|
||||
|
Loading…
Reference in New Issue
Block a user