How padi2312/dorcs works
Main Components
a) Core Components:
• Documentation Source Handler
• Markdown Processing Engine
• HTML Generator
• File Watcher System
• Built-in Web Server
• Frontend Application (Svelte-based)
b) Supporting Components:
• Configuration Manager
• Navigation Tree Builder
• WebSocket Manager (for hot reload)
• Theme System
Specific Implementation Details
• The separation between the Go backend and Svelte frontend
• The WebSocket connection for hot reload functionality
• The file watching system's interaction with the documentation processor
• The navigation tree building process
• Configuration management flow
Technical Specifications
Frontend:
• Svelte framework
• TailwindCSS for styling
• TypeScript for type safety
• Vite for building
Backend:
• Go(lang) implementation
• Built-in HTTP server
• WebSocket server
• File system watchers
Design Patterns to Highlight
• Observer Pattern (file watching system)
• Tree Structure (navigation)
• MVC-like pattern in the frontend
• Component-based architecture (Svelte)
Additional Elements
• Component groupings
• Configuration flow