How zercorex/royal-blade-wiki works
Main Components
• HTML Pages – Represent the different sections of the wiki (e.g., index.html, store.html, database.html, mechanics.html, universes.html). These pages serve as entry points.
• CSS Styling – Located in docs/styles. This includes global styles (core.css and normalize.css), page-specific styles (e.g., home.css, store.css, etc.), and custom fonts.
• JavaScript Modules – Found under docs/scripts and its sub-folders. These files provide:
– Site navigation (nav.js, pages.js)
– Dynamic page functionality like dark mode (darkmode.js), image view handling (image-view.js), and slider functionality.
– Sheet data functionality (in docs/scripts/sheetdata), which likely handles fetching, viewing, and displaying dynamic or structured content.
• Fonts – The project imports custom fonts (Kanit, Rubik) which are defined in docs/styles/Fonts.
Architectural Patterns and Design Principles
• Client-Side Rendering – The entire site operates on the client side; the browser loads static content and enhances it with JavaScript.
• Separation of Concerns – Clearly distinguish between content (HTML), presentation (CSS, Fonts), behavior (JavaScript), and assets (images).