This directory contains the React-based documentation site for the Isolated Local LLM Deployment & Monitoring Stack, built with Docusaurus.
cd docs
npm install
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.
npm run build
This command generates static content into the build
directory and can be served using any static contents hosting service.
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
The site uses a custom AI/tech-focused color scheme defined in src/css/custom.css
:
Key configuration in docusaurus.config.ts
:
.md
file in the docs/
directorysidebar_position
to control ordering:
---
sidebar_position: 6
---
.md
file in the blog/
directoryYYYY-MM-DD-title.md
---
slug: my-blog-post
title: My Blog Post Title
authors: [mohamed]
tags: [llm, docker, monitoring]
---
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/
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.
The built site in the build/
directory can be deployed to any static hosting service:
# 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
The site is optimized for:
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:
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',
},
git checkout -b feature/improve-docs
docs/
directorynpm start
git commit -am 'Improve documentation'
git push origin feature/improve-docs
Built with β€οΈ using Docusaurus