This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is a personal knowledge base containing markdown documentation across multiple domains: cloud platforms, databases, Docker, infrastructure, Kubernetes, penetration testing, and general development practices. The repository is organized by technology category with nested subdirectories for specific platforms or tools.
The knowledge base documentation is organized within the Docusaurus website:
website/- Docusaurus website for hosting the knowledge basewebsite/docs/Cloud/- Cloud provider documentation (Azure, GCP, OCI)website/docs/DB/- Database documentation (PostgreSQL, MSSQL)website/docs/DevOps/- DevOps practices and CI/CD configurationswebsite/docs/Docker/- Docker and containerization documentationwebsite/docs/DotNet/- .NET framework documentationwebsite/docs/Git/- Git workflow and configurationwebsite/docs/Infra/- Infrastructure documentationwebsite/docs/Infra/Linux/- Linux system administration (SELinux, firewalld, networking, storage, services)website/docs/Infra/Proxmox/- Proxmox virtualization platform (authentication, cloud-init, setup)
website/docs/k8s/- Kubernetes documentation and troubleshootingwebsite/docs/Pentesting/- Penetration testing techniqueswebsite/docs/Powershell/- PowerShell scripting
The knowledge base is published as a static website using Docusaurus v3 with TypeScript. The website is automatically deployed to GitHub Pages at https://loupeznik.github.io/kb/ when changes are pushed to the master branch.
website/docs/- All markdown documentation (copied from root-level category folders)website/src/- React components and pageswebsite/static/- Static assets (images, favicon, etc.)website/docusaurus.config.ts- Main configuration filewebsite/sidebars.ts- Sidebar navigation configurationwebsite/biome.json- Code quality and formatting configuration
- Node.js 22.0 or higher (preferably 24.0+)
- npm package manager
# Start development server
npm start --prefix website
# Build for production
npm run build --prefix website
# Serve production build locally
npm run serve --prefix websiteThe development server runs at http://localhost:3000/kb/
The website project uses TypeScript and Biome for code quality and formatting.
npm run typecheck --prefix websitenpm run format --prefix websitenpm run lint --prefix websitenpm run check --prefix websiteThe project uses the following Biome settings:
- Indentation: Tabs
- Line width: 100 characters
- Quote style: Single quotes
- Trailing commas: Always
When adding new documentation:
- Add markdown files directly to the appropriate category in
website/docs/directory (e.g.,website/docs/Cloud/,website/docs/DB/, etc.) - Add front matter if needed for ordering:
--- title: Document Title sidebar_position: 1 ---
- For new categories, create a
_category_.jsonfile:{ "label": "Category Name", "position": 1, "collapsed": false } - The sidebar navigation will automatically update based on the file structure
The website is automatically deployed via GitHub Actions when changes are pushed to master:
- Workflow file:
.github/workflows/deploy-docs.yml - Triggered on push to
masterwhenwebsite/**files change - Builds static site and deploys to GitHub Pages
- Requires GitHub Pages source to be set to "GitHub Actions" in repository settings
Docusaurus uses MDX for markdown processing. Be aware that:
- Angle brackets (
<and>) in text are interpreted as JSX/HTML tags - Use backticks for placeholders:
`<PLACEHOLDER>`instead of<PLACEHOLDER> - Wrap angle brackets in code blocks when showing command examples
- Create markdown files in the appropriate category directory within
website/docs/ - Use descriptive filenames that match the content topic
- Follow existing documentation structure and formatting
- Include code examples with language identifiers for syntax highlighting
- Add practical command examples where applicable
- Focus on solutions to specific problems rather than general overviews
- Ensure placeholders with angle brackets are wrapped in backticks for MDX compatibility
- Use clear section headers with markdown heading syntax
- Include symptoms/problem descriptions before solutions
- Provide complete, runnable command examples
- Use code blocks with appropriate language tags (
bash,sql, ```yaml, etc.) - Include context about when to use specific solutions
- Document edge cases and troubleshooting steps
- Troubleshooting guides: Problem description → Symptoms → Solution → Verification
- Configuration guides: Context → Configuration steps → Verification
- Command references: Description → Example commands → Options/variations
This repository uses git with master as the default branch.