This website is built using Docusaurus 2, a modern static website generator.
Use cd docusaurus to navigate to the root of the website. Then yarn dev to start a local development server.
yarnTo check the MDX files are formatted correctly, use npx docusaurus-mdx-checker
yarn startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
yarn buildThis command generates static content into the build directory and can be served using any static contents hosting service.
Using SSH:
USE_SSH=true yarn deployNot using SSH:
GIT_USER=<Your GitHub username> yarn deployIf you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
This site is configured as a Progressive Web App (PWA) using @docusaurus/plugin-pwa. It allows users to install the documentation as an app and access content offline.
- Offline Access: The entire site is precached upon installation. Users can browse all documentation pages without an internet connection.
- Offline Ready Indicator: A popup notification ("Ready for offline use") appears when the offline cache has fully downloaded.
Service Workers require a production build to function. To test offline capabilities locally:
- Build the project:
npm run build
- Serve the build:
npm run serve
- Test the "Downloading" popup (simulates a fresh install):
- Open
http://localhost:3000/?offlineMode=truein your browser.
- Open