isolated-local-llm-deployment-monitoring-stack

LLM Stack Documentation Site

This directory contains the React-based documentation site for the Isolated Local LLM Deployment & Monitoring Stack, built with Docusaurus.

πŸš€ Quick Start

Installation

cd docs
npm install

Local Development

npm start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

πŸ“ Project Structure

docs/
β”œβ”€β”€ blog/                   # Blog posts
β”‚   β”œβ”€β”€ 2024-01-01-welcome.md
β”‚   └── authors.yml
β”œβ”€β”€ docs/                   # Documentation pages
β”‚   β”œβ”€β”€ intro.md           # Getting Started
β”‚   β”œβ”€β”€ llm-deployment.md  # LLM Deployment Guide
β”‚   β”œβ”€β”€ monitoring.md      # Monitoring Stack Setup
β”‚   β”œβ”€β”€ security.md        # Security & Network Isolation
β”‚   └── troubleshooting.md # Troubleshooting Guide
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/        # React components
β”‚   β”œβ”€β”€ css/              # Custom styles
β”‚   └── pages/            # Custom pages (homepage)
β”œβ”€β”€ static/               # Static assets
β”œβ”€β”€ docusaurus.config.ts  # Site configuration
β”œβ”€β”€ sidebars.ts          # Sidebar configuration
└── package.json         # Dependencies

🎨 Customization

Theme Colors

The site uses a custom AI/tech-focused color scheme defined in src/css/custom.css:

Configuration

Key configuration in docusaurus.config.ts:

πŸ“ Content Management

Adding Documentation

  1. Create a new .md file in the docs/ directory
  2. Add frontmatter with sidebar_position to control ordering:
    ---
    sidebar_position: 6
    ---
    
  3. The sidebar will automatically update based on the file structure

Adding Blog Posts

  1. Create a new .md file in the blog/ directory
  2. Use the naming convention: YYYY-MM-DD-title.md
  3. Add frontmatter with metadata:
    ---
    slug: my-blog-post
    title: My Blog Post Title
    authors: [mohamed]
    tags: [llm, docker, monitoring]
    ---
    

Supported Features

πŸš€ Deployment

GitHub Pages (Automatic)

The site automatically deploys to GitHub Pages when changes are pushed to the main branch, thanks to the GitHub Actions workflow in .github/workflows/deploy-docs.yml.

Deployment URL: https://1devspace.github.io/isolated-local-llm-deployment-monitoring-stack/

Manual Deployment

To deploy manually to GitHub Pages:

GIT_USER=<GITHUB_USERNAME> npm run deploy

This command builds the website and pushes to the gh-pages branch.

Other Hosting Platforms

The built site in the build/ directory can be deployed to any static hosting service:

πŸ”§ Development Commands

# Install dependencies
npm install

# Start development server
npm start

# Build for production
npm run build

# Serve production build locally
npm run serve

# Clear cache (if needed)
npm run clear

# Type check (TypeScript)
npm run typecheck

# Deploy to GitHub Pages
npm run deploy

🎯 SEO and Performance

The site is optimized for:

πŸ› οΈ Troubleshooting

Common Issues

Build fails with dependency errors:

rm -rf node_modules package-lock.json
npm install

Local development server won’t start:

npm run clear
npm start

GitHub Pages deployment fails:

Getting Help

πŸ“Š Analytics and Monitoring

To add analytics to the site, configure in docusaurus.config.ts:

// Google Analytics
gtag: {
  trackingID: 'GA_TRACKING_ID',
},

// Google Tag Manager  
googleTagManager: {
  containerId: 'GTM_CONTAINER_ID',
},

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/improve-docs
  3. Make your changes in the docs/ directory
  4. Test locally: npm start
  5. Commit your changes: git commit -am 'Improve documentation'
  6. Push to the branch: git push origin feature/improve-docs
  7. Create a Pull Request

Content Guidelines


Built with ❀️ using Docusaurus