# netoun/ntun architecture

> Architecture diagram of the GitHub repository netoun/ntun, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/netoun/ntun
- Repository: https://github.com/netoun/ntun

## Overview

##### Main Components Identification

The system consists of these primary components:
- Theme Structure
- Content Management
- Styling System
- Template Engine
- Build/Generation System

##### Component Relationships

- SASS → Static Assets (compilation flow)

##### Specific Implementation Details

a. Content Structure:
- content/
- about/
- _index.md
- biography.md
- personality.md
- relationships.md

b. Template Hierarchy:
- templates/
- base.html
- index.html
- about.html
- 404.html

c. SASS Architecture:
- sass/
- style.scss (main)
- _variables.scss
- _mixins.scss
- [component styles]

##### Build Flow

Build process:

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Configuration
        Config["config.toml"]
        ThemeConfig["theme.toml"]
    end

    subgraph "Content Management"
        ContentRoot["Content Root"]:::content
        AboutSection["About Section"]:::content
        MainAbout["Main About"]:::content
        Biography["Biography"]:::content
        Personality["Personality"]:::content
        Relationships["Relationships"]:::content
    end

    subgraph "Template System"
        TemplatesRoot["Templates Root"]:::template
        BaseTemplate["Base Template"]:::template
        IndexTemplate["Homepage Template"]:::template
        AboutTemplate["About Template"]:::template
        ErrorTemplate["404 Template"]:::template
    end

    subgraph "Styling System"
        SassRoot["SASS Root"]:::styling
        MainStyle["style.scss"]:::styling
        Variables["_variables.scss"]:::styling
        Mixins["_mixins.scss"]:::styling
        BaseStyles["_base.scss"]:::styling
        HomepageStyles["_homepage.scss"]:::styling
        AboutStyles["_about.scss"]:::styling
        ErrorStyles["_404.scss"]:::styling
    end

    subgraph "Static Assets"
        StaticRoot["Static Root"]:::static
        ServerConfig[".htaccess"]:::static
    end

    %% Relationships
    Config --> ContentRoot
    Config --> TemplatesRoot
    Config --> SassRoot
    ThemeConfig --> ContentRoot
    ThemeConfig --> TemplatesRoot
    ThemeConfig --> SassRoot

    ContentRoot --> AboutSection
    AboutSection --> MainAbout
    AboutSection --> Biography
    AboutSection --> Personality
    AboutSection --> Relationships

    TemplatesRoot --> BaseTemplate
    TemplatesRoot --> IndexTemplate
    TemplatesRoot --> AboutTemplate
    TemplatesRoot --> ErrorTemplate

    SassRoot --> MainStyle
    MainStyle --> Variables
    MainStyle --> Mixins
    MainStyle --> BaseStyles
    MainStyle --> HomepageStyles
    MainStyle --> AboutStyles
    MainStyle --> ErrorStyles

    StaticRoot --> ServerConfig

    %% Click Events
    click Config "https://github.com/Netoun/ntun/blob/main/config.toml"
    click ThemeConfig "https://github.com/Netoun/ntun/blob/main/theme.toml"
    click ContentRoot "https://github.com/Netoun/ntun/tree/main/content/"
    click AboutSection "https://github.com/Netoun/ntun/tree/main/content/about/"
    click MainAbout "https://github.com/Netoun/ntun/blob/main/content/about/_index.md"
    click Biography "https://github.com/Netoun/ntun/blob/main/content/about/biography.md"
    click Personality "https://github.com/Netoun/ntun/blob/main/content/about/personality.md"
    click Relationships "https://github.com/Netoun/ntun/blob/main/content/about/relationships.md"
    click TemplatesRoot "https://github.com/Netoun/ntun/tree/main/templates/"
    click BaseTemplate "https://github.com/Netoun/ntun/blob/main/templates/base.html"
    click IndexTemplate "https://github.com/Netoun/ntun/blob/main/templates/index.html"
    click AboutTemplate "https://github.com/Netoun/ntun/blob/main/templates/about.html"
    click ErrorTemplate "https://github.com/Netoun/ntun/blob/main/templates/404.html"
    click SassRoot "https://github.com/Netoun/ntun/tree/main/sass/"
    click MainStyle "https://github.com/Netoun/ntun/blob/main/sass/style.scss"
    click Variables "https://github.com/Netoun/ntun/blob/main/sass/_variables.scss"
    click Mixins "https://github.com/Netoun/ntun/blob/main/sass/_mixins.scss"
    click BaseStyles "https://github.com/Netoun/ntun/blob/main/sass/_base.scss"
    click HomepageStyles "https://github.com/Netoun/ntun/blob/main/sass/_homepage.scss"
    click AboutStyles "https://github.com/Netoun/ntun/blob/main/sass/_about.scss"
    click ErrorStyles "https://github.com/Netoun/ntun/blob/main/sass/_404.scss"
    click StaticRoot "https://github.com/Netoun/ntun/tree/main/static/"
    click ServerConfig "https://github.com/Netoun/ntun/blob/main/static/.htaccess"

    %% Styles
    classDef config fill:#4a9eff,stroke:#333,stroke-width:2px
    classDef content fill:#4CAF50,stroke:#333,stroke-width:2px
    classDef template fill:#9C27B0,stroke:#333,stroke-width:2px
    classDef styling fill:#FF9800,stroke:#333,stroke-width:2px
    classDef static fill:#9E9E9E,stroke:#333,stroke-width:2px

    class Config,ThemeConfig config
    class ContentRoot,AboutSection,MainAbout,Biography,Personality,Relationships content
    class TemplatesRoot,BaseTemplate,IndexTemplate,AboutTemplate,ErrorTemplate template
    class SassRoot,MainStyle,Variables,Mixins,BaseStyles,HomepageStyles,AboutStyles,ErrorStyles styling
    class StaticRoot,ServerConfig static
```
