ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Server
  • Cloud
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Download
ScyllaDB Docs ScyllaDB Sphinx Theme Examples Topic box

Topic box¶

A custom directive that creates graphical boxes (cards) for navigation and content organization.

Syntax¶

.. topic-box::
   <options>

   <text>

Options¶

The topic-box directive supports the following options:

Option

Type

Required

Example Value

Description

title

string

Lorem ipsum

Topic box title.

class

string

Custom CSS class.

icon

string

icon-home

A list of CSS classes to render icons, separated by comma or space.

image

string

/_static/img/mascots-2/enterprise.svg

Path to the image. The image should be located in the project’s _static folder.

link

string

getting-started

Relative link or external URL for the call to action. Do not use leading and trailing (“/”) symbols to define relative links. (e.g. instead of /getting-started/, use getting-started).

link_target

string

auto

Defines if the link should be opened in a new tab or not. Available values: auto, _blank, _self. Defaults to auto. When set to auto, external links will open in a new tab while internal links will open in the same tab.

anchor

string

Getting Started >

Text for the call to action.

Link resolution¶

The topic-box directive handles different types of links:

  1. External links (e.g. https://example.com)

  2. Internal links with different path formats: * Absolute paths (e.g. /getting-started/installation) * Relative paths (e.g. code-blocks) * Parent directory references (e.g. ../getting-started) * Index files (e.g. index)

Examples:

# External link
.. topic-box::
    :title: ScyllaDB
    :link: https://scylladb.com
    :anchor: Learn more

# Absolute path (from project root)
.. topic-box::
    :title: Getting Started
    :link: /getting-started/installation
    :anchor: Learn more

# Relative path (same directory)
.. topic-box::
    :title: Code Blocks
    :link: code-blocks
    :anchor: Learn more

# Parent directory
.. topic-box::
    :title: Parent Section
    :link: ../getting-started/installation
    :anchor: Learn more

# Index file
.. topic-box::
    :title: Examples
    :link: index
    :anchor: Learn more

Renders:

ScyllaDB

Learn more

Getting Started

Learn more

Code Blocks

Learn more

Parent Section

Learn more

Examples

Learn more

Grid support¶

To display topic boxes in responsive grid layouts, use the Grid directive. The grid directive is specifically designed to work with topic boxes and supports Foundation’s grid system for responsive layouts.

Usage¶

Topic with icon¶

Using:

.. topic-box::
    :title: Lorem Ipsum
    :icon: icon-github
    :link: #
    :anchor: Lorem ipsum

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Results in:

Lorem Ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum

Topic with image¶

Using:

.. topic-box::
    :title: Lorem Ipsum
    :image: /_static/img/mascots-2/enterprise.svg
    :link: #
    :anchor: Lorem ipsum

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Results in:

Lorem Ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum

Topic with external link¶

Using:

.. topic-box::
    :title: Lorem Ipsum
    :link: https://scylladb.com
    :anchor: Lorem ipsum

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Results in:

Lorem Ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum

Topic with external link (same tab)¶

Using:

.. topic-box::
    :title: Lorem Ipsum
    :link: https://scylladb.com
    :link_target: _self
    :anchor: Lorem ipsum

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Results in:

Lorem Ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Lorem ipsum

Product topic¶

Using:

.. topic-box::
    :title: Lorem Ipsum
    :link: #
    :image: /_static/img/mascots-2/enterprise.svg
    :class: topic-box--product

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Results in:

Lorem Ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Was this page helpful?

PREVIOUS
Tooltips
NEXT
Versions
  • Create an issue
  • Edit this page

On this page

  • Topic box
    • Syntax
    • Options
    • Link resolution
    • Grid support
    • Usage
      • Topic with icon
      • Topic with image
      • Topic with external link
      • Topic with external link (same tab)
      • Product topic
ScyllaDB Sphinx Theme
  • 1.8
    • 1.8
    • 1.7
    • 1.6
    • 1.5
    • 1.4
    • 1.3
    • 1.2
    • 1.1
  • Getting started
    • Toolchain
    • Installation
    • Quickstart
  • Configuration
    • Template options
    • Page options
    • Multiversion options
    • Markdown support
    • Redirects support
    • AI chatbot support (beta)
    • Search support
    • Dependabot support
  • Commands
  • Deployment
    • Production deployment
    • Pull requests previews
    • Centralized publication
  • Examples
    • Admonitions
    • Alert
    • 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
  • Upgrade guides
    • 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
© 2025 ScyllaDB | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Powered by Sphinx 7.4.7 & ScyllaDB Theme 1.8.7
Ask AI