Was this page helpful?
Caution
You're viewing documentation for a previous version of ScyllaDB Sphinx Theme. Switch to the latest stable version.
Hero Box¶
A custom directive to create a header on the root index.rst file.
Warning
Do not use the hero-box on the subordinate index.rst files.
Syntax¶
.. hero-box::
   <options>
   <text>
Options¶
The hero-box directive supports the following options:
Option  | 
Type  | 
Required  | 
Example Value  | 
Description  | 
|---|---|---|---|---|
  | 
string  | 
Y  | 
Lorem ipsum  | 
Hero box title.  | 
  | 
string  | 
fa fa-home  | 
A list of CSS classes to render an icon, separated by comma or space.  | 
|
  | 
string  | 
Lorem ipsum  | 
Text for the call to action.  | 
|
  | 
string  | 
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   | 
fa fa-home  | 
Link to  | 
  | 
string  | 
/_static/img/mascots/scylla-enterprise.svg  | 
Path to the image. The image should be located in the project’s   | 
Usage¶
Default¶
Using:
.. hero-box::
    :title: Lorem Ipsum
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Results in:
Lorem Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Hero box with image¶
Using:
.. hero-box::
    :title: Lorem Ipsum
    :image: /_static/img/mascots/scylla-enterprise.svg
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Results in:
Lorem Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit.