Built with Docusaurus - Modern static website generator for technical documentation
This is the backup documentation repository for the Uptime Watcher project. The documentation is automatically generated from the main repository and deployed to GitHub Pages at:
π Live site: nick2bad4u.github.io/Uptime-Watcher
This documentation site is part of the main Uptime Watcher project and serves as:
- π User Documentation: Installation guides, feature documentation, and tutorials
- π§ Developer Documentation: Architecture guides, API references, and contribution guidelines
- π Project Resources: Changelogs, release notes, and project roadmaps
- π Backup Repository: Redundant storage for critical documentation assets
- Node.js: 24.8+ (required)
- npm: 11.6.4+ (included with Node.js)
- Git: Latest version
# Navigate to the docusaurus directory
cd docs/docusaurus
# Install dependencies
npm install
# or
yarn install
# Start local development server
npm start
# or
yarn startThe development server will start at http://localhost:3000 with hot reload enabled.
# Start development server with hot reload
npm start
yarn start
# Build for production
npm run build
yarn build
# Serve production build locally
npm run serve
yarn serve
# Clear cache and build artifacts
npm run clear
yarn clear# Deploy to GitHub Pages (SSH)
USE_SSH=true npm run deploy
USE_SSH=true yarn deploy
# Deploy to GitHub Pages (HTTPS)
GIT_USER=<Your GitHub username> npm run deploy
GIT_USER=<Your GitHub username> yarn deploy# Type checking
npm run typecheck
yarn typecheck
# Lint documentation files
npm run lint
yarn lint
# Format code
npm run format
yarn formatdocs/docusaurus/
βββ blog/ # Blog posts and announcements
βββ docs/ # Main documentation content
β βββ guides/ # User guides and tutorials
β βββ api/ # API documentation
β βββ architecture/ # Technical architecture docs
β βββ testing/ # Testing documentation
βββ src/ # Custom React components
β βββ components/ # Reusable UI components
β βββ css/ # Global styles
β βββ pages/ # Custom pages
βββ static/ # Static assets (images, files)
βββ docusaurus.config.ts # Docusaurus configuration
βββ sidebars.ts # Navigation sidebars
βββ package.json # Dependencies and scripts
The site uses a custom theme based on Docusaurus's default theme with:
- π― Brand Colors: Matching Uptime Watcher's visual identity
- π± Responsive Design: Optimized for all device sizes
- π Dark Mode: Full dark mode support
- β‘ Performance: Optimized build with code splitting
Documentation is organized using:
- π Markdown Files: All content written in MDX (Markdown + JSX)
- ποΈ Frontmatter: Metadata for SEO and navigation
- π Auto-Generated: Sidebars and navigation from folder structure
- π·οΈ Tagging System: Content categorization and search
Key configuration files:
docusaurus.config.ts: Main site configuration, plugins, and theme settingssidebars.ts: Navigation structure and sidebar configurationpackage.json: Dependencies, scripts, and project metadatatsconfig.json: TypeScript configuration for type safety
The site build process:
- π Content Processing: Markdown files are processed and converted to React components
- β‘ Bundling: Webpack bundles all assets with optimization
- ποΈ Static Generation: Pre-rendered HTML for fast loading
- π Deployment: Automated deployment to GitHub Pages via GitHub Actions
build/ # Production build output
βββ index.html # Homepage
βββ docs/ # Documentation pages
βββ blog/ # Blog pages
βββ assets/ # Optimized assets
βββ sitemap.xml # SEO sitemap
The site automatically deploys to GitHub Pages when:
- Changes are pushed to the
mainbranch - Documentation files are updated
- GitHub Actions workflow completes successfully
For manual deployments:
# Using SSH (recommended for contributors)
USE_SSH=true yarn deploy
# Using HTTPS (requires GitHub token)
GIT_USER=<username> GITHUB_TOKEN=<token> yarn deploy- π Search: Full-text search across all documentation
- π± Mobile Responsive: Optimized mobile experience
- π Dark Mode: Toggle between light and dark themes
- π¦ PWA: Installable app experience + offline mode (via
@docusaurus/plugin-pwa) - π Cross-References: Internal linking between docs
- π Analytics: Built-in analytics tracking
- π·οΈ Versioning: Documentation versioning support
- π Interactive Demos: Embedded interactive examples
- π― Code Highlighting: Syntax highlighting for multiple languages
- π Copy-to-Clipboard: One-click code copying
- π Live Updates: Real-time content updates
To contribute to the documentation:
- π Edit Content: Modify markdown files in
docs/orblog/ - π§ͺ Test Locally: Run
npm startto preview changes - β
Verify Build: Run
npm run buildto ensure no errors - π€ Submit PR: Create a pull request with your changes
For technical improvements:
- π§ Component Development: Create reusable React components in
src/components/ - π¨ Styling: Update global styles in
src/css/ - βοΈ Configuration: Modify site configuration in
docusaurus.config.ts - π§ͺ Testing: Add tests for new functionality
PWA / Service Worker Issues
# Enable verbose PWA debug logs during build
set DOCUSAURUS_PWA_DEBUG=true
npm run buildBuild Failures
# Clear cache and rebuild
npm run clear
npm install
npm run buildDeployment Issues
# Verify GitHub permissions
# Check GitHub Pages settings
# Review GitHub Actions logsLocal Development Issues
# Check Node.js version (24.8+ required)
node --version
# Reinstall dependencies
rm -rf node_modules package-lock.json
npm installNeed help with the documentation site?
- π Docusaurus Documentation
- π Report Issues
- π¬ GitHub Discussions
- π§ Contact Maintainer
This documentation site is part of the Uptime Watcher project and is released under the Unlicense - Public Domain.
π Documentation powered by Docusaurus
Last updated: November 2025