- Node.js (v22 or higher)
- npm
We recommend using Node Version Manager (NVM) to install Node.js:
-
Install NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bashor
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash -
Install Node.js:
nvm install 22 nvm use 22
-
Verify installation:
node --version npm --version
-
Clone the repository:
git clone https://github.com/Swarm-Squad/Docs.git cd Docs -
Install dependencies:
npm install
-
Run the development server:
npm run docs:dev
-
Building for Production:
npm run docs:build
-
Preview Production Build:
npm run docs:preview
-
Check formatting:
npm run format:fail npm run format
-
Finalize build:
npm run check