Skip to content

Commit aea2e6b

Browse files
committed
chore: Remove unnecessary and or outdated comments
1 parent 3af195d commit aea2e6b

1 file changed

Lines changed: 4 additions & 211 deletions

File tree

docs/conf.py

Lines changed: 4 additions & 211 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
#
2-
# pycord documentation build configuration file, created by
3-
# sphinx-quickstart on Fri Aug 21 05:43:30 2015.
4-
#
5-
# This file is execfile()d with the current directory set to its
6-
# containing dir.
7-
#
8-
# Note that not all possible configuration values are present in this
9-
# autogenerated file.
10-
#
11-
# All configuration values have a default; values that are commented out
12-
# serve to show the default.
13-
141
import os
152
import sys
163
from importlib.metadata import version as get_version
@@ -49,20 +36,11 @@ def write_new():
4936
write_new()
5037
c_file.close()
5138

52-
# If extensions (or modules to document with autodoc) are in another directory,
53-
# add these directories to sys.path here. If the directory is relative to the
54-
# documentation root, use os.path.abspath to make it absolute, like shown here.
5539
sys.path.insert(0, os.path.abspath(".."))
5640
sys.path.append(os.path.abspath("extensions"))
5741

5842
# -- General configuration ------------------------------------------------
5943

60-
# If your documentation needs a minimal Sphinx version, state it here.
61-
# needs_sphinx = '1.0'
62-
63-
# Add any Sphinx extension module names here, as strings. They can be
64-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
65-
# ones.
6644
extensions = [
6745
"sphinx.ext.autodoc",
6846
"sphinx.ext.autosectionlabel",
@@ -92,17 +70,17 @@ def write_new():
9270

9371
autodoc_member_order = "bysource"
9472
autodoc_typehints = "signature"
95-
# Disable overload signature injection to keep docs concise
73+
74+
# Disable overload signature injection to keep docs concise. See https://github.com/Pycord-Development/pycord/pull/3124
9675
typehints_document_overloads = False
97-
# maybe consider this?
76+
# maybe consider this? # TODO(Paillat-dev): Consider this
9877
# napoleon_attr_annotations = False
9978

10079
extlinks = {
10180
"issue": ("https://github.com/Pycord-Development/pycord/issues/%s", "GH-%s"),
10281
"dpy-issue": ("https://github.com/Rapptz/discord.py/issues/%s", "GH-%s"),
10382
}
10483

105-
# Links used for cross-referencing stuff in other documentation
10684
intersphinx_mapping = {
10785
"py": ("https://docs.python.org/3", None),
10886
"aio": ("https://docs.aiohttp.org/en/stable/", None),
@@ -119,30 +97,18 @@ def write_new():
11997
.. _gateway_link: https://docs.discord.com/developers/events/gateway-events
12098
"""
12199

122-
# Add any paths that contain templates here, relative to this directory.
123100
templates_path = ["_templates"]
124101

125-
# The suffix of source filenames.
126102
source_suffix = {
127103
".rst": "restructuredtext", # Used For The Other Docs
128104
".md": "markdown", # Used ONLY In the Guide For Faster Making Time
129105
}
130106

131-
# The encoding of source files.
132-
# source_encoding = 'utf-8-sig'
133-
134-
# The master toctree document.
135107
master_doc = "index"
136108

137-
# General information about the project.
138109
project = "Pycord"
139110
copyright = "2015-2021, Rapptz & 2021-present, Pycord Development"
140111

141-
# The version info for the project you're documenting, acts as replacement for
142-
# |version| and |release|, also used in various other places throughout the
143-
# built documents.
144-
#
145-
146112
# The full version, including alpha/beta/rc tags.
147113
release = get_version("py-cord")
148114

@@ -158,52 +124,17 @@ def write_new():
158124

159125
html_title = f"{project} v{version} Documentation"
160126

161-
# The language for content autogenerated by Sphinx. Refer to documentation
162-
# for a list of supported languages.
163-
#
164-
# This is also used if you do content translation via gettext catalogs.
165-
# Usually you set "language" from the command line for these cases.
166127
language = "en"
167128

168129
gettext_compact = False
169130
gettext_uuid = True
170-
locale_dirs = ["locales/"] # Added locale directory
171-
172-
# There are two options for replacing |today|: either, you set today to some
173-
# non-false value, then it is used:
174-
# today = ''
175-
# Else, today_fmt is used as the format for a strftime call.
176-
# today_fmt = '%B %d, %Y'
131+
locale_dirs = ["locales/"]
177132

178-
# List of patterns, relative to source directory, that match files and
179-
# directories to ignore when looking for source files.
180133
exclude_patterns = ["_build", "node_modules", "build", "locales"]
181134

182-
# The reST default role (used for this markup: `text`) to use for all
183-
# documents.
184-
# default_role = None
185-
186-
# If true, '()' will be appended to :func: etc. cross-reference text.
187-
# add_function_parentheses = True
188-
189-
# If true, the current module name will be prepended to all description
190-
# unit titles (such as .. function::).
191-
# add_module_names = True
192-
193-
# If true, sectionauthor and moduleauthor directives will be shown in the
194-
# output. They are ignored by default.
195-
# show_authors = False
196-
197135
# The name of the Pygments (syntax highlighting) style to use.
198136
pygments_style = "friendly"
199137

200-
# A list of ignored prefixes for module index sorting.
201-
# modindex_common_prefix = []
202-
203-
# If true, keep warnings as "system message" paragraphs in the built documents.
204-
# keep_warnings = False
205-
206-
207138
# Nitpicky mode options
208139
nitpick_ignore_files = [
209140
"migrating_to_v1",
@@ -233,9 +164,6 @@ def write_new():
233164
"guide": "https://guide.pycord.dev/",
234165
}
235166

236-
# Theme options are theme-specific and customize the look and feel of a theme
237-
# further. For a list of options available for each theme, see the
238-
# documentation.
239167
base_colors = {
240168
"white": "#ffffff",
241169
"grey-1": "#f9f9fa",
@@ -297,46 +225,13 @@ def write_new():
297225
},
298226
}
299227

300-
# Add any paths that contain custom themes here, relative to this directory.
301-
# html_theme_path = []
302-
303-
# The name for this set of Sphinx documents. If None, it defaults to
304-
# "<project> v<release> documentation".
305-
# html_title = None
306-
307-
# A shorter title for the navigation bar. Default is the same as html_title.
308-
# html_short_title = None
309-
310-
# The name of an image file (relative to this directory) to place at the top of
311-
# the sidebar.
312228
html_logo = "./images/pycord_logo.png"
313-
314-
# The name of an image file (within the static path) to use as favicon of the
315-
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
316-
# pixels large.
317229
html_favicon = "./images/pycord.ico"
318230

319-
# Add any paths that contain custom static files (such as style sheets) here,
320-
# relative to this directory. They are copied after the builtin static files,
321-
# so a file named "default.css" will overwrite the builtin "default.css".
322231
html_static_path = ["_static"]
323232
html_css_files = ["css/custom.css"]
324233
html_js_files = ["js/custom.js"]
325234

326-
# Add any extra paths that contain custom files (such as robots.txt or
327-
# .htaccess) here, relative to this directory. These files are copied
328-
# directly to the root of the documentation.
329-
# html_extra_path = []
330-
331-
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
332-
# using the given strftime format.
333-
# html_last_updated_fmt = '%b %d, %Y'
334-
335-
# If true, SmartyPants will be used to convert quotes and dashes to
336-
# typographically correct entities.
337-
# html_use_smartypants = True
338-
339-
# Custom sidebar templates, maps document names to template names.
340235
html_sidebars = {
341236
"**": [
342237
"sidebar/brand.html",
@@ -350,111 +245,22 @@ def write_new():
350245
]
351246
}
352247

353-
# Additional templates that should be rendered to pages, maps page names to
354-
# template names.
355-
# html_additional_pages = {}
356-
357-
# If false, no module index is generated.
358-
# html_domain_indices = True
359-
360-
# If false, no index is generated.
361-
# html_use_index = True
362-
363-
# If true, the index is split into individual pages for each letter.
364-
# html_split_index = False
365-
366-
# If true, links to the reST sources are added to the pages.
367-
# html_show_sourcelink = True
368-
369-
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
370-
# html_show_sphinx = True
371-
372-
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
373-
# html_show_copyright = True
374-
375-
# If true, an OpenSearch description file will be output, and all pages will
376-
# contain a <link> tag referring to it. The value of this option must be the
377-
# base URL from which the finished HTML is served.
378-
# html_use_opensearch = ''
379-
380-
# This is the file name suffix for HTML files (e.g. ".xhtml").
381-
# html_file_suffix = None
382-
383-
# Language to be used for generating the HTML full-text search index.
384-
# Sphinx supports the following languages:
385-
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
386-
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
387248
html_search_language = "en"
388249

389-
# A dictionary with options for the search language support, empty by default.
390-
# Now only 'ja' uses this config value
391-
# html_search_options = {'type': 'default'}
392-
393-
# The name of a javascript file (relative to the configuration directory) that
394-
# implements a search results scorer. If empty, the default will be used.
395-
# html_search_scorer = "_static/js/scorer.js"
396-
397-
# html_js_files = ["custom.js", "settings.js", "copy.js", "sidebar.js"]
398-
399-
# Output file base name for HTML help builder.
400250
htmlhelp_basename = "pycorddoc"
401251

402252
# -- Options for LaTeX output ---------------------------------------------
403253

404-
latex_elements = {
405-
# The paper size ('letterpaper' or 'a4paper').
406-
# 'papersize': 'letterpaper',
407-
# The font size ('10pt', '11pt' or '12pt').
408-
# 'pointsize': '10pt',
409-
# Additional stuff for the LaTeX preamble.
410-
# 'preamble': '',
411-
# Latex figure (float) alignment
412-
# 'figure_align': 'htbp',
413-
}
414-
415-
# Grouping the document tree into LaTeX files. List of tuples
416-
# (source start file, target name, title,
417-
# author, documentclass [howto, manual, or own class]).
418254
latex_documents = [
419255
("index", "Pycord.tex", "Pycord Documentation", "Pycord Development", "manual"),
420256
]
421257

422-
# The name of an image file (relative to this directory) to place at the top of
423-
# the title page.
424-
# latex_logo = None
425-
426-
# For "manual" documents, if this is true, then toplevel headings are parts,
427-
# not chapters.
428-
# latex_use_parts = False
429-
430-
# If true, show page references after internal links.
431-
# latex_show_pagerefs = False
432-
433-
# If true, show URL addresses after external links.
434-
# latex_show_urls = False
435-
436-
# Documents to append as an appendix to all manuals.
437-
# latex_appendices = []
438-
439-
# If false, no module index is generated.
440-
# latex_domain_indices = True
441-
442-
443258
# -- Options for manual page output ---------------------------------------
444259

445-
# One entry per manual page. List of tuples
446-
# (source start file, name, description, authors, manual section).
447260
man_pages = [("index", "Pycord", "Pycord Documentation", ["Pycord Development"], 1)]
448261

449-
# If true, show URL addresses after external links.
450-
# man_show_urls = False
451-
452-
453262
# -- Options for Texinfo output -------------------------------------------
454263

455-
# Grouping the document tree into Texinfo files. List of tuples
456-
# (source start file, target name, title, author,
457-
# dir menu entry, description, category)
458264
texinfo_documents = [
459265
(
460266
"index",
@@ -467,19 +273,6 @@ def write_new():
467273
),
468274
]
469275

470-
# Documents to append as an appendix to all manuals.
471-
# texinfo_appendices = []
472-
473-
# If false, no module index is generated.
474-
# texinfo_domain_indices = True
475-
476-
# How to display URL addresses: 'footnote', 'no', or 'inline'.
477-
# texinfo_show_urls = 'footnote'
478-
479-
# If true, do not generate a @detailmenu in the "Top" node's menu.
480-
# texinfo_no_detailmenu = False
481-
482-
483276
linkcheck_ignore = [
484277
r"https://docs.discord.com/developers/.*#",
485278
r"https://support(?:-dev)?.discord.com/hc/en-us/articles/.*",

0 commit comments

Comments
 (0)