From 952e5f4e7dc9141ae327c14a2caf25c435e77ecd Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Sun, 16 Feb 2020 22:36:27 +0100 Subject: [PATCH] DOC: fix docstring styling with sphinx > 2 (#1299) --- doc/source/_static/custom.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/source/_static/custom.css b/doc/source/_static/custom.css index 75b690e..e32de33 100644 --- a/doc/source/_static/custom.css +++ b/doc/source/_static/custom.css @@ -2,3 +2,16 @@ div.section a span { color: #2980B9 !important } + +/*Copied from sphinx' basic.css to ensure the sphinx >2.0 docstrings are +rendered somewhat properly (xref https://github.com/numpy/numpydoc/issues/215) */ + +.classifier { + font-style: oblique; +} + +.classifier:before { + font-style: normal; + margin: 0.5em; + content: ":"; +}