Skip to content

Commit

Permalink
removed readme as landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
jdevcs committed Nov 20, 2023
1 parent 9731ca8 commit ebc6b5c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ const config = {
position: 'left',
},
{
to: 'libdocs',
to: '/libdocs/Accounts',
activeBasePath: '/libdocs/',
label: 'Documentation',
position: 'left',
},
Expand Down
10 changes: 10 additions & 0 deletions scripts/docshelper/generatedoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ function postProcessFunctionsDocs(configOptions) {
copyDir(packagesPath, configOptions.out);
cleanDir(packagesPath);

removeFile("./docs/docs/libdocs/README.md");

}

///// utils
Expand All @@ -63,6 +65,14 @@ async function generateDocs(config) {
}
}

function removeFile(filePath){
const stats = fs.statSync(filePath);
if (stats.isFile()) {
// If it's a file, delete it
fs.unlinkSync(filePath);
}
}

function copyDir(src, dest) {
// Create the destination folder if it doesn't exist
if (!fs.existsSync(dest)) {
Expand Down

0 comments on commit ebc6b5c

Please sign in to comment.