Skip to content
Myr

Merge pull request #2149 from onovy/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Use SOURCE_DATE_EPOCH for copyright year to make build reproducible

authored by David Lord · committed by GitHub · parents 22c613b, 9dcfd05 · Browse files · 1 file+5 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−2 removed

  • other:+5 added−2 removed

1 file+5 added−2 removed

modified:docs/conf.py+5 added-2 removed
9 unmodified lines
10#11# All configuration values have a default; values that are commented out12# serve to show the default.13from __future__ import print_function14from datetime import datetime14import os15import sys16import pkg_resources17import time18import datetime1920BUILD_DATE = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))2122# If extensions (or modules to document with autodoc) are in another directory,23# add these directories to sys.path here. If the directory is relative to the24# documentation root, use os.path.abspath to make it absolute, like shown here.25sys.path.append(os.path.join(os.path.dirname(__file__), '_themes'))
25 unmodified lines
51master_doc = 'index'5253# General information about the project.54project = u'Flask'52copyright = u'2010 - {0}, Armin Ronacher'.format(datetime.utcnow().year)55copyright = u'2010 - {0}, Armin Ronacher'.format(BUILD_DATE.year)5657# The version info for the project you're documenting, acts as replacement for58# |version| and |release|, also used in various other places throughout the59# built documents.
243 unmodified lines