# tox/tox.chat architecture

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

- Interactive diagram: https://gitdiagram.com/tox/tox.chat
- Repository: https://github.com/tox/tox.chat

## Overview

Tox Website is a static informational site for Tox, with curated client listings and platform-specific download guidance. Its main workflow is generating HTML from the Jinja templates and serving the resulting pages and local assets; the download page’s JavaScript detects the visitor’s platform and builds relevant client buttons. The README names the site’s generation workflow and template conventions. Source excerpts are limited, so links between individual pages and shared templates or scripts are omitted where not shown.

Main entry points: [`pelicanconf.py`](https://github.com/tox/tox.chat/blob/master/pelicanconf.py) (Site configuration), [`themes/website/static/js/osdetect.js`](https://github.com/tox/tox.chat/blob/master/themes/website/static/js/osdetect.js) (Platform detection), [`themes/website/templates/index.html`](https://github.com/tox/tox.chat/blob/master/themes/website/templates/index.html) (Home page), [`themes/website/templates/download.html`](https://github.com/tox/tox.chat/blob/master/themes/website/templates/download.html) (Download page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_generation["Site generation"]
  node_pelican["Pelican generator"]
  node_config["Site configuration<br/>[pelicanconf.py]"]
  node_generated["Generated HTML"]
end

subgraph group_pages["Information pages"]
  node_home["Home page<br/>[index.html]"]
  node_about["About page<br/>[about.html]"]
  node_clients["Client listings<br/>[clients.html]"]
  node_faq["FAQ page<br/>[faq.html]"]
  node_faqstyle["FAQ template<br/>[faq.html]"]
end

subgraph group_downloads["Client downloads"]
  node_download["Download page<br/>[download.html]"]
  node_osdetect["Platform detection<br/>[osdetect.js]"]
end

subgraph group_presentation["Shared presentation"]
  node_base["Base template<br/>[_base.html]"]
  node_navbar["Navigation items<br/>[_navbar_items.html]"]
  node_static["Local styles and media"]
end

node_visitor(("Site visitor"))

node_pelican -->|"uses configuration"| node_config
node_config -->|"registers templates"| node_home
node_pelican -->|"generates HTML"| node_generated
node_pelican -->|"copies assets"| node_static
node_visitor -.->|"runs script"| node_osdetect
node_osdetect -.->|"builds download buttons"| node_download

click node_config "https://github.com/tox/tox.chat/blob/master/pelicanconf.py"
click node_home "https://github.com/tox/tox.chat/blob/master/themes/website/templates/index.html"
click node_about "https://github.com/tox/tox.chat/blob/master/themes/website/templates/about.html"
click node_clients "https://github.com/tox/tox.chat/blob/master/themes/website/templates/clients.html"
click node_faq "https://github.com/tox/tox.chat/blob/master/themes/website/templates/faq.html"
click node_download "https://github.com/tox/tox.chat/blob/master/themes/website/templates/download.html"
click node_osdetect "https://github.com/tox/tox.chat/blob/master/themes/website/static/js/osdetect.js"
click node_base "https://github.com/tox/tox.chat/blob/master/themes/website/templates/_base.html"
click node_navbar "https://github.com/tox/tox.chat/blob/master/themes/website/templates/_navbar_items.html"
click node_faqstyle "https://github.com/tox/tox.chat/blob/master/themes/website/templates/faq.html"
click node_static "https://github.com/tox/tox.chat/tree/master/themes/website/static"

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_pelican,node_config,node_generated toneBlue
class node_home,node_about,node_clients,node_faq,node_faqstyle toneAmber
class node_download,node_osdetect toneMint
class node_base,node_navbar,node_static toneRose
class node_visitor toneIndigo
```

## Components

### Site generation

- **Pelican generator**
- [Site configuration](https://github.com/tox/tox.chat/blob/master/pelicanconf.py): `pelicanconf.py`
- **Generated HTML**

### Information pages

- [Home page](https://github.com/tox/tox.chat/blob/master/themes/website/templates/index.html): `themes/website/templates/index.html`
- [About page](https://github.com/tox/tox.chat/blob/master/themes/website/templates/about.html): `themes/website/templates/about.html`
- [Client listings](https://github.com/tox/tox.chat/blob/master/themes/website/templates/clients.html): `themes/website/templates/clients.html`
- [FAQ page](https://github.com/tox/tox.chat/blob/master/themes/website/templates/faq.html): `themes/website/templates/faq.html`
- [FAQ template](https://github.com/tox/tox.chat/blob/master/themes/website/templates/faq.html): `themes/website/templates/faq.html`

### Client downloads

- [Download page](https://github.com/tox/tox.chat/blob/master/themes/website/templates/download.html): `themes/website/templates/download.html`
- [Platform detection](https://github.com/tox/tox.chat/blob/master/themes/website/static/js/osdetect.js): `themes/website/static/js/osdetect.js`

### Shared presentation

- [Base template](https://github.com/tox/tox.chat/blob/master/themes/website/templates/_base.html): `themes/website/templates/_base.html`
- [Navigation items](https://github.com/tox/tox.chat/blob/master/themes/website/templates/_navbar_items.html): `themes/website/templates/_navbar_items.html`
- [Local styles and media](https://github.com/tox/tox.chat/tree/master/themes/website/static): `themes/website/static`

### Other components

- **Site visitor**

## Connections

- Pelican generator → Site configuration: uses configuration (evidence: `README.md`)
- Site configuration → Home page: registers templates (evidence: `pelicanconf.py`)
- Pelican generator → Generated HTML: generates HTML (evidence: `README.md`)
- Pelican generator → Local styles and media: copies assets (evidence: `README.md`)
- Site visitor → Platform detection: runs script
- Platform detection → Download page: builds download buttons
