diff options
| author | Rapptz <[email protected]> | 2021-06-28 04:16:51 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-28 04:16:51 -0400 |
| commit | e3a66bcccc7f8122e9fbe682bc3e1352792ce7fb (patch) | |
| tree | c340d713728cb404a0bb73ebc2e06be3281734c0 /docs | |
| parent | Move documentation CSS after CSS block (diff) | |
| download | discord.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.css | 6 | ||||
| -rw-r--r-- | docs/conf.py | 2 |
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-'), |