mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
ci: fix lower case for demourl
This commit is contained in:
parent
88c3928a40
commit
8db67e6347
@ -23,7 +23,12 @@ const themes = ['default', 'dark', 'compact'];
|
||||
|
||||
async function retrieveDemoUrl(mdPath: string) {
|
||||
// ~demos/button-demo-basic
|
||||
return mdPath.replace(/^components\//, '').replace('.md', '').replace(/\//g, '-');
|
||||
// breadcrumb-withIcon -> ~demos/breadcrumb-demo-withicon
|
||||
return mdPath
|
||||
.replace(/^components\//, '')
|
||||
.replace('.md', '')
|
||||
.replace(/\//g, '-')
|
||||
.toLowerCase();
|
||||
}
|
||||
|
||||
async function retrieveConfig(mdPath: string): Promise<VisualDiffConfig> {
|
||||
|
Loading…
Reference in New Issue
Block a user