mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 18:43:40 +00:00
e4c938b7a5
* docs: prepare release as asset * chore: cleanup * fix: wrong extension * fix: wrong logger * fix: wrong path * chore: clean and create tmp * chore: fix types * fix: update generation * Update .github/workflows/build.yml Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> * Update lib/datasource/types.ts Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com> Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
27 lines
688 B
TypeScript
27 lines
688 B
TypeScript
// import shell from 'shelljs';
|
|
|
|
// import { readFile, updateFile } from '../utils/index.js';
|
|
// // import { getDisplayName, getNameWithUrl, replaceContent } from './utils.js';
|
|
|
|
// const fileRe = /modules[/\\](.+?)\.md$/;
|
|
// const titleRe = /^#(.+?)$/m;
|
|
|
|
export async function generateModules(_root: string): Promise<void> {
|
|
// for (const f of shell.ls('../usage/modules/*.md')) {
|
|
// const [, tgt] = fileRe.exec(f);
|
|
|
|
// let content = await readFile(f);
|
|
// content = content.replace(
|
|
// titleRe,
|
|
// `---
|
|
// title: $1
|
|
// ---
|
|
// `
|
|
// );
|
|
|
|
// await updateFile(`./docs/modules/${tgt}.md`, content);
|
|
// }
|
|
|
|
await Promise.resolve();
|
|
}
|