Uh oh!
There was an error while loading. Please reload this page.
feat: auto generate sidebar - #130
Conversation
jamesgeorge007
left a comment
There was a problem hiding this comment.
Let's rename it to generate. Can you write tests?
Uh oh!
There was an error while loading. Please reload this page.
Koooooo-7
commented
Jan 16, 2021
FYI, I run the |
jamesgeorge007
left a comment
There was a problem hiding this comment.
Looking good, left a couple of suggestions.
Uh oh!
There was an error while loading. Please reload this page.
| if (!exists(sidebarPath)) { | ||
| genSidebar(cwdPath, sidebarPath) | ||
| console.log(chalk.green(`Generate sidebar file '${sidebar}' success.`)) |
There was a problem hiding this comment.
| console.log(chalk.green(`Generate sidebar file '${sidebar}' success.`)) | |
| console.log(chalk.green(`Successfully generated the sidebar file '${sidebar}'.`)) |
There was a problem hiding this comment.
It is better to have a logger utility. There are a couple of places that require an update; feel free to address it in a future PR.
- console.error(chalk.red(msg))+ logger.error(msg)// logger.jsconsterror=(msg)=>console.error(chalk.red(msg));There was a problem hiding this comment.
After the merge, I will submit a PR to amend this
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: James George <jamesgeorge998001@gmail.com>

I have tested it under mac, can anyone test it in other environments?
feat: docsifyjs/docsify#1290
fix: docsifyjs/docsify#1323
fix: docsifyjs/docsify#1444