mirror of https://github.com/ElemeFE/element
修正make new的路径问题
parent
80616a9d24
commit
6d090bb0e2
|
@ -91,7 +91,7 @@ export default {
|
||||||
</script>`
|
</script>`
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
filename: path.join('../../examples/docs/', `${componentname}.md`),
|
filename: path.join('../../examples/docs/zh-cn', `${componentname}.md`),
|
||||||
content: `## ${chineseName}`
|
content: `## ${chineseName}`
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
@ -116,7 +116,8 @@ Files.forEach(file => {
|
||||||
|
|
||||||
// 添加到 nav.config.json
|
// 添加到 nav.config.json
|
||||||
const navConfigFile = require('../../examples/nav.config.json');
|
const navConfigFile = require('../../examples/nav.config.json');
|
||||||
navConfigFile[navConfigFile.length - 1].list.push({
|
|
||||||
|
navConfigFile[2].groups[navConfigFile[2].groups.length - 1].list.push({
|
||||||
path: `/${componentname}`,
|
path: `/${componentname}`,
|
||||||
name: `${chineseName} (${componentname})`,
|
name: `${chineseName} (${componentname})`,
|
||||||
title: componentname === chineseName
|
title: componentname === chineseName
|
||||||
|
|
Loading…
Reference in New Issue