# ksylor/ohshitgit architecture

> Architecture diagram of the GitHub repository ksylor/ohshitgit, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ksylor/ohshitgit
- Repository: https://github.com/ksylor/ohshitgit

## Overview

Oh Shit, Git!? / Dangit, Git!? is a multilingual static site of Git recovery tips, with profanity and swear-free editions. Visitors select a language and edition, then read translated tip pages with command examples; the README documents Eleventy generation and Netlify redirects that select the appropriate edition. The tree and README establish the content and presentation areas, but sampled source does not show their full runtime wiring, so uncertain template and asset relationships are omitted or marked unverified.

Main entry points: [`en/swears/index.html`](https://github.com/ksylor/ohshitgit/blob/master/en/swears/index.html) (Edition Pages), [`.eleventy.js`](https://github.com/ksylor/ohshitgit/blob/master/.eleventy.js) (Eleventy Generator), [`_redirects`](https://github.com/ksylor/ohshitgit/blob/master/_redirects) (Edition Redirects), [`en/swears/tips`](https://github.com/ksylor/ohshitgit/tree/master/en/swears/tips) (Git Tips)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_content["Tip Content"]
  node_editions["Swear Editions"]
  node_translations["Localized Content"]
  node_tiparticles["Git Tips"]
  node_editionpages["Edition Pages<br/>[index.html]"]
end

subgraph group_presentation["Site Presentation"]
  node_languagepicker["Language Picker<br/>[langpicker.njk]"]
  node_pagepartials["Edition Partials"]
  node_pagelayout["Page Layout<br/>[page.njk]"]
  node_styling["Site Styles<br/>[site.css]"]
  node_syntaxhighlighting["Code Highlighting<br/>[prism.js]"]
end

subgraph group_config["Site Configuration"]
  node_siteconfig["Language Data<br/>[site.js]"]
end

subgraph group_delivery["Static Site Delivery"]
  node_generator["Eleventy Generator<br/>[.eleventy.js]"]
  node_redirects["Edition Redirects"]
end

node_visitor(("Site Visitor"))
node_netlify{{"Netlify"}}

node_visitor -->|"requests edition"| node_redirects
node_redirects -->|"routes edition"| node_editionpages
node_visitor -->|"reads tips"| node_tiparticles
node_siteconfig -->|"lists languages"| node_languagepicker
node_generator -->|"generates site"| node_editions
node_generator -->|"generates site"| node_translations
node_generator -->|"generates pages"| node_editionpages
node_netlify -->|"serves redirects"| node_redirects
node_editionpages -.->|"uses layout"| node_pagelayout
node_editionpages -.->|"uses partials"| node_pagepartials
node_pagelayout -.->|"uses styles"| node_styling
node_tiparticles -.->|"highlights commands"| node_syntaxhighlighting

click node_editions "https://github.com/ksylor/ohshitgit/tree/master/en"
click node_translations "https://github.com/ksylor/ohshitgit/tree/master/af"
click node_tiparticles "https://github.com/ksylor/ohshitgit/tree/master/en/swears/tips"
click node_editionpages "https://github.com/ksylor/ohshitgit/blob/master/en/swears/index.html"
click node_siteconfig "https://github.com/ksylor/ohshitgit/blob/master/_data/site.js"
click node_languagepicker "https://github.com/ksylor/ohshitgit/blob/master/_includes/partials/langpicker.njk"
click node_pagepartials "https://github.com/ksylor/ohshitgit/tree/master/en/swears/partials"
click node_pagelayout "https://github.com/ksylor/ohshitgit/blob/master/_includes/layouts/page.njk"
click node_styling "https://github.com/ksylor/ohshitgit/blob/master/_includes/site.css"
click node_syntaxhighlighting "https://github.com/ksylor/ohshitgit/blob/master/_assets/prism.js"
click node_generator "https://github.com/ksylor/ohshitgit/blob/master/.eleventy.js"
click node_redirects "https://github.com/ksylor/ohshitgit/blob/master/_redirects"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_editions,node_translations,node_tiparticles,node_editionpages toneBlue
class node_languagepicker,node_pagepartials,node_pagelayout,node_styling,node_syntaxhighlighting toneAmber
class node_siteconfig toneMint
class node_generator,node_redirects toneRose
class node_visitor,node_netlify toneIndigo
```

## Components

### Tip Content

- [Swear Editions](https://github.com/ksylor/ohshitgit/tree/master/en): `en`
- [Localized Content](https://github.com/ksylor/ohshitgit/tree/master/af): `af`
- [Git Tips](https://github.com/ksylor/ohshitgit/tree/master/en/swears/tips): `en/swears/tips`
- [Edition Pages](https://github.com/ksylor/ohshitgit/blob/master/en/swears/index.html): `en/swears/index.html`

### Site Presentation

- [Language Picker](https://github.com/ksylor/ohshitgit/blob/master/_includes/partials/langpicker.njk): `_includes/partials/langpicker.njk`
- [Edition Partials](https://github.com/ksylor/ohshitgit/tree/master/en/swears/partials): `en/swears/partials`
- [Page Layout](https://github.com/ksylor/ohshitgit/blob/master/_includes/layouts/page.njk): `_includes/layouts/page.njk`
- [Site Styles](https://github.com/ksylor/ohshitgit/blob/master/_includes/site.css): `_includes/site.css`
- [Code Highlighting](https://github.com/ksylor/ohshitgit/blob/master/_assets/prism.js): `_assets/prism.js`

### Site Configuration

- [Language Data](https://github.com/ksylor/ohshitgit/blob/master/_data/site.js): `_data/site.js`

### Static Site Delivery

- [Eleventy Generator](https://github.com/ksylor/ohshitgit/blob/master/.eleventy.js): `.eleventy.js`
- [Edition Redirects](https://github.com/ksylor/ohshitgit/blob/master/_redirects): `_redirects`

### Other components

- **Site Visitor**
- **Netlify**

## Connections

- Site Visitor → Edition Redirects: requests edition (evidence: `README.md`)
- Edition Redirects → Edition Pages: routes edition (evidence: `README.md`)
- Site Visitor → Git Tips: reads tips (evidence: `README.md`)
- Language Data → Language Picker: lists languages (evidence: `README.md`)
- Eleventy Generator → Swear Editions: generates site (evidence: `README.md`)
- Eleventy Generator → Localized Content: generates site (evidence: `README.md`)
- Eleventy Generator → Edition Pages: generates pages (evidence: `README.md`)
- Netlify → Edition Redirects: serves redirects (evidence: `README.md`)
- Edition Pages → Page Layout: uses layout
- Edition Pages → Edition Partials: uses partials
- Page Layout → Site Styles: uses styles
- Git Tips → Code Highlighting: highlights commands
