| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
Let's rename it to generate. Can you write tests?
Sorry, something went wrong.
|
FYI, I run the npm run test .\e2e\cli.test.js , it seems failed due to the i18n stuff. is there something wrong ? |
Sorry, something went wrong.
There was a problem hiding this comment.
Looking good, left a couple of suggestions.
Sorry, something went wrong.
|
|
||
| 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}'.`)) |
Sorry, something went wrong.
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.js
const error = (msg) => console.error(chalk.red(msg));
Sorry, something went wrong.
There was a problem hiding this comment.
After the merge, I will submit a PR to amend this
Sorry, something went wrong.
Co-authored-by: James George <jamesgeorge998001@gmail.com>
| Back | FazBrowse Home | New Git URL |
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