summaryrefslogtreecommitdiffstats
path: root/common/conf.py
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-04 11:02:45 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-09 09:23:58 +0100
commit3202e319a19297e3d61d6fe1db87b5ba5a940d28 (patch)
tree6d29dd89e4f666973d1acb44c684b37319005947 /common/conf.py
parentcpu-supplement: Update ARM multilibs (diff)
downloadrtems-docs-3202e319a19297e3d61d6fe1db87b5ba5a940d28.tar.bz2
Replace build date with Git hash and commit date
The usage of a build date prevents reproducible builds.
Diffstat (limited to '')
-rw-r--r--common/conf.py25
1 files changed, 1 insertions, 24 deletions
diff --git a/common/conf.py b/common/conf.py
index 60db066..8d5e6b8 100644
--- a/common/conf.py
+++ b/common/conf.py
@@ -1,26 +1,3 @@
-import datetime
-
-def build_date():
- now = datetime.date.today()
- m = now.strftime('%B')
- y = now.strftime('%Y')
- if now.day == 11:
- s = 'th'
- elif now.day % 10 == 1:
- s = 'st'
- elif now.day == 12:
- s = 'th'
- elif now.day % 10 == 2:
- s = 'nd'
- elif now.day == 13:
- s = 'th'
- elif now.day == 3:
- s = 'rd'
- else:
- s = 'th'
- d = '%2d%s' % (now.day, s)
- return '%s %s %s' % (d, m, y)
-
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.coverage",
@@ -47,7 +24,7 @@ master_doc = 'index'
# General information about the project.
project = u'RTEMS Documentation Project'
-copyright = u'2018, RTEMS Project (built %s)' % (build_date())
+copyright = u'2018, RTEMS Project'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the