This repository contains the source code for the Knowledgator documentation site, built with Docusaurus.
Below you'll find instructions for setup, development, and contributing.
- Prerequisites
- Installation
- Local Development
- Building for Production
- Serving the Production Build
- Troubleshooting
Before you begin, ensure you have met the following requirements:
- Node.js (>= 18.0.x)
- npm (comes bundled with Node.js) or yarn (>= 1.22.x)
- A terminal / command prompt
Node.js includes npm by default. You can install Node.js from the official website.
To verify installation:
node --version # e.g., v23.8.0
npm --version # e.g., 11.1.0
Yarn is an alternative package manager.
It is recommended to install Yarn through the npm package manager, which comes bundled with Node.js when you install it on your system:
npm install --global yarn
Verify Yarn installation:
yarn --version # e.g., 1.22.22
Clone this repository and install dependencies.
git clone git@github.com:Knowledgator/Documentation.git
cd Documentation
Install dependencies:
yarn install
Install dependencies:
npm install
Start a local development server and open the site in your default browser (live reload is enabled):
# With yarn
yarn start
# With npm
npm start
This will start the server at http://localhost:3000 by default.
Generate optimized static files into the build
directory.
# With yarn
yarn build
# With npm
npm build
The production-ready files will be located in the build
folder.
You can serve the static build locally to verify the output:
# Using Yarn
yarn serve
# Using npm
npm serve
This serves your built site on http://localhost:5000 by default.
Contributions are welcome. Please open issues and submit pull requests for improvements.
Make sure to run the project locally to verify your changes before submitting them.