chore: rebuild readmd

This commit is contained in:
2020-10-17 12:14:53 +08:00
parent f1d3ca5969
commit 9430fd5b1a
5 changed files with 132 additions and 113 deletions

10
build_readme.js Executable file
View File

@@ -0,0 +1,10 @@
#! /usr/bin/env runjs
var main = () => {
var readmeTemplate = __.rfile.from('README_template.md').string();
var tree = $$.shell().sh('tree -L 2').start()[0];
__.rfile.from('README.md').write(readmeTemplate.replace('$$TREE_L2$$', tree));
};
main();