This website is built using Docusaurus, a modern static website generator.
$ npm i
Create a self-signed certificate for local development.
brew install mkcert
mkdir -p .cert && mkcert -key-file ./.cert/key.pem -cert-file ./.cert/cert.pem 'localhost'
$ npm run 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: for the search feature to work you will have to run in production mode.
$ npm run build
This command generates static content into the build
directory and can be served using any static contents hosting service.
$ node server.js
This will start the node express server, which will serve the contents of the build
directory over SSL. The default port is 3000
.
Run the following commands from the repo root to build the docker image and run the container locally:
$ docker build -t mango-docs .
$ docker run -d --restart unless-stopped --name mango-docs -p 3000:3000 -v ./.cert:/.cert mango-docs