Skip to content

QubeSec/qubesec.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

41 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

QubeSec Documentation Website

Beautiful, modern documentation for QubeSec β€” a Kubernetes operator for post-quantum cryptography.

Built with Docusaurus 3.9.

πŸš€ Quick Start

Prerequisites

  • Node.js v18+
  • npm or yarn

Local Development

# Install dependencies
npm install

# Start development server
npm start

Open http://localhost:3000 in your browser.

Build for Production

# Build static files
npm run build

# Test production build locally
npm run serve

πŸ“ Project Structure

qubesec.github.io/
β”œβ”€β”€ docs/                      # Documentation markdown files
β”‚   β”œβ”€β”€ index.md              # Homepage (hero, features, CTA)
β”‚   β”œβ”€β”€ quickstart.md         # Installation & examples
β”‚   β”œβ”€β”€ architecture.md       # System design & data flows
β”‚   β”œβ”€β”€ keyexchange.md        # Post-Quantum Key Exchange (Kyber)
β”‚   β”œβ”€β”€ signatures.md         # Digital Signatures (Dilithium)
β”‚   β”œβ”€β”€ certificates.md       # X.509 Certificate generation
β”‚   β”œβ”€β”€ qrng.md               # Quantum Random Number Generation
β”‚   └── api-reference.md      # Complete CRD specifications
β”œβ”€β”€ src/
β”‚   └── css/
β”‚       └── custom.css        # Custom styling
β”œβ”€β”€ static/
β”‚   └── img/
β”‚       └── qubesec.png       # Logo and static assets
β”œβ”€β”€ docusaurus.config.ts      # Docusaurus configuration
β”œβ”€β”€ sidebars.ts               # Sidebar navigation structure
└── package.json              # Dependencies and scripts

🎨 Design & Styling

Custom Theme

The documentation uses a professional gradient-based design:

  • Primary: Purple gradient (#667eea to #764ba2)
  • Accent Colors: Quantum-themed blues and purples
  • Dark Mode: Dracula theme for code blocks
  • Light Mode: GitHub theme for code blocks

Features

✨ Dark/Light Mode β€” Respects user preference
πŸ“± Responsive Design β€” Mobile-first approach
🎯 Feature Cards β€” Interactive hover effects
πŸ“Š Clean Navigation β€” Sidebar with collapsible sections
⚑ Fast Build β€” Optimized with Webpack
πŸ”˜ CTA Buttons β€” Clear call-to-action elements
🧩 Mermaid Diagrams β€” Architecture visualizations
🎨 Syntax Highlighting β€” Prism with multiple languages

Customizing Styles

Edit src/css/custom.css to change colors and styles:

:root {
  --ifm-color-primary: #2e8555;
  --ifm-color-primary-dark: #29784c;
  /* ... more color variables */
}

πŸ“„ Documentation Pages

Homepage (docs/index.md)

  • Hero section with gradient background
  • 6 feature cards highlighting QubeSec capabilities
  • Quick start guide (3 steps)
  • Resource links and community section
  • Call-to-action buttons

Technical Guides

  1. Quick Start

    • Installation with kubectl
    • 5 progressive examples
    • Common operations and troubleshooting
  2. Architecture

    • System design overview
    • 9 CRD types with Mermaid diagrams
    • Data flow visualization
  3. Key Exchange

    • Kyber (ML-KEM-1024) implementation
    • Complete workflows with encapsulation/decapsulation
    • Key derivation patterns
  4. Digital Signatures

    • Dilithium (ML-DSA) implementation
    • Sign and verify workflows
    • Real-world examples
  5. Certificates

    • X.509 certificate generation
    • Self-signed and CA-issued certificates
    • Integration with Kubernetes Ingress
  6. Quantum RNG

    • Cryptographically secure random numbers
    • Use cases and patterns
    • Fingerprinting and verification
  7. API Reference

    • Complete CRD specifications
    • Field descriptions
    • Status conditions

πŸš€ Deployment

GitHub Actions

The repository uses GitHub Actions for automatic deployment to GitHub Pages:

  • Triggered on push to main branch
  • Builds with latest Node.js
  • Deploys to gh-pages branch

Manual Deployment

# Build production files
npm run build

# Deploy to GitHub Pages (requires setup)
npm run deploy

πŸ”§ Configuration

Docusaurus Config (docusaurus.config.ts)

Key settings:

  • Docs-only mode: routeBasePath: '/'
  • Mermaid support: Enabled via @docusaurus/theme-mermaid
  • Syntax highlighting: Bash, YAML, JSON, TypeScript, Nginx, Docker
  • Dark theme: Dracula for code blocks
  • Light theme: GitHub for code blocks

Sidebar Configuration (sidebars.ts)

Navigation structure defining doc ordering and grouping.

πŸ“Š Content Statistics

  • Pages: 8 documentation pages
  • Code Examples: 50+ working examples
  • Diagrams: Mermaid architecture diagrams
  • CRDs: 9 Custom Resource Definitions
  • Algorithms: Kyber, Dilithium, Falcon, SPHINCS+

πŸ”— Resources

βœ… Quality Checklist

Before committing:

  • Run npm run build successfully
  • Test all internal links
  • Verify code examples are accurate
  • Check responsive design on mobile
  • Validate Mermaid diagrams render
  • Test both light and dark modes
  • No console errors

πŸ“§ Contributing

To improve documentation:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test locally with npm start
  5. Build with npm run build
  6. Submit a pull request

πŸ“„ License

Same as QubeSec project.


Made with ❀️ for a quantum-safe future πŸ”

Packages

 
 
 

Contributors