Files
renovate/tools/docs/modules.ts
T
Michael Kriese e4c938b7a5 docs: release as asset (#11429)
* 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>
2021-12-09 21:12:49 +01:00

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();
}