Skip to content

Commit

Permalink
Update readme.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoxoxo authored Nov 15, 2024
1 parent 7d7c688 commit 6f53c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function get_readme_path(dir) {
const stats = fs.statSync(filepath)
if (stats.isDirectory() && filename.startsWith('level')) {
res.push( ... get_readme_path(filepath))
} else if (stats.isFile() && filename.endsWith('README.mdx') && ! filename.endsWith('cfo/README.mdx')) {
} else if (stats.isFile() && filename.endsWith('README.mdx') && ! filepath.endsWith('cfo/README.mdx')) {
res.push(filepath)
console.log(filepath)
}
Expand All @@ -22,7 +22,7 @@ function go() {
const readmes = get_readme_path(__dirname)

readmes.forEach(path => {
content = '\n\n' + fs.readFileSync(path, 'utf-8')
content += '\n\n' + fs.readFileSync(path, 'utf-8')
// content = '\n\n' + content
})

Expand Down

0 comments on commit 6f53c48

Please sign in to comment.