From 70f8f2251534a7afb499c124b7faac093bdb256d Mon Sep 17 00:00:00 2001 From: "nuo.o" <49533950+nuoxoxo@users.noreply.github.com> Date: Sat, 16 Nov 2024 16:54:29 +0100 Subject: [PATCH] Update go.js --- go.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/go.js b/go.js index 73a50a4..7d482ef 100644 --- a/go.js +++ b/go.js @@ -4,7 +4,7 @@ const path = require('path') function get_readme_path(dir) { - let res = [path.join(dir, 'pw.mdx')] + let res = [] const files = fs.readdirSync(dir) files.forEach( filename => { @@ -26,12 +26,14 @@ function get_readme_path(dir) { function get_readme_content() { - let content = '' + // let content = fs.readFileSync(, 'utf-8') + /home/runner/work/cfo/cfo/level00/pw.mdx const readmes = get_readme_path(__dirname) readmes.forEach(path => { content += '\n\n' + fs.readFileSync(path, 'utf-8')// + '\n\n' + content // content = '\n\n' + content + console.log(path) }) return content }