Ai
2 Star 0 Fork 0

react-component/pagination

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
update-example.js 643 Bytes
一键复制 编辑 原始数据 按行查看 历史
汤文辉 提交于 2023-03-06 11:34 +08:00 . chore: dumi 1.x => 2.x (#513)
/*
用于 dumi 改造使用,
可用于将 examples 的文件批量修改为 demo 引入形式,
其他项目根据具体情况使用。
*/
const fs = require('fs');
const glob = require('glob');
const suffix = '.js';
const paths = glob.sync(`./docs/examples/*${suffix}`);
paths.forEach((path) => {
const name = path.split('/').pop().split('.')[0];
fs.writeFile(
`./docs/demo/${name}.md`,
`## ${name}
<code src="../examples/${name}${suffix}">
`,
'utf8',
function (error) {
if (error) {
console.log(error);
return false;
}
console.log(`${name} 更新成功~`);
},
);
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_react-component/pagination.git
git@gitee.com:mirrors_react-component/pagination.git
mirrors_react-component
pagination
pagination
master

搜索帮助