The below is based on the instructions outlined here https://docusaurus.io/docs/installation which outlines how to install Docusaurus.
- Make sure you install Node.js version >= 18 prior to installing Docusaurus.
- Open a command window and run
npx create-docusaurus@latest default-site classic
which will scaffold a skeleton Docusaurus website. This command also creates a sub-folder calleddefault-site
in whatever directory you run the npx command in. - Change directories into the default-site folder (example:
cd default-site
) and runnpm start
to test whether the scaffold Docusaurus development server runs locally without issues. - Clone this repo (https://github.com/cado-security/product-help) into your local source folder (wherever you'll be maintaining the product-help code).
- Copy the following folders from the Docusaurus "default-site" folder, created during step #2, to your local source "product-help" folder:
.docusaurus
node_modules
- Run
npm install @cmfcmf/docusaurus-search-local
to install local search (https://github.com/cmfcmf/docusaurus-search-local) - Run
npm install --save @docusaurus/plugin-client-redirects
to install redirects - Change directories into your "product-help" source folder and run
npm start
. This should now open the Cado product-help site locally.
npm build
This command generates static content into the build
directory and can be served using any static contents hosting service.
New PRs merged to main will automatically be built and deployed to GH Pages.