Skip to content

Commit

Permalink
fix(sphinx): autosectionlabel_prefix_document to false
Browse files Browse the repository at this point in the history
  • Loading branch information
JustaSqu1d committed Aug 12, 2024
1 parent ebf6f16 commit 44185dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ def add_listener(self, func: Coro, name: str = MISSING) -> None:
TypeError
The ``func`` parameter is not a coroutine function.
ValueError
The ``name`` (event name) does not start with 'on_'
The ``name`` (event name) does not start with ``on_``
Example
-------
Expand Down Expand Up @@ -1294,7 +1294,7 @@ def listen(self, name: str = MISSING, once: bool = False) -> Callable[[Coro], Co
TypeError
The function being listened to is not a coroutine.
ValueError
The ``name`` (event name) does not start with 'on_'
The ``name`` (event name) does not start with ``on_``
Example
-------
Expand Down
4 changes: 2 additions & 2 deletions docs/api/enums.rst
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ of :class:`enum.Enum`.
When this is the action, the type of :attr:`~AuditLogEntry.extra` is
either a :class:`Role` or :class:`Member`. If the object is not found
then it is a :class:`Object` with an ID being filled, a name, and a
``type`` attribute set to either ``'role'`` or ``'member'`` to help
``type`` attribute set to either ``role`` or ``member`` to help
dictate what type of ID it is.

Possible attributes for :class:`AuditLogDiff`:
Expand Down Expand Up @@ -2362,7 +2362,7 @@ of :class:`enum.Enum`.

.. attribute:: advanced

Both default channels and questions (``OnboardingPrompt``s) will count towards the Onboarding requirements.
Both default channels and questions (``OnboardingPrompt``) will count towards the Onboarding requirements.

.. class:: ReactionType

Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def write_new():

always_document_param_types = True
toc_object_entries_show_parents = "hide"
autosectionlabel_prefix_document = True

ogp_site_url = "https://pycord.dev/"
ogp_image = "https://pycord.dev/static/img/logo.png"
Expand Down

0 comments on commit 44185dc

Please sign in to comment.