Fix cross page links in docs

This commit is contained in:
halcy 2022-11-30 19:04:26 +02:00
parent 98d9dfa357
commit c1b7a7e4e5
4 changed files with 197 additions and 181 deletions

View File

@ -95,7 +95,8 @@ manually (or persist objects, not just dicts).
There are convenience functions available for fetching the previous and next page of There are convenience functions available for fetching the previous and next page of
a paginated request as well as for fetching all pages starting from a first page. a paginated request as well as for fetching all pages starting from a first page.
For details, see `fetch_next()`_, `fetch_previous()`_. and `fetch_remaining()`_. For details, see :ref:`fetch_next() <fetch_next()>`, :ref:`fetch_previous() <fetch_previous()>`.
and :ref:`fetch_remaining() <fetch_remaining()>`.
IDs and unpacking IDs and unpacking
----------------- -----------------

View File

@ -50,7 +50,7 @@ Writing
Scheduled statuses Scheduled statuses
------------------ ------------------
These functions allow you to get information about scheduled statuses and to update scheduled statuses that already exist. These functions allow you to get information about scheduled statuses and to update scheduled statuses that already exist.
To create new scheduled statuses, use `status_post()`_ with the `scheduled_at` parameter. To create new scheduled statuses, use :ref:`status_post() <status_post()>` with the `scheduled_at` parameter.
Reading Reading
~~~~~~~ ~~~~~~~

File diff suppressed because it is too large Load Diff

View File

@ -74,13 +74,13 @@ def test_instance_rules(api):
assert isinstance(api.instance_rules(), list) assert isinstance(api.instance_rules(), list)
def test_version_parsing(api): def test_version_parsing(api):
assert parse_version_string(api._Mastodon__normalize_version_string("4.0.2")) == [4, 0, 2] assert parse_version_string(api._Mastodon__normalize_version_string("4.0.2")) == (4, 0, 2)
assert parse_version_string(api._Mastodon__normalize_version_string("2.1.0rc3")) == [2, 1, 0] assert parse_version_string(api._Mastodon__normalize_version_string("2.1.0rc3")) == (2, 1, 0)
assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5")) == [3, 5, 5] assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5")) == (3, 5, 5)
assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5rc2")) == [3, 5, 5] assert parse_version_string(api._Mastodon__normalize_version_string("1.0.7+3.5.5rc2")) == (3, 5, 5)
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter")) == [3, 5, 1] assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter")) == (3, 5, 1)
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter-6.6.6")) == [3, 5, 1] assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter-6.6.6")) == (3, 5, 1)
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1rc4+chitter-6.6.6")) == [3, 5, 1] assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1rc4+chitter-6.6.6")) == (3, 5, 1)
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter6.6.6")) == [3, 5, 1] assert parse_version_string(api._Mastodon__normalize_version_string("3.5.1+chitter6.6.6")) == (3, 5, 1)
assert parse_version_string(api._Mastodon__normalize_version_string("3.5.0 (compatible; Pleroma 1.2.3)")) == [3, 5, 0] assert parse_version_string(api._Mastodon__normalize_version_string("3.5.0 (compatible; Pleroma 1.2.3)")) == (3, 5, 0)
assert parse_version_string(api._Mastodon__normalize_version_string("3.2.1rc3 (compatible; Akkoma 3.2.4+shinychariot)")) == [3, 2, 1] assert parse_version_string(api._Mastodon__normalize_version_string("3.2.1rc3 (compatible; Akkoma 3.2.4+shinychariot)")) == (3, 2, 1)