ci: fix lower case for demourl

This commit is contained in:
taian.lta 2024-07-28 19:14:34 +08:00 committed by vagusX
parent 88c3928a40
commit 8db67e6347

View File

@ -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> {