# casper-network/docs-redux architecture

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

- Interactive diagram: https://gitdiagram.com/casper-network/docs-redux
- Repository: https://github.com/casper-network/docs-redux

## Overview

Casper Network Docs is a Docusaurus documentation site. A reader navigates its configured documentation sections and uses the site’s theme and custom React components to view content. The README identifies local serving and optional Algolia search; the sidebar excerpt shows material for network concepts, developers, operators, resources, and users. Source excerpts primarily cover configuration and UI components, so links between documentation content and rendering are shown only where supported; unsampled content implementation is not inferred.

Main entry points: [`config/index.js`](https://github.com/casper-network/docs-redux/blob/dev/config/index.js) (Theme assembly), [`src/components/atoms/NumberSection/index.tsx`](https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/NumberSection/index.tsx) (Number section), [`docusaurus.config.js`](https://github.com/casper-network/docs-redux/blob/dev/docusaurus.config.js) (Site configuration), [`src/components/containers/Section/index.tsx`](https://github.com/casper-network/docs-redux/blob/dev/src/components/containers/Section/index.tsx) (Section wrapper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site_config["Site configuration"]
  node_site_config_entry["Site configuration"]
  node_env_config["Environment settings<br/>[env.config.js]"]
  node_theme_assembly["Theme assembly<br/>[index.js]"]
  node_nav_theme["Navbar settings"]
  node_footer_theme["Footer settings"]
  node_search_theme["Algolia settings"]
  node_announcement["Announcement bar"]
end

subgraph group_docs_nav["Documentation navigation"]
  node_doc_navigation["Docs navigation<br/>[sidebar.config.js]"]
  node_faq_navigation["FAQ navigation<br/>[faq.sidebar.js]"]
  node_condor_navigation["Condor navigation<br/>[condor.sidebar.js]"]
end

subgraph group_custom_ui["Custom site UI"]
  node_landing_sections["Landing sections<br/>[index.tsx]"]
  node_image_text["Image text block<br/>[index.tsx]"]
  node_section_wrapper["Section wrapper<br/>[index.tsx]"]
  node_hero["Hero banner<br/>[Hero.tsx]"]
  node_atom_exports["UI component exports<br/>[index.ts]"]
  node_site_button["Site button<br/>[index.tsx]"]
  node_number_section["Number section<br/>[index.tsx]"]
  node_viewport_hook["Viewport width hook<br/>[useWindowWidth.ts]"]
  node_visibility_hook["Visibility hook<br/>[useOnScreen.ts]"]
  node_card["Card<br/>[Card.tsx]"]
  node_button["Navigation button<br/>[Button.tsx]"]
  node_background["Background<br/>[Background.tsx]"]
end

node_reader(("Reader"))
node_docusaurus["Docusaurus runtime"]

node_reader -->|"views site"| node_docusaurus
node_docusaurus -.->|"loads configuration"| node_site_config_entry
node_site_config_entry -->|"imports settings"| node_env_config
node_site_config_entry -->|"imports theme"| node_theme_assembly
node_theme_assembly -->|"imports settings"| node_nav_theme
node_theme_assembly -->|"imports settings"| node_footer_theme
node_theme_assembly -->|"imports settings"| node_search_theme
node_theme_assembly -->|"imports settings"| node_announcement
node_docusaurus -.->|"uses navigation"| node_doc_navigation
node_hero -->|"imports components"| node_atom_exports
node_image_text -->|"renders within"| node_section_wrapper
node_image_text -->|"renders"| node_site_button
node_landing_sections -->|"uses wrapper"| node_section_wrapper
node_landing_sections -->|"renders"| node_site_button
node_number_section -->|"uses wrapper"| node_section_wrapper
node_number_section -->|"checks width"| node_viewport_hook
node_number_section -->|"checks visibility"| node_visibility_hook

click node_site_config_entry "https://github.com/casper-network/docs-redux/blob/dev/docusaurus.config.js"
click node_env_config "https://github.com/casper-network/docs-redux/blob/dev/env.config.js"
click node_theme_assembly "https://github.com/casper-network/docs-redux/blob/dev/config/index.js"
click node_nav_theme "https://github.com/casper-network/docs-redux/blob/dev/config/theme.navbar.config.js"
click node_footer_theme "https://github.com/casper-network/docs-redux/blob/dev/config/theme.footer.config.js"
click node_search_theme "https://github.com/casper-network/docs-redux/blob/dev/config/theme.algolia.config.js"
click node_announcement "https://github.com/casper-network/docs-redux/blob/dev/config/announcementBar.config.js"
click node_doc_navigation "https://github.com/casper-network/docs-redux/blob/dev/config/sidebar.config.js"
click node_faq_navigation "https://github.com/casper-network/docs-redux/blob/dev/faq/faq.sidebar.js"
click node_condor_navigation "https://github.com/casper-network/docs-redux/blob/dev/condor/condor.sidebar.js"
click node_landing_sections "https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/InfoSection/index.tsx"
click node_image_text "https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/ImageAndTextBlock/index.tsx"
click node_section_wrapper "https://github.com/casper-network/docs-redux/blob/dev/src/components/containers/Section/index.tsx"
click node_hero "https://github.com/casper-network/docs-redux/blob/dev/src/components/containers/Hero/Hero.tsx"
click node_atom_exports "https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/index.ts"
click node_site_button "https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/SiteButton/index.tsx"
click node_number_section "https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/NumberSection/index.tsx"
click node_viewport_hook "https://github.com/casper-network/docs-redux/blob/dev/src/hooks/useWindowWidth.ts"
click node_visibility_hook "https://github.com/casper-network/docs-redux/blob/dev/src/hooks/useOnScreen.ts"
click node_card "https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/Card/Card.tsx"
click node_button "https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/Button/Button.tsx"
click node_background "https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/Background/Background.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_site_config_entry,node_env_config,node_theme_assembly,node_nav_theme,node_footer_theme,node_search_theme,node_announcement toneBlue
class node_doc_navigation,node_faq_navigation,node_condor_navigation toneAmber
class node_landing_sections,node_image_text,node_section_wrapper,node_hero,node_atom_exports,node_site_button,node_number_section,node_viewport_hook,node_visibility_hook,node_card,node_button,node_background toneMint
class node_reader,node_docusaurus toneIndigo
```

## Components

### Site configuration

- [Site configuration](https://github.com/casper-network/docs-redux/blob/dev/docusaurus.config.js): `docusaurus.config.js`
- [Environment settings](https://github.com/casper-network/docs-redux/blob/dev/env.config.js): `env.config.js`
- [Theme assembly](https://github.com/casper-network/docs-redux/blob/dev/config/index.js): `config/index.js`
- [Navbar settings](https://github.com/casper-network/docs-redux/blob/dev/config/theme.navbar.config.js): `config/theme.navbar.config.js`
- [Footer settings](https://github.com/casper-network/docs-redux/blob/dev/config/theme.footer.config.js): `config/theme.footer.config.js`
- [Algolia settings](https://github.com/casper-network/docs-redux/blob/dev/config/theme.algolia.config.js): `config/theme.algolia.config.js`
- [Announcement bar](https://github.com/casper-network/docs-redux/blob/dev/config/announcementBar.config.js): `config/announcementBar.config.js`

### Documentation navigation

- [Docs navigation](https://github.com/casper-network/docs-redux/blob/dev/config/sidebar.config.js): `config/sidebar.config.js`
- [FAQ navigation](https://github.com/casper-network/docs-redux/blob/dev/faq/faq.sidebar.js): `faq/faq.sidebar.js`
- [Condor navigation](https://github.com/casper-network/docs-redux/blob/dev/condor/condor.sidebar.js): `condor/condor.sidebar.js`

### Custom site UI

- [Landing sections](https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/InfoSection/index.tsx): `src/components/atoms/InfoSection/index.tsx`
- [Image text block](https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/ImageAndTextBlock/index.tsx): `src/components/atoms/ImageAndTextBlock/index.tsx`
- [Section wrapper](https://github.com/casper-network/docs-redux/blob/dev/src/components/containers/Section/index.tsx): `src/components/containers/Section/index.tsx`
- [Hero banner](https://github.com/casper-network/docs-redux/blob/dev/src/components/containers/Hero/Hero.tsx): `src/components/containers/Hero/Hero.tsx`
- [UI component exports](https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/index.ts): `src/components/atoms/index.ts`
- [Site button](https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/SiteButton/index.tsx): `src/components/atoms/SiteButton/index.tsx`
- [Number section](https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/NumberSection/index.tsx): `src/components/atoms/NumberSection/index.tsx`
- [Viewport width hook](https://github.com/casper-network/docs-redux/blob/dev/src/hooks/useWindowWidth.ts): `src/hooks/useWindowWidth.ts`
- [Visibility hook](https://github.com/casper-network/docs-redux/blob/dev/src/hooks/useOnScreen.ts): `src/hooks/useOnScreen.ts`
- [Card](https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/Card/Card.tsx): `src/components/atoms/Card/Card.tsx`
- [Navigation button](https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/Button/Button.tsx): `src/components/atoms/Button/Button.tsx`
- [Background](https://github.com/casper-network/docs-redux/blob/dev/src/components/atoms/Background/Background.tsx): `src/components/atoms/Background/Background.tsx`

### Other components

- **Reader**
- **Docusaurus runtime**

## Connections

- Reader → Docusaurus runtime: views site (evidence: `README`)
- Docusaurus runtime → Site configuration: loads configuration
- Site configuration → Environment settings: imports settings (evidence: `docusaurus.config.js`)
- Site configuration → Theme assembly: imports theme (evidence: `docusaurus.config.js`)
- Theme assembly → Navbar settings: imports settings (evidence: `config/index.js`)
- Theme assembly → Footer settings: imports settings (evidence: `config/index.js`)
- Theme assembly → Algolia settings: imports settings (evidence: `config/index.js`)
- Theme assembly → Announcement bar: imports settings (evidence: `config/index.js`)
- Docusaurus runtime → Docs navigation: uses navigation
- Hero banner → UI component exports: imports components (evidence: `src/components/containers/Hero/Hero.tsx`)
- Image text block → Section wrapper: renders within (evidence: `src/components/atoms/ImageAndTextBlock/index.tsx`)
- Image text block → Site button: renders (evidence: `src/components/atoms/ImageAndTextBlock/index.tsx`)
- Landing sections → Section wrapper: uses wrapper (evidence: `src/components/atoms/InfoSection/index.tsx`)
- Landing sections → Site button: renders (evidence: `src/components/atoms/InfoSection/index.tsx`)
- Number section → Section wrapper: uses wrapper (evidence: `src/components/atoms/NumberSection/index.tsx`)
- Number section → Viewport width hook: checks width (evidence: `src/components/atoms/NumberSection/index.tsx`)
- Number section → Visibility hook: checks visibility (evidence: `src/components/atoms/NumberSection/index.tsx`)
