aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-06-28 04:16:51 -0400
committerRapptz <[email protected]>2021-06-28 04:16:51 -0400
commite3a66bcccc7f8122e9fbe682bc3e1352792ce7fb (patch)
treec340d713728cb404a0bb73ebc2e06be3281734c0 /docs
parentMove documentation CSS after CSS block (diff)
downloaddiscord.py-e3a66bcccc7f8122e9fbe682bc3e1352792ce7fb.tar.xz
discord.py-e3a66bcccc7f8122e9fbe682bc3e1352792ce7fb.zip
Fix property CSS to be more inline with everything else
Diffstat (limited to 'docs')
-rw-r--r--docs/_static/style.css6
-rw-r--r--docs/conf.py2
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css
index b08ac893..e1d218b3 100644
--- a/docs/_static/style.css
+++ b/docs/_static/style.css
@@ -1040,12 +1040,18 @@ dl.function > dt,
dl.attribute > dt,
dl.classmethod > dt,
dl.method > dt,
+dl.property > dt,
dl.class > dt,
dl.exception > dt {
background-color: var(--api-entry-background);
padding: 1px 10px;
}
+/* bug in sphinx: https://github.com/sphinx-doc/sphinx/issues/9384 */
+dl.property > dt > span.descname + em.property {
+ display: none;
+}
+
dd {
margin-top: 0.5em;
margin-bottom: 0.5em;
diff --git a/docs/conf.py b/docs/conf.py
index f7193dc5..03f69c19 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -45,6 +45,8 @@ extensions = [
autodoc_member_order = 'bysource'
autodoc_typehints = 'none'
+# maybe consider this?
+# napoleon_attr_annotations = False
extlinks = {
'issue': ('https://github.com/Rapptz/discord.py/issues/%s', 'GH-'),