diff --git a/.circleci/config.yml b/.circleci/config.yml index 00282a645e7..15a2a436219 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,6 +29,7 @@ jobs: echo "export DISPLAY=:99" >> $BASH_ENV echo "export OPENBLAS_NUM_THREADS=4" >> $BASH_ENV echo "export XDG_RUNTIME_DIR=/tmp/runtime-circleci" >> $BASH_ENV + echo "export MNE_FULL_DATE=true" >> $BASH_ENV source tools/get_minimal_commands.sh echo "export MNE_3D_BACKEND=pyvista" >> $BASH_ENV echo "export PATH=~/.local/bin/:$PATH" >> $BASH_ENV diff --git a/doc/conf.py b/doc/conf.py index 3f59fc3b79a..f83e146c4a9 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -45,9 +45,14 @@ project = 'MNE' td = datetime.now(tz=timezone.utc) + +# 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 = ( 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.' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the