# lewagon/data-analytics-setup architecture

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

- Interactive diagram: https://gitdiagram.com/lewagon/data-analytics-setup
- Repository: https://github.com/lewagon/data-analytics-setup
- Video tour (about a minute): https://gitdiagram.com/lewagon/data-analytics-setup/video

## Overview

This repository generates operating-system-specific Data Analytics Bootcamp setup guides and “keep current” guides, with English and Spanish variants. The main workflow loads build definitions, expands locales, resolves local or remote Markdown partials, fetches and caches their content, then renders output files with Liquid and shared constants. The README documents macOS, Windows, Linux, and VM setup choices, plus post-bootcamp maintenance guides. The graph follows the sampled Ruby runtime; build-definition details beyond their documented role are not inferred.

Main entry points: [`lib/generator.rb`](https://github.com/lewagon/data-analytics-setup/blob/master/lib/generator.rb) (Guide generator), [`build.rb`](https://github.com/lewagon/data-analytics-setup/blob/master/build.rb) (Build command), [`lib/builder.rb`](https://github.com/lewagon/data-analytics-setup/blob/master/lib/builder.rb) (Build orchestrator), [`lib/partial_cache.rb`](https://github.com/lewagon/data-analytics-setup/blob/master/lib/partial_cache.rb) (Partial cache)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_configuration["Build configuration"]
  node_builddefs["OS build definitions"]
  node_constants["Shared constants<br/>[constants.yml]"]
  node_repo_config["Repository aliases<br/>[repos.yml]"]
end

subgraph group_assembly["Guide assembly"]
  node_entry["Build command<br/>[build.rb]"]
  node_spec["Build spec<br/>[build_spec.rb]"]
  node_localized["Localized build<br/>[localized_build.rb]"]
  node_builder["Build orchestrator<br/>[builder.rb]"]
end

subgraph group_content["Content and rendering"]
  node_partial_factory["Partial resolver<br/>[partial.rb]"]
  node_local_partial["Local partial<br/>[local.rb]"]
  node_remote_partial["Remote partial<br/>[remote.rb]"]
  node_cache["Partial cache<br/>[partial_cache.rb]"]
  node_generator["Guide generator<br/>[generator.rb]"]
  node_liquid["Liquid renderer<br/>[generator.rb]"]
end

node_reader(("Guide reader"))
node_github["GitHub raw content"]
node_setup_guides["OS setup guides<br/>[macOS.md]"]
node_maintenance_guides["Keep-current guides"]
node_language_guides["Localized guides<br/>[macOS.es.md]"]
node_guide_choices["OS guide choices<br/>[README.md]"]

node_reader -->|"chooses guide"| node_guide_choices
node_entry -->|"loads definitions"| node_builddefs
node_entry -->|"loads constants"| node_constants
node_entry -->|"loads aliases"| node_repo_config
node_entry -->|"starts build"| node_builder
node_builder -->|"expands specs"| node_spec
node_spec -->|"creates locales"| node_localized
node_builder -->|"caches partials"| node_cache
node_builder -->|"generates guides"| node_generator
node_localized -->|"resolves entries"| node_partial_factory
node_partial_factory -->|"creates local"| node_local_partial
node_partial_factory -->|"creates remote"| node_remote_partial
node_remote_partial -->|"fetches content"| node_github
node_cache -->|"reads content"| node_local_partial
node_cache -->|"reads content"| node_remote_partial
node_generator -->|"reads cached text"| node_cache
node_generator -->|"renders templates"| node_liquid
node_generator -->|"merges variables"| node_constants
node_generator -->|"writes guides"| node_setup_guides
node_generator -->|"writes guides"| node_maintenance_guides
node_generator -->|"writes variants"| node_language_guides

click node_entry "https://github.com/lewagon/data-analytics-setup/blob/master/build.rb"
click node_builddefs "https://github.com/lewagon/data-analytics-setup/tree/master/builds"
click node_constants "https://github.com/lewagon/data-analytics-setup/blob/master/constants/constants.yml"
click node_repo_config "https://github.com/lewagon/data-analytics-setup/blob/master/constants/repos.yml"
click node_spec "https://github.com/lewagon/data-analytics-setup/blob/master/lib/build_spec.rb"
click node_localized "https://github.com/lewagon/data-analytics-setup/blob/master/lib/localized_build.rb"
click node_builder "https://github.com/lewagon/data-analytics-setup/blob/master/lib/builder.rb"
click node_partial_factory "https://github.com/lewagon/data-analytics-setup/blob/master/lib/partial.rb"
click node_local_partial "https://github.com/lewagon/data-analytics-setup/blob/master/lib/partial/local.rb"
click node_remote_partial "https://github.com/lewagon/data-analytics-setup/blob/master/lib/partial/remote.rb"
click node_cache "https://github.com/lewagon/data-analytics-setup/blob/master/lib/partial_cache.rb"
click node_generator "https://github.com/lewagon/data-analytics-setup/blob/master/lib/generator.rb"
click node_liquid "https://github.com/lewagon/data-analytics-setup/blob/master/lib/generator.rb"
click node_setup_guides "https://github.com/lewagon/data-analytics-setup/blob/master/macOS.md"
click node_maintenance_guides "https://github.com/lewagon/data-analytics-setup/blob/master/macOS_keep_current.md"
click node_language_guides "https://github.com/lewagon/data-analytics-setup/blob/master/macOS.es.md"
click node_guide_choices "https://github.com/lewagon/data-analytics-setup/blob/master/README.md"

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_builddefs,node_constants,node_repo_config toneBlue
class node_entry,node_spec,node_localized,node_builder toneAmber
class node_partial_factory,node_local_partial,node_remote_partial,node_cache,node_generator,node_liquid toneMint
class node_reader,node_github toneIndigo
class node_setup_guides,node_maintenance_guides,node_language_guides,node_guide_choices toneTeal
```

## Components

### Build configuration

- [OS build definitions](https://github.com/lewagon/data-analytics-setup/tree/master/builds): `builds`
- [Shared constants](https://github.com/lewagon/data-analytics-setup/blob/master/constants/constants.yml): `constants/constants.yml`
- [Repository aliases](https://github.com/lewagon/data-analytics-setup/blob/master/constants/repos.yml): `constants/repos.yml`

### Guide assembly

- [Build command](https://github.com/lewagon/data-analytics-setup/blob/master/build.rb): `build.rb`
- [Build spec](https://github.com/lewagon/data-analytics-setup/blob/master/lib/build_spec.rb): `lib/build_spec.rb`
- [Localized build](https://github.com/lewagon/data-analytics-setup/blob/master/lib/localized_build.rb): `lib/localized_build.rb`
- [Build orchestrator](https://github.com/lewagon/data-analytics-setup/blob/master/lib/builder.rb): `lib/builder.rb`

### Content and rendering

- [Partial resolver](https://github.com/lewagon/data-analytics-setup/blob/master/lib/partial.rb): `lib/partial.rb`
- [Local partial](https://github.com/lewagon/data-analytics-setup/blob/master/lib/partial/local.rb): `lib/partial/local.rb`
- [Remote partial](https://github.com/lewagon/data-analytics-setup/blob/master/lib/partial/remote.rb): `lib/partial/remote.rb`
- [Partial cache](https://github.com/lewagon/data-analytics-setup/blob/master/lib/partial_cache.rb): `lib/partial_cache.rb`
- [Guide generator](https://github.com/lewagon/data-analytics-setup/blob/master/lib/generator.rb): `lib/generator.rb`
- [Liquid renderer](https://github.com/lewagon/data-analytics-setup/blob/master/lib/generator.rb): `lib/generator.rb`

### Other components

- **Guide reader**
- **GitHub raw content**
- [OS setup guides](https://github.com/lewagon/data-analytics-setup/blob/master/macOS.md): `macOS.md`
- [Keep-current guides](https://github.com/lewagon/data-analytics-setup/blob/master/macOS_keep_current.md): `macOS_keep_current.md`
- [Localized guides](https://github.com/lewagon/data-analytics-setup/blob/master/macOS.es.md): `macOS.es.md`
- [OS guide choices](https://github.com/lewagon/data-analytics-setup/blob/master/README.md): `README.md`

## Connections

- Guide reader → OS guide choices: chooses guide (evidence: `README.md`)
- Build command → OS build definitions: loads definitions (evidence: `build.rb`)
- Build command → Shared constants: loads constants (evidence: `build.rb`)
- Build command → Repository aliases: loads aliases (evidence: `build.rb`)
- Build command → Build orchestrator: starts build (evidence: `build.rb`)
- Build orchestrator → Build spec: expands specs (evidence: `lib/builder.rb`)
- Build spec → Localized build: creates locales (evidence: `lib/build_spec.rb`)
- Build orchestrator → Partial cache: caches partials (evidence: `lib/builder.rb`)
- Build orchestrator → Guide generator: generates guides (evidence: `lib/builder.rb`)
- Localized build → Partial resolver: resolves entries (evidence: `lib/localized_build.rb`)
- Partial resolver → Local partial: creates local (evidence: `lib/partial.rb`)
- Partial resolver → Remote partial: creates remote (evidence: `lib/partial.rb`)
- Remote partial → GitHub raw content: fetches content (evidence: `lib/partial/remote.rb`)
- Partial cache → Local partial: reads content (evidence: `lib/partial_cache.rb`)
- Partial cache → Remote partial: reads content (evidence: `lib/partial_cache.rb`)
- Guide generator → Partial cache: reads cached text (evidence: `lib/generator.rb`)
- Guide generator → Liquid renderer: renders templates (evidence: `lib/generator.rb`)
- Guide generator → Shared constants: merges variables (evidence: `lib/generator.rb`)
- Guide generator → OS setup guides: writes guides (evidence: `lib/generator.rb`)
- Guide generator → Keep-current guides: writes guides (evidence: `lib/generator.rb`)
- Guide generator → Localized guides: writes variants (evidence: `lib/generator.rb`)
