Please follow the steps bellow to install docusaurus for local development and build the static website.
This template is built using Docusaurus 2, a modern static website generator, to provide a documentation system.
-
Windows : Visit - https://nodejs.org/en/download/current/ download the Windows Installer .msi (64-bit) file and install the package.
-
Linux(Debian):
sudo apt-get install curl software-properties-common
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
apt update
apt install nodejs npm
npm -v
nvm -v
git clone https://github.com/paulo-amaral/easy-sop-docs.git
cd easy-sop-docs
npm install
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.
npm run build
This command generates static content into the build
directory and can be served using any static contents hosting
service.
-
Install docker-ce and docker compose with this script : https://gist.github.com/paulo-amaral/d8995b42d6fc3b7a0984ee39ac927550
-
Clone repo :
git clone https://github.com/paulo-amaral/easy-sop-docs.git cd easy-sop-docs docker-compose up -d --build
Docussaurus doesn't have support to offline search(check docusaurus docs).
The search is based on: https://github.com/lelouch77/docusaurus-lunr-search
npm i mdx-mermaid mermaid
don't forget to change docusaurus.config.js
Add
require('mdx-mermaid')
to remarkPlugins
into docusaurus.config.js
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
remarkPlugins: [require('mdx-mermaid')],