Docusaurus Setup Guide
This guide will help you set up and run the Docusaurus documentation site for Synq Digital.
Prerequisites
- Node.js version 16.14 or above
- npm or yarn package manager
Installation
- Install Docusaurus dependencies:
npm install --save-dev @docusaurus/core@latest @docusaurus/preset-classic@latest @docusaurus/module-type-aliases@latest
npm install --save-dev prism-react-renderer
Or using yarn:
yarn add --dev @docusaurus/core@latest @docusaurus/preset-classic@latest @docusaurus/module-type-aliases@latest
yarn add --dev prism-react-renderer
Running the Documentation Site
Development Server
Start the development server:
npm run docs:dev
Or:
yarn docs:dev
The site will be available at http://localhost:3000
Build for Production
Build the static site:
npm run docs:build
Or:
yarn docs:build
The built files will be in the build directory.
Serve Production Build
Preview the production build locally:
npm run docs:serve
Or:
yarn docs:serve
Adding Screenshots
- Create screenshots following the descriptions in
docs/README.md - Save images to
static/img/directory - Update markdown files to reference images:

Configuration
Main configuration is in docusaurus.config.js. Key settings:
- Title: Site title
- URL: Base URL for deployment
- Sidebar: Configured in
sidebars.js
Deployment
GitHub Pages
- Set
urlandbaseUrlindocusaurus.config.js - Set
organizationNameandprojectName - Run build and deploy:
npm run docs:build
# Deploy to GitHub Pages
Other Platforms
Docusaurus can be deployed to:
- Netlify
- Vercel
- AWS S3
- Any static hosting service
Troubleshooting
Port Already in Use
If port 3000 is in use:
npm run docs:dev -- --port 3001
Build Errors
Clear cache and rebuild:
rm -rf .docusaurus
npm run docs:build
Next Steps
- Add screenshots to
static/img/directory - Update image references in markdown files
- Customize theme colors in
src/css/custom.css - Update footer and navbar links in
docusaurus.config.js - Deploy to your hosting platform