Update Sphinx to 2.1.2

This commit is contained in:
Rapptz
2019-06-28 01:43:04 -04:00
parent 0cf38241d0
commit 7543328fe7
7 changed files with 73 additions and 53 deletions

View File

@ -291,6 +291,17 @@ dl.field-list > dt {
font-weight: bold;
}
/* remove flex from field lists */
dl.field-list {
display: block;
}
/* internal references are forced to bold for some reason */
a.reference.internal > strong {
font-weight: unset;
font-family: monospace;
}
div.danger, div.error {
background-color: #ffe4e4;
border: 1px solid #f66;

View File

@ -1562,14 +1562,16 @@ Certain utilities make working with async iterators easier, detailed below.
Iterates over the contents of the async iterator.
.. comethod:: next()
.. method:: next()
:async:
|coro|
Advances the iterator by one, if possible. If no more items are found
then this raises :exc:`NoMoreItems`.
.. comethod:: get(**attrs)
.. method:: get(**attrs)
:async:
|coro|
@ -1579,7 +1581,8 @@ Certain utilities make working with async iterators easier, detailed below.
msg = await channel.history().get(author__name='Dave')
.. comethod:: find(predicate)
.. method:: find(predicate)
:async:
|coro|
@ -1598,7 +1601,8 @@ Certain utilities make working with async iterators easier, detailed below.
:param predicate: The predicate to use. Could be a |coroutine_link|_.
:return: The first element that returns ``True`` for the predicate or ``None``.
.. comethod:: flatten()
.. method:: flatten()
:async:
|coro|
@ -2009,10 +2013,10 @@ module, others which are not.
:members:
:exclude-members: history, typing
.. autocomethod:: discord.abc.Messageable.history
.. automethod:: discord.abc.Messageable.history
:async-for:
.. autocomethod:: discord.abc.Messageable.typing
.. automethod:: discord.abc.Messageable.typing
:async-with:
.. autoclass:: discord.abc.Connectable
@ -2065,10 +2069,10 @@ User
:inherited-members:
:exclude-members: history, typing
.. autocomethod:: history
.. automethod:: history
:async-for:
.. autocomethod:: typing
.. automethod:: typing
:async-with:
Attachment
@ -2096,7 +2100,7 @@ Reaction
:members:
:exclude-members: users
.. autocomethod:: users
.. automethod:: users
:async-for:
CallMessage
@ -2118,7 +2122,7 @@ Guild
:members:
:exclude-members: audit_logs
.. autocomethod:: audit_logs
.. automethod:: audit_logs
:async-for:
Member
@ -2129,10 +2133,10 @@ Member
:inherited-members:
:exclude-members: history, typing
.. autocomethod:: history
.. automethod:: history
:async-for:
.. autocomethod:: typing
.. automethod:: typing
:async-with:
Spotify
@ -2173,10 +2177,10 @@ TextChannel
:inherited-members:
:exclude-members: history, typing
.. autocomethod:: history
.. automethod:: history
:async-for:
.. autocomethod:: typing
.. automethod:: typing
:async-with:
VoiceChannel
@ -2201,10 +2205,10 @@ DMChannel
:inherited-members:
:exclude-members: history, typing
.. autocomethod:: history
.. automethod:: history
:async-for:
.. autocomethod:: typing
.. automethod:: typing
:async-with:
GroupChannel
@ -2215,10 +2219,10 @@ GroupChannel
:inherited-members:
:exclude-members: history, typing
.. autocomethod:: history
.. automethod:: history
:async-for:
.. autocomethod:: typing
.. automethod:: typing
:async-with:
PartialInviteGuild

View File

@ -35,7 +35,7 @@ extensions = [
'sphinx.ext.extlinks',
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
'sphinxcontrib.asyncio',
'sphinxcontrib_trio',
'details',
'exception_hierarchy'
]

View File

@ -150,10 +150,10 @@ Context
:inherited-members:
:exclude-members: history, typing
.. autocomethod:: discord.ext.commands.Context.history
.. automethod:: discord.ext.commands.Context.history
:async-for:
.. autocomethod:: discord.ext.commands.Context.typing
.. automethod:: discord.ext.commands.Context.typing
:async-with:
.. _ext_commands_api_converters: