|
|
@ -49,7 +49,7 @@ autodoc_typehints = 'none' |
|
|
|
# napoleon_attr_annotations = False |
|
|
|
|
|
|
|
extlinks = { |
|
|
|
'issue': ('https://github.com/Rapptz/discord.py/issues/%s', 'GH-'), |
|
|
|
'issue': ('https://github.com/dolfies/discord.py-self/issues/%s', 'GH-'), |
|
|
|
} |
|
|
|
|
|
|
|
# Links used for cross-referencing stuff in other documentation |
|
|
@ -80,7 +80,7 @@ master_doc = 'index' |
|
|
|
|
|
|
|
# General information about the project. |
|
|
|
project = 'discord.py-self' |
|
|
|
copyright = '2015-present, Rapptz' |
|
|
|
#copyright = '' |
|
|
|
|
|
|
|
# The version info for the project you're documenting, acts as replacement for |
|
|
|
# |version| and |release|, also used in various other places throughout the |
|
|
@ -145,7 +145,6 @@ pygments_style = 'friendly' |
|
|
|
|
|
|
|
# Nitpicky mode options |
|
|
|
nitpick_ignore_files = [ |
|
|
|
"migrating_to_async", |
|
|
|
"migrating", |
|
|
|
"whats_new", |
|
|
|
] |
|
|
@ -159,7 +158,6 @@ html_experimental_html5_writer = True |
|
|
|
html_theme = 'basic' |
|
|
|
|
|
|
|
html_context = { |
|
|
|
'discord_invite': 'https://discord.gg/NONE', |
|
|
|
'discord_extensions': [ |
|
|
|
('discord.ext.commands', 'ext/commands'), |
|
|
|
('discord.ext.tasks', 'ext/tasks'), |
|
|
@ -167,7 +165,6 @@ html_context = { |
|
|
|
} |
|
|
|
|
|
|
|
resource_links = { |
|
|
|
'discord': 'https://discord.gg/NONE', |
|
|
|
'issues': 'https://github.com/dolfies/discord.py-self/issues', |
|
|
|
'discussions': 'https://github.com/dolfies/discord.py-self/discussions', |
|
|
|
'examples': f'https://github.com/dolfies/discord.py-self/tree/{branch}/examples', |
|
|
@ -236,10 +233,10 @@ html_static_path = ['_static'] |
|
|
|
#html_show_sourcelink = True |
|
|
|
|
|
|
|
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
|
|
|
#html_show_sphinx = True |
|
|
|
html_show_sphinx = False |
|
|
|
|
|
|
|
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True. |
|
|
|
#html_show_copyright = True |
|
|
|
html_show_copyright = False |
|
|
|
|
|
|
|
# If true, an OpenSearch description file will be output, and all pages will |
|
|
|
# contain a <link> tag referring to it. The value of this option must be the |
|
|
@ -293,7 +290,7 @@ latex_elements = { |
|
|
|
# (source start file, target name, title, |
|
|
|
# author, documentclass [howto, manual, or own class]). |
|
|
|
latex_documents = [ |
|
|
|
('index', 'discord.py.tex', 'discord.py-self Documentation', |
|
|
|
('index', 'discord.py-self.tex', 'discord.py-self Documentation', |
|
|
|
'Dolfies', 'manual'), |
|
|
|
] |
|
|
|
|
|
|
@ -355,7 +352,4 @@ texinfo_documents = [ |
|
|
|
#texinfo_no_detailmenu = False |
|
|
|
|
|
|
|
def setup(app): |
|
|
|
if app.config.language == 'ja': |
|
|
|
app.config.intersphinx_mapping['py'] = ('https://docs.python.org/ja/3', None) |
|
|
|
app.config.html_context['discord_invite'] = 'https://discord.gg/NONE' |
|
|
|
app.config.resource_links['discord'] = 'https://discord.gg/NONE' |
|
|
|
pass |
|
|
|