diff --git a/docs/conf.py b/docs/conf.py index 6846c3215..07011c56e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -65,6 +65,13 @@ # This pattern also affects html_static_path and html_extra_path. exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] +# -- Extension options ------------------------------------------------------- + +myst_enable_extensions = [ + # This allows us to use ::: to denote directives, useful for admonitions + "colon_fence", +] + # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for diff --git a/src/pydata_sphinx_theme/assets/styles/_admonitions.scss b/src/pydata_sphinx_theme/assets/styles/_admonitions.scss index 2f09242e8..f7be182a3 100644 --- a/src/pydata_sphinx_theme/assets/styles/_admonitions.scss +++ b/src/pydata_sphinx_theme/assets/styles/_admonitions.scss @@ -20,7 +20,8 @@ div.admonition, // Items after the title should be indented p.admonition-title ~ * { - padding: 0 1.4rem; + margin-left: 1.4rem; + margin-right: 1.4rem; } // Lists need to have left margin so they don't spill into it