Skip to content

Commit 6aeab71

Browse files
committed
publish subfunctions
1 parent 26693c2 commit 6aeab71

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

buildfile.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,14 @@ function publishTask(context)
170170

171171
req = "";
172172
for bkd = string(pkg.packages).'
173-
if ~isempty(which(pn + "." + bkd + "." + name))
173+
subfun = pn + "." + bkd + "." + name;
174+
if ~isempty(which(subfun))
174175
Nbe.(bkd) = Nbe.(bkd) + 1;
175-
req = req + " " + bkd;
176+
177+
doc_fn = publish(subfun, evalCode=false, outputDir=html_dir + "/" + bkd);
178+
disp(doc_fn)
179+
180+
req = req + " <a href=" + bkd + "/" + name + ".html>" + bkd + "</a>";
176181
end
177182
end
178183

0 commit comments

Comments
 (0)