From a17a4001b80636ff3771168b06a5d97550cc6f82 Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Tue, 11 Jan 2022 11:46:36 -0800 Subject: [PATCH 1/2] FIX: Admonitions margin --- docs/conf.py | 5 +++++ src/pydata_sphinx_theme/assets/styles/_admonitions.scss | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 6846c3215..74903c3d5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -65,6 +65,11 @@ # This pattern also affects html_static_path and html_extra_path. exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] +# -- Extension options ------------------------------------------------------- + +myst_enable_extensions = [ + "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 From ca4f9c33ebd1c453299f7fac7a17ff233128ab5a Mon Sep 17 00:00:00 2001 From: Chris Holdgraf Date: Wed, 12 Jan 2022 15:39:09 -0800 Subject: [PATCH 2/2] DOC: Add comment about myst extra syntax in config --- docs/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 74903c3d5..07011c56e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -68,8 +68,10 @@ # -- 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