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 >= 14 prior to installing Docusaurus.
- Open a command window and run
npx create-docusaurus@latest default-site classicwhich will scaffold a skeleton Docusaurus website. This command also creates a sub-folder calleddefault-sitein whatever directory you run the npx command in. - Change directories into the default-site folder (example:
cd default-site) and runnpm startto 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:
.docusaurusnode_modules
- Run
npm install @cmfcmf/docusaurus-search-localto install local search (https://github.com/cmfcmf/docusaurus-search-local) - Change directories into your "product-help" source folder and run
npm start. This should now open the Cado product-help site locally.
npm buildThis 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.