diff --git a/doc/conf.py b/doc/conf.py
index 415f1bf46cc..f3a50fd3518 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -62,12 +62,24 @@
# We need to triage which date type we use so that incremental builds work
# (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
+project_copyright = (
+ f'2012–{td.year}, MNE Developers. Last updated .\n' # noqa: E501
+ """"""
)
if os.getenv("MNE_FULL_DATE", "false").lower() != "true":
- copyright = f"2012–{td.year}, MNE Developers. Last updated locally." # noqa: A001
+ project_copyright = f"2012–{td.year}, MNE Developers. Last updated locally."
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the