readthedocs does not like .. code-block:: with no empty line after
This commit is contained in:
pare
d3cd46057c
commit
4a3e2d232d
S'han modificat 1 arxius amb 11 adicions i 0 eliminacions
|
@ -87,6 +87,7 @@ Returns a single toot dict for the given status.
|
||||||
.. automethod:: Mastodon.status_context
|
.. automethod:: Mastodon.status_context
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
mastodon.status_context(<numerical id>)
|
mastodon.status_context(<numerical id>)
|
||||||
# Returns
|
# Returns
|
||||||
{
|
{
|
||||||
|
@ -115,7 +116,9 @@ their relationships.
|
||||||
.. automethod:: Mastodon.account_verify_credentials
|
.. automethod:: Mastodon.account_verify_credentials
|
||||||
|
|
||||||
These methods return an account dict:
|
These methods return an account dict:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
mastodon.account(<numerical id>)
|
mastodon.account(<numerical id>)
|
||||||
# Returns
|
# Returns
|
||||||
{
|
{
|
||||||
|
@ -157,7 +160,9 @@ interact with already posted statuses.
|
||||||
.. automethod:: Mastodon.status_unfavourite
|
.. automethod:: Mastodon.status_unfavourite
|
||||||
|
|
||||||
These methods return a toot dict:
|
These methods return a toot dict:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
mastodon.toot("Hello from Python")
|
mastodon.toot("Hello from Python")
|
||||||
# Returns the following dictionary:
|
# Returns the following dictionary:
|
||||||
{
|
{
|
||||||
|
@ -180,7 +185,9 @@ These methods return a toot dict:
|
||||||
|
|
||||||
.. automethod:: Mastodon.status_delete
|
.. automethod:: Mastodon.status_delete
|
||||||
Returns an empty dict:
|
Returns an empty dict:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
mastodon.delete_status(<numerical id>)
|
mastodon.delete_status(<numerical id>)
|
||||||
# Returns
|
# Returns
|
||||||
{}
|
{}
|
||||||
|
@ -191,7 +198,9 @@ These functions allow you to interact with other accounts: To (un)follow and
|
||||||
(un)block.
|
(un)block.
|
||||||
|
|
||||||
They return a relationship dict:
|
They return a relationship dict:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
mastodon.account_follow(<numerical id>)
|
mastodon.account_follow(<numerical id>)
|
||||||
# Returns
|
# Returns
|
||||||
{
|
{
|
||||||
|
@ -215,7 +224,9 @@ to attach media to statuses.
|
||||||
.. automethod:: Mastodon.media_post
|
.. automethod:: Mastodon.media_post
|
||||||
|
|
||||||
Returns a media dict:
|
Returns a media dict:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
mastodon.media_post("image.jpg", "image/jpeg")
|
mastodon.media_post("image.jpg", "image/jpeg")
|
||||||
# Returns
|
# Returns
|
||||||
{
|
{
|
||||||
|
|
Loading…
Referencia en una nova incidència