How rmusser01/infosec_reference works
Project Type and Purpose
• This repository is a static documentation website (“InfoSec Reference”) built around a collection of Markdown files, styled with CSS, and rendered client-side via the Docsify JavaScript library.
• Its goal is to serve as a browsable, rich InfoSec knowledge base (a “Yellow Pages” of security topics), with content authored as Markdown in the Draft/ directory and exposed via an index.html entry point.
High-Level Components
a. Content Store
• All Markdown content lives under /Draft, including subfolders (ATT&CK-Stuff, cheat-sheets, writeups, etc.).
• Images and static assets in /images and /Draft/images.
b. Static Site Renderer (Docsify)
• index.html pulls in css/docsify4.js (the Docsify engine) and css/style.css to dynamically convert Markdown → HTML in the browser.
c. Styling & Themes
• CSS files under /css provide core styling and theming (e.g., theme-min-blue.css).
d. Version Control & Hosting Platform
• The Git repository (GitHub) stores the source.
• It can be served via GitHub Pages or any static-file host (S3, Netlify, etc.).
e. End-User Browser
• The client loads index.html, fetches Markdown via AJAX, JS-renders pages SPA-style.
Relationships & Data Flow
• Developer commits Markdown + CSS + HTML → pushes to GitHub repo
↓ (CI/CD optional)
• Hosting Service (GitHub Pages / S3 + CDN) serves index.html, CSS, JS, and Markdown files as static assets
↓
• Browser downloads index.html → loads Docsify JS → fetches Markdown files → client-side renders pages
↔ (user clicks sidebar links, Docsify issues AJAX requests for specific .md files)
Architectural Patterns & Principles
• Content-as-Code: All documentation is versioned in Git as Markdown.
• Client-Side Rendering: Docsify loads raw Markdown and renders a single-page application—no backend template engine or server rendering.
• Separation of Concerns:
• Content (Markdown)
• Presentation (CSS)
• Behavior (Docsify JS)
Key Technologies
• Markdown (GitHub-flavored)
• Docsify (css/docsify4.js) for SPA rendering
• CSS themes (theme-blue-min.css, custom style.css)
• GitHub (version control & optional Pages hosting)
• Static hosting / CDN