diff --git a/doc/conf.py b/doc/conf.py
index b735b1d7fca..57a78df1e88 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -64,7 +64,7 @@
# (Sphinx looks at variable changes and rewrites all files if some change)
copyright = ( # noqa: A001
f'2012–{td.year}, MNE Developers. Last updated \n' # noqa: E501
- '' # noqa: E501
+ '' # noqa: E501
)
if os.getenv("MNE_FULL_DATE", "false").lower() != "true":
copyright = f"2012–{td.year}, MNE Developers. Last updated locally." # noqa: A001
@@ -776,7 +776,7 @@ def fix_sklearn_inherited_docstrings(app, what, name, obj, options, lines):
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
-switcher_version_match = "dev" if ".dev" in version else version
+switcher_version_match = "dev" if ".dev" in release else version
html_theme_options = {
"icon_links": [
dict(