aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-03-15 12:56:45 +0100
committerGitHub <[email protected]>2017-03-15 12:56:45 +0100
commit8905555b45bdcfa103b734e7fc7ac4838d94c657 (patch)
tree6be89df598e0510b774e75fdadb015465439831c
parent6977db063b9325f339b76927c887efc5e1e3b130 (diff)
parent8757e096db3380e9bb36fb1fca7ff151e026834b (diff)
downloadotp-8905555b45bdcfa103b734e7fc7ac4838d94c657.tar.gz
otp-8905555b45bdcfa103b734e7fc7ac4838d94c657.tar.bz2
otp-8905555b45bdcfa103b734e7fc7ac4838d94c657.zip
Merge pull request #1373 from richcarl/edoc-no-timstamps
edoc: Don't generate timestamps in footer OTP-14277
-rw-r--r--lib/edoc/src/edoc_layout.erl12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/edoc/src/edoc_layout.erl b/lib/edoc/src/edoc_layout.erl
index 9407ae1321..5ef210980c 100644
--- a/lib/edoc/src/edoc_layout.erl
+++ b/lib/edoc/src/edoc_layout.erl
@@ -214,7 +214,7 @@ layout_module(#xmlElement{name = module, content = Es}=E, Opts) ->
++ functions(SortedFs, Opts)
++ [hr, ?NL]
++ navigation("bottom")
- ++ timestamp()),
+ ++ footer()),
Encoding = get_attrval(encoding, E),
xhtml(Title, stylesheet(Opts), Body, Encoding).
@@ -228,12 +228,8 @@ module_params(Es) ->
[element(1, First) | [ {[", ",A]} || {A, _D} <- Rest]]
end.
-timestamp() ->
- [?NL, {p, [{i, [io_lib:fwrite("Generated by EDoc, ~s, ~s.",
- [edoc_lib:datestr(date()),
- edoc_lib:timestr(time())])
- ]}]},
- ?NL].
+footer() ->
+ [?NL, {p, [{i, ["Generated by EDoc"]}]}, ?NL].
stylesheet(Opts) ->
case Opts#opts.stylesheet of
@@ -1039,7 +1035,7 @@ overview(E=#xmlElement{name = overview, content = Es}, Options) ->
++ FullDesc
++ [?NL, hr]
++ navigation("bottom")
- ++ timestamp()),
+ ++ footer()),
Encoding = get_attrval(encoding, E),
XML = xhtml(Title, stylesheet(Opts), Body, Encoding),
xmerl:export_simple(XML, ?HTML_EXPORT, []).