Skip to content

Commit

Permalink
Document "rules" attribute, make docs maybe a bit better
Browse files Browse the repository at this point in the history
  • Loading branch information
halcy authored and halcy committed Nov 18, 2022
1 parent 31a00f0 commit 8d6177c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@
# 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 = []
Expand Down
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mastodon/Mastodon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8d6177c

Please sign in to comment.