Sphinx design#
The rendering of sphinx design with ansys sphinx theme. To access the full documentation for the sphinx design package, please refer sphinx design.
Badge-basic#
:bdg:`plain badge` :bdg-primary:`primary`, :bdg-primary-line:`primary-line` :bdg-secondary:`secondary`, :bdg-secondary-line:`secondary-line` :bdg-success:`success`, :bdg-success-line:`success-line` :bdg-info:`info`, :bdg-info-line:`info-line` :bdg-warning:`warning`, :bdg-warning-line:`warning-line` :bdg-danger:`danger`, :bdg-danger-line:`danger-line` :bdg-light:`light`, :bdg-light-line:`light-line` :bdg-dark:`dark`, :bdg-dark-line:`dark-line`
This directive renders the as follow:
plain badge
primary, primary-line
secondary, secondary-line
success, success-line
info, info-line
warning, warning-line
danger, danger-line
light, light-line
dark, dark-line
Badge-link#
:bdg-link-primary:`https://example.com` :bdg-link-primary-line:`explicit title <https://example.com>`
This directive renders the as follow:
Card-basic#
.. card:: Card Title Card content
This directive renders the as follow:
Card TitleCard content
Card-carousel#
.. card-carousel:: 2 .. card:: card 1 content .. card:: card 2 Longer content .. card:: card 3 .. card:: card 4 .. card:: card 5 .. card:: card 6
This directive renders the as follow:
card 1content
card 2Longer
content
card 3card 4card 5card 6
Card-head-foot#
.. card:: Card Title Header ^^^ Card content +++ Footer
This directive renders the as follow:
Header
Card TitleCard content
Card-images#
.. grid:: 2 3 3 4 .. grid-item:: .. card:: Title :img-background: images/particle_background.jpg :class-card: sd-text-black Text .. grid-item-card:: Title :img-top: images/particle_background.jpg Header ^^^ Content +++ Footer .. grid-item-card:: Title :img-bottom: images/particle_background.jpg Header ^^^ Content +++ Footer
This directive renders the as follow:
![]()
![]()
Header
TitleContent
Header
TitleContent
![]()
Card-link#
.. _cards-clickable: .. card:: Clickable Card (external) :link: https://example.com The entire card can be clicked to navigate to https://example.com. .. card:: Clickable Card (internal) :link: cards-clickable :link-type: ref The entire card can be clicked to navigate to the ``cards`` reference card-link.txt.
This directive renders the as follow:
Clickable Card (external)The entire card can be clicked to navigate to https://example.com.
Card-title-link#
.. _card-title-link.txt: .. card:: Card Title https://example.com :ref:`link <card-title-link.txt>` Card content
This directive renders the as follow:
Card Title https://example.com linkCard content
Div-basic#
.. div:: sd-text-center sd-font-italic sd-text-primary Some CSS styled text
This directive renders the as follow:
Some CSS styled text
Dropdown-basic#
.. dropdown:: Dropdown content .. dropdown:: Dropdown title Dropdown content .. dropdown:: Open dropdown :open: Dropdown content
This directive renders the as follow:
Dropdown content
Dropdown title
Dropdown content
Open dropdown
Dropdown content
Dropdown-options#
.. dropdown:: Title :name: dropdown-options.txt :color: info :icon: alert :margin: 1 :class-container: class-container :class-title: class-title :class-body: class-body Dropdown content :ref:`dropdown-options.txt`, :ref:`text <dropdown-options.txt>`
This directive renders the as follow:
Grid-basic#
.. grid:: 1 2 3 4 :outline: .. grid-item:: A .. grid-item:: B .. grid-item:: C .. grid-item:: D
This directive renders the as follow:
A
B
C
D
Grid-card-columns#
.. grid:: 2 .. grid-item-card:: :columns: auto A .. grid-item-card:: :columns: 12 6 6 6 B .. grid-item-card:: :columns: 12 C
This directive renders the as follow:
A
B
C
Grid-card#
.. grid:: 2 .. grid-item-card:: Title 1 A .. grid-item-card:: Title 2 B
This directive renders the as follow:
Title 1A
Title 2B
Grid-gutter#
.. grid:: 2 :gutter: 1 .. grid-item-card:: A .. grid-item-card:: B .. grid:: 2 :gutter: 3 3 4 5 .. grid-item-card:: A .. grid-item-card:: B
This directive renders the as follow:
A
B
A
B
Grid-nested#
.. grid:: 1 1 2 2 :gutter: 1 .. grid-item:: .. grid:: 1 1 1 1 :gutter: 1 .. grid-item-card:: Item 1.1 Multi-line content .. grid-item-card:: Item 1.2 Content .. grid-item:: .. grid:: 1 1 1 1 :gutter: 1 .. grid-item-card:: Item 2.1 Content .. grid-item-card:: Item 2.2 Content .. grid-item-card:: Item 2.3 Content
This directive renders the as follow:
Item 1.1Multi-line
content
Item 1.2Content
Item 2.1Content
Item 2.2Content
Item 2.3Content
Icon-fontawesome#
An icon :fas:`spinner;sd-bg-primary sd-bg-text-primary`, some more text.
This directive renders the as follow:
An icon , some more text.
Icon-material-design#
- 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.
This directive renders the as follow:
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 fixed size icon: , some more text.
Icon-octicon#
A coloured icon: :octicon:`report;1em;sd-text-info`, some more text.
This directive renders the as follow:
A coloured icon: , some more text.
Tab-basic#
.. tab-set:: .. tab-item:: Label1 Content 1 .. tab-item:: Label2 Content 2
This directive renders the as follow:
Content 1
Content 2
Tab-code-set#
.. tab-set-code:: .. literalinclude:: ./snippet.py :language: python .. code-block:: javascript a = 1;
This directive renders the as follow:
"""Sample functions for ansys-sphinx-theme.""" def func(arg1, arg2): """Summary line <should be one one line>. Extended description of function. Can span multiple lines and provides a general overview of the function. .. warning:: Use the ``.. warning::`` directive within the doc-string for any warnings you would like to explicitly state. For example, if this method will be deprecated in the next release. Parameters ---------- arg1 : int Description of arg1. arg2 : str Description of arg2. Returns ------- bool Description of return value. Examples -------- >>> func(1, 'foo') True """ return Truea = 1;
Tab-options#
.. tab-set:: :class: class-set .. tab-item:: Label :name: tab-options.txt :selected: :class-container: class-container :class-label: class-label :class-content: class-content Content :ref:`tab-options.txt`, :ref:`text <tab-options.txt>`
This directive renders the as follow:
Tab-sync#
.. tab-set:: .. tab-item:: Label1 :sync: key1 Content 1 .. tab-item:: Label2 :sync: key2 Content 2 .. tab-set:: .. tab-item:: Label1 :sync: key1 Content 1 .. tab-item:: Label2 :sync: key2 Content 2
This directive renders the as follow:
Content 1
Content 2
Content 1
Content 2