From 8d6177c07eae5a61fede1ef78ba20b9a74ddb312 Mon Sep 17 00:00:00 2001 From: halcy Date: Sat, 19 Nov 2022 00:28:25 +0200 Subject: Document "rules" attribute, make docs maybe a bit better --- docs/conf.py | 5 ++++- docs/index.rst | 3 ++- mastodon/Mastodon.py | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index c6fc0fb..6198b9b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -134,7 +134,10 @@ todo_include_todos = False # further. For a list of options available for each theme, see the # documentation. # -# html_theme_options = {} +html_theme_options = { + "collapse_navigation": False, + "navigation_depth": -1 +} # Add any paths that contain custom themes here, relative to this directory. # html_theme_path = [] diff --git a/docs/index.rst b/docs/index.rst index 7c4f200..1351b1a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -687,7 +687,8 @@ Instance dicts # has chosen to advertise. 'registrations': # Boolean indication whether registrations on this instance are open # (True) or not (False) - 'approval_required': # True if account approval is required when registering + 'approval_required': # True if account approval is required when registering, + 'rules': # List of dicts with `id` and `text` fields, one for each server rule set by the admin } Activity dicts diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index f49df83..4462253 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -225,7 +225,7 @@ class Mastodon: __DICT_VERSION_POLL = "2.8.0" __DICT_VERSION_STATUS = bigger_version(bigger_version(bigger_version(bigger_version(bigger_version( "3.1.0", __DICT_VERSION_MEDIA), __DICT_VERSION_ACCOUNT), __DICT_VERSION_APPLICATION), __DICT_VERSION_MENTION), __DICT_VERSION_POLL) - __DICT_VERSION_INSTANCE = bigger_version("3.1.4", __DICT_VERSION_ACCOUNT) + __DICT_VERSION_INSTANCE = bigger_version("3.4.0", __DICT_VERSION_ACCOUNT) __DICT_VERSION_HASHTAG = "2.3.4" __DICT_VERSION_EMOJI = "3.0.0" __DICT_VERSION_RELATIONSHIP = "3.3.0" -- cgit v1.2.3