You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As a developer who does not code daily in NewsKit rep, it would be helpful to provide a list of common commands in the ReadMe.md to allow me to quickly do basic tasks. The package.json file has 72 commands and difficult to know which to run or next steps required.
Describe the solution you'd like
Document how to run the documentation site locally (with the URL we need to launch in the browser)
Document how to run specific tests (running all will run out of memory).
Best practice to implement dark-mode in your app (perhaps a link to the doc site that describes)
More to come, I'm sure.
Describe alternatives you've considered
Developers who are not day-to-day familiar with NewsKit could store commands in a code snippet manager, but seems unlikely that would be scalable.
Additional context
A Dow Jones developer asked about how to implement dark-mode in the NewsKit way, and I had difficulty finding basic commands to verify I was giving the correct information. Additionally, with a quick start command line documentation, the developer could have self-discovered the answers needed.
The text was updated successfully, but these errors were encountered:
Quick answers to you questions:
1 -> If you want to run site locally it is dev:docs I think the console/terminal will show you the URL ( http://localhost:8081/ )
2 -> About that we rely on jest, for example, you can run "yarn test:unit:watch" which will run all unit tests in "watch" mode, which means every time you update test or file it will run only related tests. You can also press "P" and it will show you Usage menu where you can filter or execute other commands
3 -> I guess this is up to the developers, I personally don't think there is best "practice" about it, at the end of the day for devs is just switching 2 themes. There are too many variables for how to do that like do you rely on OS theme, do you give option to user to switch it, if so where do you save the current theme like, cooking, localstorage, user preferences?
Happy to discuss in more details any of these and help with improving docs
Is your feature request related to a problem? Please describe.
As a developer who does not code daily in NewsKit rep, it would be helpful to provide a list of common commands in the ReadMe.md to allow me to quickly do basic tasks. The package.json file has 72 commands and difficult to know which to run or next steps required.
Describe the solution you'd like
Describe alternatives you've considered
Developers who are not day-to-day familiar with NewsKit could store commands in a code snippet manager, but seems unlikely that would be scalable.
Additional context
A Dow Jones developer asked about how to implement dark-mode in the NewsKit way, and I had difficulty finding basic commands to verify I was giving the correct information. Additionally, with a quick start command line documentation, the developer could have self-discovered the answers needed.
The text was updated successfully, but these errors were encountered: