File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ SPHINXOPTS ?=
7
7
SPHINXBUILD ?= sphinx-build
8
8
SOURCEDIR = .
9
9
BUILDDIR = _build
10
- SOURCE_DATE_EPOCH = $(shell git log -1 --format=% ct)
10
+ # SOURCE_DATE_EPOCH = $(shell git log -1 --format=%ct)
11
11
12
12
# Put it first so that "make" without argument is like "make help".
13
13
help :
Original file line number Diff line number Diff line change 13
13
import os
14
14
import sys
15
15
import time
16
+ from datetime import datetime
17
+ from sphinx .util .i18n import format_date
16
18
17
19
## FIXME for the time being I've cloned relevant extensions into a submodule,
18
20
## and then hard linked the __init__.py file until my changes can be upstreamed
23
25
project = 'Haskell Optimization Handbook'
24
26
html_title = 'Haskell Optimization Handbook'
25
27
# FIXME: https://github.com/haskellFoundation/hs-opt-handbook.github.io/issues/58
26
- copyright = u'2022-%s, Jeffrey Young (doyougnu)' % time .strftime ('%Y' )
28
+ now = datetime .now ()
29
+ copyright = u'2022-%s, Jeffrey Young (doyougnu)' % now .year
27
30
author = 'Jeffrey Young (doyugnu)'
28
31
29
32
# The full version, including alpha/beta/rc tags
Original file line number Diff line number Diff line change @@ -31,11 +31,6 @@ pkgs.stdenv.mkDerivation {
31
31
src = ./. ;
32
32
propagatedBuildInputs = pythonInputs ++ nonPythonInputs ;
33
33
34
- # set SOURCE_DATE_EPOCH using git, fixes #58
35
- shellHook = ''
36
- SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)
37
- '' ;
38
-
39
34
buildPhase = ''
40
35
runHook preBuild
41
36
make ${ target } SPHINXOPTS="-W"
You can’t perform that action at this time.
0 commit comments