How elastisys/welkin works
Project type and purpose
• This repository is not an application backend or frontend in the traditional sense, but a static documentation site for the “Welkin” project.
• It also contains two user‑demo microprojects (Node.js and .NET) illustrating how to deploy sample services on Welkin.
File structure
• Root: configuration files (mkdocs.yml, package.json, requirements.txt), CI workflows (.github/workflows/*.yml), styling (extra_sass/).
• docs/: all Markdown source; subfolders for ADRs, architecture, user‑guide, operator‑manual, ciso‑guide, release notes, images, styles.
• overrides/: Jinja templates to override mkdocs-material theme.
• mkdocs-ciso-controls/: Python package providing custom mkdocs plugin to render CISO controls.
• scripts/: helper scripts to generate tables or run Graphviz (scripts/jsonschema2md.sh, etc.).
• user-demo/ & user-demo-dotnet/: two demo apps, each with Dockerfile, Helm charts under deploy/, and helper scripts.
Read README insights
• The tech stack: Python 3, mkdocs, mkdocs-material, Graphviz, mike (versioned deploy), SASS, npm.
• CI/CD: GitHub Actions run link checks, linting, then deploy main branch via mike to GitHub Pages.
Main components
a. Developer Workstation
• Python virtualenv (mkdocs + plugins)
• Node/npm (for SASS compilation)
• Git CLI
b. Version Control & CI/CD
• GitHub (repo) → pushes trigger GitHub Actions:
• link checker
• lint (pre‑commit + eslint)
• build & deploy (mike + mkdocs build)
c. Build Pipeline
• mkdocs build step reading:
• mkdocs.yml (site config)
• docs/ (Markdown + images)
• overrides/ (theme customizations)
• extra_sass/style.css.scss → CSS via sass
• docs/img/*.dot → PNG via Graphviz
• mkdocs-ciso-controls plugin
d. Hosting & Delivery
• GitHub Pages (static site)
• CDN (GitHub’s pages CDN for CSS, JS, images)
• End‑users (browsers) fetch HTML/CSS/JS
• Node.js demo: user-demo/
• .NET demo: user-demo-dotnet/
• Both build Docker images, deploy via Helm to a Kubernetes cluster (Welkin)
Relationships & Interactions
• Developer → GitHub (push)
• GitHub → GitHub Actions → Build Server
• Build Server → mkdocs pipeline (inc. SASS, Graphviz, plugin)
• mkdocs pipeline → Generated site artifacts
• Mike → GitHub Pages
• End‑user → GitHub Pages (HTTP)
• (Optionally) Demo apps → Docker Registry → Kubernetes cluster
Architectural patterns & principles
• Static‑site generator pattern: Clear separation between source (Markdown, theme overrides) and output (static HTML).
• Plugin extension: mkdocs plugin for CISO controls shows extensibility.
• CI/CD as code: workflows under .github/workflows.
• Infrastructure as code: Helm charts and Kubernetes manifests in user-demo/*/deploy/.