Skip to content

Commit

Permalink
append README.md to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TanvirDeol committed Feb 5, 2025
1 parent 0e9fd1d commit ef16eee
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/generateOverviewDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ function generateIndex(dir, output) {
});
}

// Check if README.md exists at the top level and append its contents
const readmePath = path.join(__dirname, '..', 'README.md');
if (fs.existsSync(readmePath)) {

Check failure on line 36 in scripts/generateOverviewDocs.js

View workflow job for this annotation

GitHub Actions / lint

Expected blank line before this statement
const readmeContent = fs.readFileSync(readmePath, 'utf-8');
content += `\n\n${readmeContent}`;
}

fs.writeFileSync(output, content);
console.log(`Generated ${output}`);
}
Expand Down

0 comments on commit ef16eee

Please sign in to comment.