Skip to content

Commit 3ad4fe3

Browse files
committed
correct 9b6c6d5
1 parent fd413b7 commit 3ad4fe3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

private/publish_gen_index_html.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function publish_gen_index_html(pkg_name, tagline, project_url, outdir)
5757
sn = pkg.packages(i);
5858
sn = sn{1};
5959
spkg = what(fullfile("+" + pkg_name, sn));
60-
60+
6161
publish_pkg(fid, spkg, pkg_name)
6262
end
6363

@@ -75,11 +75,11 @@ function publish_pkg(fid, pkg, pkg_name)
7575
[~, subname] = fileparts(pkg.path);
7676
if ~endsWith(subname, pkg_name)
7777
pkg_name = pkg_name + "." + subname(2:end);
78-
relpath = subname(2:end);
78+
relpath = subname(2:end) + "/";
7979
outdir = fullfile(outdir, relpath);
8080
fprintf(fid, strcat('<h3>', pkg_name, '</h3>', newline));
8181
else
82-
relpath = '';
82+
relpath = "";
8383
end
8484

8585
for fun = pkg.m.'
@@ -97,7 +97,7 @@ function publish_pkg(fid, pkg, pkg_name)
9797
fname = words(1);
9898
assert(endsWith(fname, name, IgnoreCase=true), "fname %s does not match name %s \nis there a docstring at the top of the .m file?", fname, name)
9999

100-
line = "<a href=" + relpath + "/" + name + ".html>" + fname + "</a> ";
100+
line = "<a href=" + relpath + name + ".html>" + fname + "</a> ";
101101
if(length(words) > 1)
102102
line = join([line, words(2:end).']);
103103
end

0 commit comments

Comments
 (0)