This website is built using Docusaurus 2, a modern static website generator. See it live at https://agarthetiger.github.io/docusaurus
$ npm install
$ npm start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Note that the search plugin being used, https://github.com/praveenn77/docusaurus-lunr-search , requires a production 'build' to generate the index. See build below.
npm build
npm run serve
Commit straight to main
, there is no need on a personal website to use any branching other than using gh-pages
to serve the static website.
$ npm build
This command generates static content into the build
directory and can be served using any static contents hosting service.
While it is possible to deploy this to the gh-pages branch from local, best not to. GitHub Actions is configured to build and deploy from the main branch.