kopia lustrzana https://github.com/shoelace-style/shoelace
remove dashes from animation descriptions
rodzic
54fc41e175
commit
0ab87b03fa
|
@ -3,6 +3,7 @@ import commentParser from 'comment-parser';
|
|||
|
||||
const packageData = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
|
||||
const { name, description, version, author, homepage, license } = packageData;
|
||||
const noDash = string => string.replace(/^\s?-/, '').trim();
|
||||
|
||||
export default {
|
||||
globs: ['src/components/**/*.ts'],
|
||||
|
@ -47,7 +48,7 @@ export default {
|
|||
}
|
||||
classDoc['animations'].push({
|
||||
name: t.name,
|
||||
description: t.description
|
||||
description: noDash(t.description)
|
||||
});
|
||||
break;
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue