diff options
| author | Rapptz <[email protected]> | 2021-04-04 04:40:19 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-04 07:03:53 -0400 |
| commit | 9d39b135f4f84239787b0901d06a4f370a82d4bb (patch) | |
| tree | 8826845cfd47eafa5c9d2ef1fcbedd36382714f4 /docs | |
| parent | Bump minimum Python version to 3.8 (diff) | |
| download | discord.py-9d39b135f4f84239787b0901d06a4f370a82d4bb.tar.xz discord.py-9d39b135f4f84239787b0901d06a4f370a82d4bb.zip | |
Modernize code to use f-strings
This also removes the encoding on the top, since Python 3 does it by
default. It also changes some methods to use `yield from`.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/docs/conf.py b/docs/conf.py index 35cd2d8e..b353bd8a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # discord.py documentation build configuration file, created by # sphinx-quickstart on Fri Aug 21 05:43:30 2015. @@ -76,8 +75,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'discord.py' -copyright = u'2015-present, Rapptz' +project = 'discord.py' +copyright = '2015-present, Rapptz' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -160,7 +159,7 @@ resource_links = { 'discord': 'https://discord.gg/r3sSKJJ', 'issues': 'https://github.com/Rapptz/discord.py/issues', 'discussions': 'https://github.com/Rapptz/discord.py/discussions', - 'examples': 'https://github.com/Rapptz/discord.py/tree/%s/examples' % branch, + 'examples': f'https://github.com/Rapptz/discord.py/tree/{branch}/examples', } # Theme options are theme-specific and customize the look and feel of a theme @@ -283,8 +282,8 @@ latex_elements = { # (source start file, target name, title, # author, documentclass [howto, manual, or own class]). latex_documents = [ - ('index', 'discord.py.tex', u'discord.py Documentation', - u'Rapptz', 'manual'), + ('index', 'discord.py.tex', 'discord.py Documentation', + 'Rapptz', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of @@ -313,8 +312,8 @@ latex_documents = [ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'discord.py', u'discord.py Documentation', - [u'Rapptz'], 1) + ('index', 'discord.py', 'discord.py Documentation', + ['Rapptz'], 1) ] # If true, show URL addresses after external links. @@ -327,8 +326,8 @@ man_pages = [ # (source start file, target name, title, author, # dir menu entry, description, category) texinfo_documents = [ - ('index', 'discord.py', u'discord.py Documentation', - u'Rapptz', 'discord.py', 'One line description of project.', + ('index', 'discord.py', 'discord.py Documentation', + 'Rapptz', 'discord.py', 'One line description of project.', 'Miscellaneous'), ] |