Note that by default sphinx converts the content of references to raw text.
For example **Boldtext** with ref-type set to ref will be rendered without bold:
Type of reference to use; any (default), ref, doc, or myst
color
Set the color of the button (background and font).
One of the semantic color names: primary, secondary, success, danger, warning, info, light, dark, muted.
outline
Outline color variant
align
Align the button on the page; left, right, center or justify
Octicon icons and Material icons are added as SVG’s directly into the page with the octicon and material-<flavor> roles. See below for the different flavors of Material Design Icons.
By default the icon will be of height 1em (i.e. the height of the font).
A specific height can be set after a semi-colon (;) with units of either px, em or rem.
Additional CSS classes can also be added to the SVG after a second semi-colon (;) delimiter.
Material Design icons come as several flavors. Each flavor represents a different role used in sphinx-design. These flavors are:
material-regular
material-outlined
material-round
material-sharp
material-twotone
Not all icons are available for each flavor, but most are. Instead of displaying the 10660+ icons here, you are encouraged to browse the available icons from the Material Design Icons’ showcase hosted by Google.
A regular icon: , some more text
A coloured regular icon: , some more text.
A coloured outline icon: , some more text.
A coloured sharp icon: , some more text.
A coloured round icon: , some more text.
A coloured two-tone icon: , some more text.
-A regular icon: {material-regular}`data_exploration;2em`, some more text
-A coloured regular icon: {material-regular}`settings;3em;sd-text-success`, some more text.
-A coloured outline icon: {material-outlined}`settings;3em;sd-text-success`, some more text.
-A coloured sharp icon: {material-sharp}`settings;3em;sd-text-success`, some more text.
-A coloured round icon: {material-round}`settings;3em;sd-text-success`, some more text.
-A coloured two-tone icon: {material-twotone}`settings;3em;sd-text-success`, some more text.
-A fixed size icon: {material-regular}`data_exploration;24px`, some more text.
- A regular icon: :material-regular:`data_exploration;2em`, some more text
- A coloured regular icon: :material-regular:`settings;3em;sd-text-success`, some more text.
- A coloured outline icon: :material-outlined:`settings;3em;sd-text-success`, some more text.
- A coloured sharp icon: :material-sharp:`settings;3em;sd-text-success`, some more text.
- A coloured round icon: :material-round:`settings;3em;sd-text-success`, some more text.
- A coloured two-tone icon: :material-twotone:`settings;3em;sd-text-success`, some more text.
- A fixed size icon: :material-regular:`data_exploration;24px`, some more text.
FontAwesome icons are added via the Fontawesome CSS classes.
If the theme you are using does not already include the FontAwesome CSS, it should be loaded in your configuration from a font-awesome CDN, with the html_css_files option, e.g.:
Use either fa (deprecated in font-awesome v5), fas, fab or far for the role name.
Note that not all regular style icons are free, far role only works with free ones.
Warning
Since the FontAwesome icons are fetched directly from their distributed CSS, specifying a height/size to the fa* roles is not supported.
However, you can always add your custom CSS class that controls the font-size property.
If a height/size is supplied to a fa* role, then it will be interpreted as a CSS class.
There can only be a maximum of 1 ; in the fa* roles’ arguments
-An icon {fas}`spinner;sd-text-primary`, some more text.
-An icon {fab}`github`, some more text.
-An icon {fab}`gitkraken;sd-text-success fa-xl`, some more text.
-An icon {fas}`skull;sd-text-danger`, some more text.
- An icon :fas:`spinner;sd-text-primary`, some more text.
- An icon :fab:`github`, some more text.
- An icon :fab:`gitkraken;sd-text-success fa-xl`, some more text.
- An icon :fas:`skull;sd-text-danger`, some more text.
An icon , some more text.
An icon , some more text.
An icon , some more text.
An icon , some more text.
By default, icons will only be output in HTML formats. But if you want FontAwesome icons to be output on LaTeX, using the fontawesome package, you can add to your configuration: