# superofficedocs/docs architecture

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

- Interactive diagram: https://gitdiagram.com/superofficedocs/docs
- Repository: https://github.com/superofficedocs/docs

## Overview

This repository contains SuperOffice’s Markdown/MDX documentation, hosted by Mintlify, plus site components and scripts that maintain and validate documentation content. The principal user workflow is browsing documentation and submitting feedback from a page. The provided tree samples only one documentation snippet, so it does not expose the broader content structure or the page-to-component wiring. The graph includes the documented hosting and feedback flow, sampled components, and substantial maintenance tooling; those tools are not part of the published runtime.

Main entry points: [`tools/ci/lib/repo_files.py`](https://github.com/superofficedocs/docs/blob/main/tools/ci/lib/repo_files.py) (Repository file helpers), [`tools/ci/lib/snippet_labels.py`](https://github.com/superofficedocs/docs/blob/main/tools/ci/lib/snippet_labels.py) (Snippet label helpers), [`tools/ci/lib/markdown_masking.py`](https://github.com/superofficedocs/docs/blob/main/tools/ci/lib/markdown_masking.py) (Markdown masking), [`tools/ci/check-snippet-labels.py`](https://github.com/superofficedocs/docs/blob/main/tools/ci/check-snippet-labels.py) (Snippet label guard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Documentation experience"]
  node_mintlify["Mintlify site"]
  node_docs["Markdown documentation"]
  node_feedback["Page feedback"]
  node_snippet["Markdown guide snippet<br/>[hello-world.cs]"]
end

subgraph group_components["Site components"]
  node_recent["Recent pages<br/>[recent-pages.jsx]"]
  node_form["SuperOffice form<br/>[so-form.jsx]"]
  node_metadata["SuperOffice metadata<br/>[so-metadata.jsx]"]
end

subgraph group_maintenance["Content maintenance"]
  node_redirect_guard["Redirect coverage guard"]
  node_snippet_guard["Snippet label guard"]
  node_openapi_guard["OpenAPI link guard"]
  node_cref_fixer["DocFX cref fixer"]
  node_mdo_titles["MDO title fixer"]
  node_enum_titles["Enum title fixer"]
  node_recent_sync["Recent-pages sync"]
end

subgraph group_shared["Shared CI helpers"]
  node_repo_files["Repository file helpers<br/>[repo_files.py]"]
  node_masking["Markdown masking"]
  node_snippet_labels["Snippet label helpers<br/>[snippet_labels.py]"]
end

node_reader(("Documentation reader"))

node_reader -->|"browses"| node_mintlify
node_mintlify -->|"serves"| node_docs
node_reader -->|"submits feedback"| node_feedback
node_feedback -->|"uses page control"| node_mintlify
node_redirect_guard -->|"lists files"| node_repo_files
node_snippet_guard -->|"uses helpers"| node_snippet_labels
node_snippet_guard -->|"imports helpers"| node_repo_files
node_snippet_labels -->|"uses masking"| node_masking
node_snippet_labels -->|"uses path helpers"| node_repo_files
node_openapi_guard -->|"masks Markdown"| node_masking
node_openapi_guard -->|"lists files"| node_repo_files
node_cref_fixer -->|"masks code"| node_masking
node_mdo_titles -->|"lists files"| node_repo_files
node_enum_titles -->|"lists files"| node_repo_files
node_recent_sync -->|"uses path helpers"| node_repo_files

click node_recent "https://github.com/superofficedocs/docs/blob/main/components/recent-pages.jsx"
click node_form "https://github.com/superofficedocs/docs/blob/main/components/so-form.jsx"
click node_metadata "https://github.com/superofficedocs/docs/blob/main/components/so-metadata.jsx"
click node_snippet "https://github.com/superofficedocs/docs/blob/main/contribute/markdown-guide/snippets/hello-world.cs"
click node_redirect_guard "https://github.com/superofficedocs/docs/blob/main/tools/ci/check-redirect-coverage.py"
click node_snippet_guard "https://github.com/superofficedocs/docs/blob/main/tools/ci/check-snippet-labels.py"
click node_openapi_guard "https://github.com/superofficedocs/docs/blob/main/tools/ci/check-stale-openapi-links.py"
click node_cref_fixer "https://github.com/superofficedocs/docs/blob/main/tools/ci/fix-docfx-see-cref.py"
click node_mdo_titles "https://github.com/superofficedocs/docs/blob/main/tools/ci/add-mdo-provider-sidebar-titles.py"
click node_enum_titles "https://github.com/superofficedocs/docs/blob/main/tools/ci/add-database-enum-sidebar-titles.py"
click node_recent_sync "https://github.com/superofficedocs/docs/blob/main/tools/ci/sync-recent-pages.py"
click node_repo_files "https://github.com/superofficedocs/docs/blob/main/tools/ci/lib/repo_files.py"
click node_masking "https://github.com/superofficedocs/docs/blob/main/tools/ci/lib/markdown_masking.py"
click node_snippet_labels "https://github.com/superofficedocs/docs/blob/main/tools/ci/lib/snippet_labels.py"

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_mintlify,node_docs,node_feedback,node_snippet toneBlue
class node_recent,node_form,node_metadata toneAmber
class node_redirect_guard,node_snippet_guard,node_openapi_guard,node_cref_fixer,node_mdo_titles,node_enum_titles,node_recent_sync toneMint
class node_repo_files,node_masking,node_snippet_labels toneRose
class node_reader toneIndigo
```

## Components

### Documentation experience

- **Mintlify site**
- **Markdown documentation**
- **Page feedback**
- [Markdown guide snippet](https://github.com/superofficedocs/docs/blob/main/contribute/markdown-guide/snippets/hello-world.cs): `contribute/markdown-guide/snippets/hello-world.cs`

### Site components

- [Recent pages](https://github.com/superofficedocs/docs/blob/main/components/recent-pages.jsx): `components/recent-pages.jsx`
- [SuperOffice form](https://github.com/superofficedocs/docs/blob/main/components/so-form.jsx): `components/so-form.jsx`
- [SuperOffice metadata](https://github.com/superofficedocs/docs/blob/main/components/so-metadata.jsx): `components/so-metadata.jsx`

### Content maintenance

- [Redirect coverage guard](https://github.com/superofficedocs/docs/blob/main/tools/ci/check-redirect-coverage.py): `tools/ci/check-redirect-coverage.py`
- [Snippet label guard](https://github.com/superofficedocs/docs/blob/main/tools/ci/check-snippet-labels.py): `tools/ci/check-snippet-labels.py`
- [OpenAPI link guard](https://github.com/superofficedocs/docs/blob/main/tools/ci/check-stale-openapi-links.py): `tools/ci/check-stale-openapi-links.py`
- [DocFX cref fixer](https://github.com/superofficedocs/docs/blob/main/tools/ci/fix-docfx-see-cref.py): `tools/ci/fix-docfx-see-cref.py`
- [MDO title fixer](https://github.com/superofficedocs/docs/blob/main/tools/ci/add-mdo-provider-sidebar-titles.py): `tools/ci/add-mdo-provider-sidebar-titles.py`
- [Enum title fixer](https://github.com/superofficedocs/docs/blob/main/tools/ci/add-database-enum-sidebar-titles.py): `tools/ci/add-database-enum-sidebar-titles.py`
- [Recent-pages sync](https://github.com/superofficedocs/docs/blob/main/tools/ci/sync-recent-pages.py): `tools/ci/sync-recent-pages.py`

### Shared CI helpers

- [Repository file helpers](https://github.com/superofficedocs/docs/blob/main/tools/ci/lib/repo_files.py): `tools/ci/lib/repo_files.py`
- [Markdown masking](https://github.com/superofficedocs/docs/blob/main/tools/ci/lib/markdown_masking.py): `tools/ci/lib/markdown_masking.py`
- [Snippet label helpers](https://github.com/superofficedocs/docs/blob/main/tools/ci/lib/snippet_labels.py): `tools/ci/lib/snippet_labels.py`

### Other components

- **Documentation reader**

## Connections

- Documentation reader → Mintlify site: browses (evidence: `README.md`)
- Mintlify site → Markdown documentation: serves (evidence: `README.md`)
- Documentation reader → Page feedback: submits feedback (evidence: `README.md`)
- Page feedback → Mintlify site: uses page control (evidence: `README.md`)
- Redirect coverage guard → Repository file helpers: lists files (evidence: `tools/ci/check-redirect-coverage.py`)
- Snippet label guard → Snippet label helpers: uses helpers (evidence: `tools/ci/check-snippet-labels.py`)
- Snippet label guard → Repository file helpers: imports helpers (evidence: `tools/ci/check-snippet-labels.py`)
- Snippet label helpers → Markdown masking: uses masking (evidence: `tools/ci/lib/snippet_labels.py`)
- Snippet label helpers → Repository file helpers: uses path helpers (evidence: `tools/ci/lib/snippet_labels.py`)
- OpenAPI link guard → Markdown masking: masks Markdown (evidence: `tools/ci/check-stale-openapi-links.py`)
- OpenAPI link guard → Repository file helpers: lists files (evidence: `tools/ci/check-stale-openapi-links.py`)
- DocFX cref fixer → Markdown masking: masks code (evidence: `tools/ci/fix-docfx-see-cref.py`)
- MDO title fixer → Repository file helpers: lists files (evidence: `tools/ci/add-mdo-provider-sidebar-titles.py`)
- Enum title fixer → Repository file helpers: lists files (evidence: `tools/ci/add-database-enum-sidebar-titles.py`)
- Recent-pages sync → Repository file helpers: uses path helpers (evidence: `tools/ci/sync-recent-pages.py`)
