Skip to content

Commit 3e959d8

Browse files
committed
publish: also show date
1 parent 0959480 commit 3e959d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

private/publish_gen_index_html.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function publish_gen_index_html(pkg_name, tagline, project_url, outdir)
2424

2525
%% Git info
2626
repo = gitrepo(pkg.path);
27-
git_txt = "Git branch / commit: " + repo.CurrentBranch.Name + " " + repo.LastCommit.ID{1}(1:8);
27+
git_txt = sprintf("Git branch / commit: %s %s %s", repo.CurrentBranch.Name, repo.LastCommit.ID{1}(1:8), repo.LastCommit.CommitterDate);
2828

2929
%% generate docs
3030
readme = fullfile(outdir, "index.html");
@@ -58,7 +58,7 @@ function publish_gen_index_html(pkg_name, tagline, project_url, outdir)
5858
disp(doc_fn)
5959

6060
% inject summary for each function into Readme.md
61-
help_txt = split(string(help(pkg_name + "." + name)), newline);
61+
help_txt = splitlines(string(help(pkg_name + "." + name)));
6262
words = split(strip(help_txt(1)), " ");
6363

6464
% error if no docstring

0 commit comments

Comments
 (0)