Skip to content

Nick2bad4u/Uptime-Watcher-Docusaurus

Repository files navigation

πŸ“š Uptime Watcher Documentation Site

Docusaurus badge. Node.js badge. Deployment badge.

πŸ“– Official documentation website for Uptime Watcher

Built with Docusaurus - Modern static website generator for technical documentation

🎯 About This Site

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

πŸ“‚ Repository Structure

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

πŸš€ Quick Start

Prerequisites

  • Node.js: 24.8+ (required)
  • npm: 11.6.4+ (included with Node.js)
  • Git: Latest version

Development Setup

# Navigate to the docusaurus directory
cd docs/docusaurus

# Install dependencies
npm install
# or
yarn install

# Start local development server
npm start
# or
yarn start

The development server will start at http://localhost:3000 with hot reload enabled.

πŸ› οΈ Available Commands

Development

# 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

Deployment

# 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

Quality & Maintenance

# Type checking
npm run typecheck
yarn typecheck

# Lint documentation files
npm run lint
yarn lint

# Format code
npm run format
yarn format

πŸ“ Site Architecture

docs/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

🎨 Customization

Theming

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

Content Management

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

πŸ”§ Configuration

Key configuration files:

  • docusaurus.config.ts: Main site configuration, plugins, and theme settings
  • sidebars.ts: Navigation structure and sidebar configuration
  • package.json: Dependencies, scripts, and project metadata
  • tsconfig.json: TypeScript configuration for type safety

πŸ“¦ Build Process

The site build process:

  1. πŸ“ Content Processing: Markdown files are processed and converted to React components
  2. ⚑ Bundling: Webpack bundles all assets with optimization
  3. πŸ—‚οΈ Static Generation: Pre-rendered HTML for fast loading
  4. πŸš€ Deployment: Automated deployment to GitHub Pages via GitHub Actions

Build Artifacts

build/                     # Production build output
β”œβ”€β”€ index.html            # Homepage
β”œβ”€β”€ docs/                 # Documentation pages
β”œβ”€β”€ blog/                 # Blog pages
β”œβ”€β”€ assets/               # Optimized assets
└── sitemap.xml          # SEO sitemap

πŸš€ Deployment

Automated Deployment

The site automatically deploys to GitHub Pages when:

  • Changes are pushed to the main branch
  • Documentation files are updated
  • GitHub Actions workflow completes successfully

Manual Deployment

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

πŸ“Š Features

Built-in Features

  • πŸ” 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

Custom Features

  • πŸ“Š 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

🀝 Contributing

Content Contributions

To contribute to the documentation:

  1. πŸ“ Edit Content: Modify markdown files in docs/ or blog/
  2. πŸ§ͺ Test Locally: Run npm start to preview changes
  3. βœ… Verify Build: Run npm run build to ensure no errors
  4. πŸ“€ Submit PR: Create a pull request with your changes

Technical Contributions

For technical improvements:

  1. πŸ”§ Component Development: Create reusable React components in src/components/
  2. 🎨 Styling: Update global styles in src/css/
  3. βš™οΈ Configuration: Modify site configuration in docusaurus.config.ts
  4. πŸ§ͺ Testing: Add tests for new functionality

πŸ†˜ Troubleshooting

Common Issues

PWA / Service Worker Issues

# Enable verbose PWA debug logs during build
set DOCUSAURUS_PWA_DEBUG=true
npm run build

Build Failures

# Clear cache and rebuild
npm run clear
npm install
npm run build

Deployment Issues

# Verify GitHub permissions
# Check GitHub Pages settings
# Review GitHub Actions logs

Local Development Issues

# Check Node.js version (24.8+ required)
node --version

# Reinstall dependencies
rm -rf node_modules package-lock.json
npm install

πŸ“ž Support

Need help with the documentation site?


πŸ“„ License

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

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •