aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/changelog.rst4
-rw-r--r--docs/conf.py7
-rw-r--r--docs/utils.py4
3 files changed, 12 insertions, 3 deletions
diff --git a/docs/changelog.rst b/docs/changelog.rst
index 75a7c40a..3a1c7bec 100644
--- a/docs/changelog.rst
+++ b/docs/changelog.rst
@@ -5,6 +5,10 @@ Changelog
=========
+- :release:`10.2.0 <28th August 2023>`
+- :support:`192` Bump Discord.py to :literal-url:`2.3.2 <https://github.com/Rapptz/discord.py/releases/tag/v2.3.2>`.
+
+
- :release:`10.1.0 <25th July 2023>`
- :feature:`190` Overwrite :obj:`discord.ext.commands.Bot.process_commands` to ensure no commands are processed until all extensions are loaded. This only works for clients using :obj:`pydis_core.BotBase.load_extensions`.
diff --git a/docs/conf.py b/docs/conf.py
index 683f9e51..b06300a3 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -155,14 +155,15 @@ def setup(app: Sphinx) -> None:
app.add_role("breaking", releases.issues_role)
-ignored_modules = [
+ignored_targets = [
"async_rediscache",
+ "pydantic.main.BaseModel"
]
# nitpick raises warnings as errors. This regex tells nitpick to ignore any warnings that match this regex.
-# This is a workaround for modules that do not have docs that can be linked out to.
+# This is a workaround for modules/classes that do not have docs that can be linked out to.
nitpick_ignore_regex = [
- ("py:.*", "|".join([f".*{entry}.*" for entry in ignored_modules])),
+ ("py:.*", "|".join([f".*{entry}.*" for entry in ignored_targets])),
]
# -- Extension configuration -------------------------------------------------
diff --git a/docs/utils.py b/docs/utils.py
index 3a20b87f..2b3cff5d 100644
--- a/docs/utils.py
+++ b/docs/utils.py
@@ -94,6 +94,10 @@ def linkcode_resolve(repo_link: str, domain: str, info: dict[str, str]) -> str |
pos = _global_assign_pos(source, symbol_name)
if pos is None:
+ if symbol_name in ("model_config", "model_fields"):
+ # These are ClassVars added by pydantic.
+ # Since they're not in our source code, we cannot resolve them to a url.
+ return None
raise Exception(f"Could not find symbol `{symbol_name}` in {module.__name__}.")
start, end = pos