diff --git a/doc/conf.py b/doc/conf.py
index 2ea68ec8d0a..9fdde31788d 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -64,7 +64,20 @@
# (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
+ """"""
)
if os.getenv("MNE_FULL_DATE", "false").lower() != "true":
copyright = f"2012–{td.year}, MNE Developers. Last updated locally." # noqa: A001