From b0ec48371fb48702ab296e358b8ef3a67bcde3df Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Fri, 12 Mar 2021 16:21:39 -0500 Subject: [PATCH] Fix definition lists inside api docs This is similar to #1080 (and is needed to fix citations in the demo here) Fixes #1052 --- docs/demo/test_py_module/test.py | 14 ++++++++++++++ src/sass/_theme_rst.sass | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/demo/test_py_module/test.py b/docs/demo/test_py_module/test.py index f47b9840c..334e994c8 100644 --- a/docs/demo/test_py_module/test.py +++ b/docs/demo/test_py_module/test.py @@ -12,6 +12,20 @@ class Foo: and etc, but those will *always* have the ``.descname`` or ``.descclassname`` class. + Term + It is also possible to include definitions inside docstrings. + They should be styled as a normal definition list. + + :Field List: + It is also possible to include definitions inside docstrings. + They should be styled as a normal definition list. + + .. [1] A footnote contains body elements, consistently indented by at + least 3 spaces. + + .. [Citation] A citation contains body elements, consistently indented by at + least 3 spaces. + Normal ```` (like the I just wrote here) needs to be shown with the same style as anything else with ````this type of markup````. diff --git a/src/sass/_theme_rst.sass b/src/sass/_theme_rst.sass index b0cb0a703..66a0d3bc6 100644 --- a/src/sass/_theme_rst.sass +++ b/src/sass/_theme_rst.sass @@ -417,7 +417,7 @@ font-size: 100% !important // In the html4 writer, parameters is a table. In html5 writer, parameters // is a nested dl.field-list - dl:not(.field-list) > dt + dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) > dt margin-bottom: $base-line-height / 4 border: none border-left: solid 3px hsl(0,0%,80%)