# ovh/ovhcloud-docs architecture

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

- Interactive diagram: https://gitdiagram.com/ovh/ovhcloud-docs
- Repository: https://github.com/ovh/ovhcloud-docs
- Video tour (about a minute): https://gitdiagram.com/ovh/ovhcloud-docs/video

## Overview

OVHcloud Guides is a multilingual Rspress documentation site with custom page experiences and reusable MDX widgets. The reader workflow is to navigate localized guides, follow product-specific instructions and links, and use optional search, AI, or PDF features. Its internal configuration supports locale-aware routing, generated sidebars, centralized Control Panel destinations, and reusable API/Manager controls. The README documents several capabilities whose runtime wiring is not in the excerpts; those relationships are shown only where explicitly documented, and unsampled implementation details are omitted.

Main entry points: [`config/sidebar/index.ts`](https://github.com/ovh/ovhcloud-docs/blob/develop/config/sidebar/index.ts) (Sidebar builder), [`theme/index.tsx`](https://github.com/ovh/ovhcloud-docs/blob/develop/theme/index.tsx) (Custom theme), [`config/cpnav/index.ts`](https://github.com/ovh/ovhcloud-docs/blob/develop/config/cpnav/index.ts) (CP navigation registry), [`components/Api/index.tsx`](https://github.com/ovh/ovhcloud-docs/blob/develop/components/Api/index.tsx) (API console widget)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site experience"]
  node_theme["Custom theme<br/>[index.tsx]"]
  node_locales["Locale settings<br/>[regions.ts]"]
  node_layouts["Page layouts<br/>[index.tsx]"]
end

subgraph group_navigation["Guide navigation"]
  node_sidebar["Sidebar builder<br/>[index.ts]"]
  node_sidebar_parser["Sidebar parser<br/>[parser.ts]"]
  node_cpnav["CP navigation registry<br/>[index.ts]"]
  node_cpnav_types["CP navigation model<br/>[types.ts]"]
  node_links["Localized links<br/>[links.ts]"]
end

subgraph group_widgets["Guide widgets"]
  node_api_widget["API console widget<br/>[index.tsx]"]
  node_region_context["Zone and region state<br/>[RegionContext.tsx]"]
  node_manager_link["Manager links<br/>[ManagerLink.tsx]"]
end

subgraph group_extras["Reader tools"]
  node_chatbot["AI assistant<br/>[index.tsx]"]
  node_chat_drawer["Assistant drawer<br/>[index.tsx]"]
  node_search["Pagefind search<br/>[index.tsx]"]
  node_pdf["PDF download<br/>[index.tsx]"]
  node_analytics["Analytics<br/>[index.tsx]"]
end

node_reader(("Guide reader"))

node_reader -->|"views guides"| node_theme
node_theme -.->|"serves locales"| node_locales
node_sidebar -->|"parses sidebar"| node_sidebar_parser
node_sidebar -->|"uses region config"| node_locales
node_sidebar -->|"provides navigation"| node_reader
node_reader -.->|"follows destinations"| node_cpnav
node_cpnav -->|"uses key model"| node_cpnav_types
node_reader -->|"follows localized links"| node_links
node_api_widget -->|"reads region state"| node_region_context
node_manager_link -->|"reads region state"| node_region_context
node_reader -.->|"uses embedded widgets"| node_api_widget
node_reader -.->|"opens Manager"| node_manager_link
node_reader -.->|"asks questions"| node_chatbot
node_chatbot -.->|"opens assistant UI"| node_chat_drawer
node_reader -.->|"searches guides"| node_search
node_reader -.->|"downloads guides"| node_pdf
node_theme -.->|"renders page types"| node_layouts
node_reader -.->|"generates usage data"| node_analytics

click node_theme "https://github.com/ovh/ovhcloud-docs/blob/develop/theme/index.tsx"
click node_locales "https://github.com/ovh/ovhcloud-docs/blob/develop/config/regions.ts"
click node_layouts "https://github.com/ovh/ovhcloud-docs/blob/develop/theme/layouts/OverviewLayout/index.tsx"
click node_sidebar "https://github.com/ovh/ovhcloud-docs/blob/develop/config/sidebar/index.ts"
click node_sidebar_parser "https://github.com/ovh/ovhcloud-docs/blob/develop/config/sidebar/parser.ts"
click node_cpnav "https://github.com/ovh/ovhcloud-docs/blob/develop/config/cpnav/index.ts"
click node_cpnav_types "https://github.com/ovh/ovhcloud-docs/blob/develop/config/cpnav/types.ts"
click node_links "https://github.com/ovh/ovhcloud-docs/blob/develop/config/links.ts"
click node_api_widget "https://github.com/ovh/ovhcloud-docs/blob/develop/components/Api/index.tsx"
click node_region_context "https://github.com/ovh/ovhcloud-docs/blob/develop/components/Api/RegionContext.tsx"
click node_manager_link "https://github.com/ovh/ovhcloud-docs/blob/develop/components/ManagerLink/ManagerLink.tsx"
click node_chatbot "https://github.com/ovh/ovhcloud-docs/blob/develop/components/AIChatbot/index.tsx"
click node_chat_drawer "https://github.com/ovh/ovhcloud-docs/blob/develop/theme/components/AIChatbotDrawer/index.tsx"
click node_search "https://github.com/ovh/ovhcloud-docs/blob/develop/theme/components/PagefindSearch/index.tsx"
click node_pdf "https://github.com/ovh/ovhcloud-docs/blob/develop/theme/components/PdfDownloadButton/index.tsx"
click node_analytics "https://github.com/ovh/ovhcloud-docs/blob/develop/components/Analytics/index.tsx"

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_theme,node_locales,node_layouts toneBlue
class node_sidebar,node_sidebar_parser,node_cpnav,node_cpnav_types,node_links toneAmber
class node_api_widget,node_region_context,node_manager_link toneMint
class node_chatbot,node_chat_drawer,node_search,node_pdf,node_analytics toneRose
class node_reader toneIndigo
```

## Components

### Site experience

- [Custom theme](https://github.com/ovh/ovhcloud-docs/blob/develop/theme/index.tsx): `theme/index.tsx`
- [Locale settings](https://github.com/ovh/ovhcloud-docs/blob/develop/config/regions.ts): `config/regions.ts`
- [Page layouts](https://github.com/ovh/ovhcloud-docs/blob/develop/theme/layouts/OverviewLayout/index.tsx): `theme/layouts/OverviewLayout/index.tsx`

### Guide navigation

- [Sidebar builder](https://github.com/ovh/ovhcloud-docs/blob/develop/config/sidebar/index.ts): `config/sidebar/index.ts`
- [Sidebar parser](https://github.com/ovh/ovhcloud-docs/blob/develop/config/sidebar/parser.ts): `config/sidebar/parser.ts`
- [CP navigation registry](https://github.com/ovh/ovhcloud-docs/blob/develop/config/cpnav/index.ts): `config/cpnav/index.ts`
- [CP navigation model](https://github.com/ovh/ovhcloud-docs/blob/develop/config/cpnav/types.ts): `config/cpnav/types.ts`
- [Localized links](https://github.com/ovh/ovhcloud-docs/blob/develop/config/links.ts): `config/links.ts`

### Guide widgets

- [API console widget](https://github.com/ovh/ovhcloud-docs/blob/develop/components/Api/index.tsx): `components/Api/index.tsx`
- [Zone and region state](https://github.com/ovh/ovhcloud-docs/blob/develop/components/Api/RegionContext.tsx): `components/Api/RegionContext.tsx`
- [Manager links](https://github.com/ovh/ovhcloud-docs/blob/develop/components/ManagerLink/ManagerLink.tsx): `components/ManagerLink/ManagerLink.tsx`

### Reader tools

- [AI assistant](https://github.com/ovh/ovhcloud-docs/blob/develop/components/AIChatbot/index.tsx): `components/AIChatbot/index.tsx`
- [Assistant drawer](https://github.com/ovh/ovhcloud-docs/blob/develop/theme/components/AIChatbotDrawer/index.tsx): `theme/components/AIChatbotDrawer/index.tsx`
- [Pagefind search](https://github.com/ovh/ovhcloud-docs/blob/develop/theme/components/PagefindSearch/index.tsx): `theme/components/PagefindSearch/index.tsx`
- [PDF download](https://github.com/ovh/ovhcloud-docs/blob/develop/theme/components/PdfDownloadButton/index.tsx): `theme/components/PdfDownloadButton/index.tsx`
- [Analytics](https://github.com/ovh/ovhcloud-docs/blob/develop/components/Analytics/index.tsx): `components/Analytics/index.tsx`

### Other components

- **Guide reader**

## Connections

- Guide reader → Custom theme: views guides (evidence: `README.md`)
- Custom theme → Locale settings: serves locales
- Sidebar builder → Sidebar parser: parses sidebar (evidence: `config/sidebar/index.ts`)
- Sidebar builder → Locale settings: uses region config (evidence: `config/sidebar/index.ts`)
- Sidebar builder → Guide reader: provides navigation (evidence: `README.md`)
- Guide reader → CP navigation registry: follows destinations
- CP navigation registry → CP navigation model: uses key model (evidence: `config/cpnav/types.ts`)
- Guide reader → Localized links: follows localized links (evidence: `README.md`)
- API console widget → Zone and region state: reads region state (evidence: `components/Api/index.tsx`)
- Manager links → Zone and region state: reads region state (evidence: `components/ManagerLink/ManagerLink.tsx`)
- Guide reader → API console widget: uses embedded widgets
- Guide reader → Manager links: opens Manager
- Guide reader → AI assistant: asks questions
- AI assistant → Assistant drawer: opens assistant UI
- Guide reader → Pagefind search: searches guides
- Guide reader → PDF download: downloads guides
- Custom theme → Page layouts: renders page types
- Guide reader → Analytics: generates usage data
