diff --git a/doc/source/_static/custom.css b/doc/source/_static/custom.css index c621c7b6474..a778107dd98 100644 --- a/doc/source/_static/custom.css +++ b/doc/source/_static/custom.css @@ -2,3 +2,15 @@ .wy-table-responsive table td, .wy-table-responsive table th { white-space: normal; } +/* Check https://www.w3schools.com/cssref/css_colors.php for colors */ +/* Ansys gold for MAPDL with black text*/ +.sd-bg-mapdl{background-color: #FFB71B} +.sd-bg-text-mapdl{color: Black} +/* Ansys orange accent color for Fluent with black text*/ +.sd-bg-lsdyna{background-color: #FB471F} +.sd-bg-text-lsdyna{color: Black} +/* Ansys blue accent color #00629F for Fluent with black text*/ +.sd-bg-fluent{background-color: #0081D0} +.sd-bg-text-fluent{color: Black} +.sd-bg-cfx{background-color: LightSeaGreen} +.sd-bg-text-cfx{color: Black} diff --git a/doc/source/conf.py b/doc/source/conf.py index 70009df4f9a..2663e12c972 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -324,3 +324,17 @@ def reset_servers(gallery_conf, fname, when): # A list of files that should not be packed into the epub file. epub_exclude_files = ["search.html"] + +# Define custom docutils roles for solver badges +from sphinx_design.badges_buttons import BadgeRole + +def setup(app): + badge_roles = { + "bdg-mapdl": "mapdl", + "bdg-cfx": "cfx", + "bdg-fluent": "fluent", + "bdg-lsdyna": "lsdyna" + } + + for role_name, color in badge_roles.items(): + app.add_role(name=role_name, role=BadgeRole(color=color)) diff --git a/doc/source/user_guide/tutorials/animate/index.rst b/doc/source/user_guide/tutorials/animate/index.rst index 2bfa5b2f4e5..873db33692e 100644 --- a/doc/source/user_guide/tutorials/animate/index.rst +++ b/doc/source/user_guide/tutorials/animate/index.rst @@ -17,6 +17,8 @@ These tutorials demonstrate how to visualise the data in an animation. :text-align: center This tutorial + +++ + :bdg-mapdl:`MAPDL` :bdg-lsdyna:`LS-DYNA` :bdg-fluent:`FLUENT` :bdg-cfx:`CFX` .. toctree:: :maxdepth: 2