This website is built using Docusaurus 2 to keep my notes for front-end and demos.
Below are some common commands.
developing server
run it when you are developing the site.
$ npm run start
Build
$ npm run build
test build local
run it when you want to check the production of site.
npm run serve
Updating Docusaurus version
First, add dependencies to your package.json. Then
$ npm install
$ npx docusaurus --version