# stratismarkou/random-walks architecture

> Architecture diagram of the GitHub repository stratismarkou/random-walks, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/stratismarkou/random-walks
- Repository: https://github.com/stratismarkou/random-walks

## Overview

##### Main Components

a. Content Organization Layer
- Three main content sections:
- Probability Introduction (prob-intro)
- Papers Implementation (papers)
- Mathematical Foundations (topology, mira)

b. Build System Layer
- Jupyter Book build system
- Configuration components (_config.yml, _toc.yml)
- Static assets (_static folder)

c. Output Layer
- Generated website (random-walks.org)
- Interactive notebooks
- Mathematical content rendering

##### Relationships to Highlight

- Content Flow: Source Files → Build System → Website
- Integration between different content types

##### Specific Implementation Details

- Top Level: Show the main repository structure
- Middle Level: Content organization and build system
- Bottom Level: Output and delivery

##### Content Management
- How the _toc.yml manages the structure
- How different content types are processed

##### Build Pipeline
- Demonstrate the flow from source to published content
- How different file types are handled

##### Resource Management
- How static resources are managed
- Bibliography and reference handling

##### Website Generation
- Final output structure
- Interactive vs static content

Remember to maintain a balance between showing the technical architecture while also emphasizing the educational content structure, as this is primarily an educational resource with technical implementation details supporting its delivery.

- File type indicators
- Content category markers
- Build process indicators
- Configuration elements

This will help viewers understand both the technical architecture and the educational content organization in a single view.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Content
        ProbIntro["Probability Introduction"]:::notebook
        Papers["Papers Implementation"]:::notebook
        MathFound["Mathematical Foundations"]:::notebook
        subgraph MathFoundations
            Topology["Topology"]:::notebook
            MIRA["MIRA"]:::notebook
        end
    end

    subgraph BuildSystem
        Config["Configuration"]:::config
        TOC["Table of Contents"]:::config
        Static["Static Assets"]:::static
        BibSystem["Bibliography System"]:::reference
        LaTeX["LaTeX Integration"]:::latex
        EnvConfig["Environment Config"]:::config
    end

    subgraph Output
        Website["random-walks.org"]:::website
        Interactive["Interactive Notebooks"]:::interactive
        MathRender["Math Rendering"]:::render
    end

    ProbIntro --> TOC
    Papers --> TOC
    MathFound --> TOC
    Topology --> MathFound
    MIRA --> MathFound

    TOC --> BuildSystem
    Config --> BuildSystem
    Static --> BuildSystem
    BibSystem --> BuildSystem
    LaTeX --> BuildSystem
    EnvConfig --> BuildSystem

    BuildSystem --> Website
    BuildSystem --> Interactive
    BuildSystem --> MathRender

    %% Click events
    click ProbIntro "https://github.com/stratisMarkou/random-walks/tree/master/random-walks/book/prob-intro/"
    click Papers "https://github.com/stratisMarkou/random-walks/tree/master/random-walks/book/papers/"
    click Topology "https://github.com/stratisMarkou/random-walks/tree/master/random-walks/book/topology/"
    click MIRA "https://github.com/stratisMarkou/random-walks/tree/master/random-walks/book/mira/"
    click Config "https://github.com/stratisMarkou/random-walks/blob/master/random-walks/_config.yml"
    click TOC "https://github.com/stratisMarkou/random-walks/blob/master/random-walks/_toc.yml"
    click Static "https://github.com/stratisMarkou/random-walks/tree/master/random-walks/_static/"
    click BibSystem "https://github.com/stratisMarkou/random-walks/blob/master/random-walks/references.bib"
    click LaTeX "https://github.com/stratisMarkou/random-walks/tree/master/random-walks/book/prob-intro/ch08/img/"
    click EnvConfig "https://github.com/stratisMarkou/random-walks/blob/master/random-walks/requirements.txt"

    %% Styling
    classDef notebook fill:#3498db,stroke:#2980b9,color:white
    classDef config fill:#e67e22,stroke:#d35400,color:white
    classDef static fill:#9b59b6,stroke:#8e44ad,color:white
    classDef reference fill:#95a5a6,stroke:#7f8c8d,color:white
    classDef latex fill:#1abc9c,stroke:#16a085,color:white
    classDef website fill:#2ecc71,stroke:#27ae60,color:white
    classDef interactive fill:#e74c3c,stroke:#c0392b,color:white
    classDef render fill:#f1c40f,stroke:#f39c12,color:white

    %% Legend
    subgraph Legend
        L1["Jupyter Notebooks"]:::notebook
        L2["Configuration Files"]:::config
        L3["Static Assets"]:::static
        L4["References"]:::reference
        L5["LaTeX Components"]:::latex
        L6["Website Output"]:::website
        L7["Interactive Elements"]:::interactive
        L8["Math Rendering"]:::render
    end
```
