Skip to content

Commit 6c2b93e

Browse files
committed
Fix doc export path.
1 parent fe952ce commit 6c2b93e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

buildUtilities/exportToHTML.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ function exportToHTML(inputFolder,outputFolder)
1111
fprintf('Exporting files to %s in HTML format...\n',outputFolder);
1212
for i = 1:numel(docFiles)
1313
fprintf('Exporting file %s (%i/%i)...\n',docFiles(i).name,i,numel(docFiles));
14-
export(fullfile(docFiles(i).folder,docFiles(i).name),outputFolder,'Format','html','Run',false);
14+
[~, fileNameNoext] = fileparts(docFiles(i).name);
15+
export(fullfile(docFiles(i).folder,docFiles(i).name),...
16+
fullfile(outputFolder,fileNameNoext),'Format','html','Run',false);
1517
end
1618
fprintf('Export completed.\n');
1719

0 commit comments

Comments
 (0)