ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Deployments
    • Cloud
    • Server
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
    • Supported Driver Versions
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Install
Search Ask AI
ScyllaDB Docs ScyllaDB Sphinx Theme Examples Diagrams
For AI agents: a documentation index is available at https://sphinx-theme.scylladb.com/master/llms.txt. A Markdown version of this page is at https://sphinx-theme.scylladb.com/master/examples/diagrams.md.

Caution

You're viewing documentation for an unstable version of ScyllaDB Sphinx Theme. Switch to the latest stable version.

Diagrams¶

The documentation toolchain supports rendering diagrams and charts using Mermaid, a library designed for creating sequence diagrams, flowcharts, and other visualizations.

Default¶

Use the mermaid directive to render a diagram inline.

.. mermaid ::

   graph TD
   A --> B
   B -- Label --> C

Renders:

        graph TD
A --> B
B -- Label --> C
    

For more details, refer to the sphinxcontrib-mermaid documentation.

Diagrams with metadata¶

Mermaid diagrams can be wrapped with the diagram directive to attach metadata, so external tools can filter and extract them.

.. diagram::
   :id: request-flow
   :tags: networking, ingress
   :categories: architecture
   :deployment: core
   :last-reviewed: 2026-06-01

   .. mermaid::

      graph TD
      Client --> Gateway
      Gateway -- Auth --> Service
      Service --> Database

Renders:

        graph TD
Client --> Gateway
Gateway -- Auth --> Service
Service --> Database
    

Diagram catalog¶

Every diagram directive on the site is also indexed in a single diagrams.json published at the build root (e.g. https://sphinx-theme.scylladb.com/stable/diagrams.json). Each entry carries the metadata plus either an absolute image URL or the raw mermaid source, so external tools can filter and extract diagrams without scraping HTML.

Example entries with one mermaid diagram and one image, illustrating both type values:

{
  "diagrams": [
    {
      "id": "request-flow",
      "page": "examples/diagrams",
      "page_url": "https://sphinx-theme.scylladb.com/stable/examples/diagrams/#request-flow",
      "tags": ["networking", "ingress"],
      "categories": ["architecture"],
      "deployment": "core",
      "last_reviewed": "2026-06-01",
      "type": "mermaid",
      "content": "graph TD\nClient --> Gateway\nGateway -- Auth --> Service\nService --> Database"
    },
    {
      "id": "auth-flow",
      "page": "examples/images",
      "page_url": "https://sphinx-theme.scylladb.com/stable/examples/images/#auth-flow",
      "tags": ["networking", "security"],
      "categories": ["security"],
      "deployment": "core",
      "last_reviewed": "2026-06-01",
      "type": "image",
      "content": "https://sphinx-theme.scylladb.com/stable/_images/diagram.svg"
    }
  ]
}

Was this page helpful?

PREVIOUS
Code blocks
NEXT
Grid
  • Create an issue
  • Edit this page

On this page

  • Diagrams
    • Default
    • Diagrams with metadata
    • Diagram catalog
ScyllaDB Sphinx Theme
Search Ask AI
  • master
    • 1.9
    • 1.8
    • 1.7
    • 1.6
    • 1.5
    • 1.4
    • 1.3
    • 1.2
    • 1.1
  • Getting started
    • Toolchain
    • Installation
    • Quickstart
    • Projects using this theme
  • Configuration
    • Template options
    • Page options
    • Multiversion options
    • Markdown support
    • Redirects support
    • AI chatbot support
    • AI visibility
    • Search support
    • Dependabot support
  • Commands
  • Deployment
    • Production deployment
    • Pull requests previews
    • Centralized publication
  • Examples
    • Admonitions
    • Alert
    • API Documentation
      • Python
      • Doxygen
      • REST API (Redocly)
    • Collapse
    • Code blocks
    • Diagrams
    • Grid
    • Glossary
    • Headings
    • Hero box
    • Icons
    • Images
    • Includes
    • Labels
    • Links
    • Lists
    • Mascots
    • Panel box
    • Substitutions
    • Tables
    • Tabs
    • Text
    • TOC
    • Tooltips
    • Topic box
    • Versions
    • Videos
  • Upgrade guides
    • Upgrading from 1.8 to 1.9
    • Upgrading from 1.7 to 1.8
    • Upgrading from 1.6 to 1.7
    • Upgrading from 1.5 to 1.6
    • Upgrading from 1.4 to 1.5
    • Upgrading from 1.3 to 1.4
    • Upgrading from 1.2 to 1.3
    • Upgrading from 1.1 to 1.2
    • Upgrading from 1.0 to 1.1
    • Upgrading from 0.x to 1.0
    • Changelog
  • Contribute
    • Contribute to the documentation
    • Contribute to the theme
    • Source Code
Docs Tutorials University Contact Us About Us
© 2026 ScyllaDB | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 16 Jul 2026.
Powered by Sphinx 9.1.0 & ScyllaDB Theme 1.9.3