From f8e5f91ade2600499add3f17708f5b8a9ed6c8ae Mon Sep 17 00:00:00 2001 From: Pablo Romero Date: Sun, 24 Mar 2024 06:15:56 +0100 Subject: [PATCH] Update submodule and export to HTML. --- buildUtilities/buildDoc.m | 5 ++++- buildUtilities/exportToHTML.m | 29 ----------------------------- toolbox/dependencies/+bossapi | 2 +- 3 files changed, 5 insertions(+), 31 deletions(-) delete mode 100644 buildUtilities/exportToHTML.m diff --git a/buildUtilities/buildDoc.m b/buildUtilities/buildDoc.m index 0f5ca34..0bb28ae 100644 --- a/buildUtilities/buildDoc.m +++ b/buildUtilities/buildDoc.m @@ -4,6 +4,9 @@ projObj = currentProject; % Export documentation to HTML before packaging toolbox -exportToHTML(fullfile(projObj.RootFolder,'docSource'),fullfile(projObj.RootFolder,'toolbox','html')); +bossapi.exportToHTML(fullfile(projObj.RootFolder,'docSource'),fullfile(projObj.RootFolder,'toolbox','html')); + +% Build searchable database +builddocsearchdb(outputFolder); end \ No newline at end of file diff --git a/buildUtilities/exportToHTML.m b/buildUtilities/exportToHTML.m deleted file mode 100644 index 46a81cf..0000000 --- a/buildUtilities/exportToHTML.m +++ /dev/null @@ -1,29 +0,0 @@ -function exportToHTML(inputFolder,outputFolder) -%EXPORTTOHTML Export files to HTML - -arguments - inputFolder {mustBeFolder} - outputFolder {mustBeFolder} -end - -docFiles = findAllFiles(inputFolder); - -fprintf('Exporting files to %s in HTML format...\n',outputFolder); -for i = 1:numel(docFiles) - fprintf('Exporting file %s (%i/%i)...\n',docFiles(i).name,i,numel(docFiles)); - [~, fileNameNoext] = fileparts(docFiles(i).name); - export(fullfile(docFiles(i).folder,docFiles(i).name),... - fullfile(outputFolder,fileNameNoext),'Format','html','Run',false); -end -fprintf('Export completed.\n'); - -% Build searchable database -builddocsearchdb(outputFolder); - -end - -function files = findAllFiles(folder) - -files = dir(fullfile(folder,'**/*.mlx')); - -end \ No newline at end of file diff --git a/toolbox/dependencies/+bossapi b/toolbox/dependencies/+bossapi index d3bd293..eb01040 160000 --- a/toolbox/dependencies/+bossapi +++ b/toolbox/dependencies/+bossapi @@ -1 +1 @@ -Subproject commit d3bd293dd72a330fc8a1cb2f2156c351a74acabe +Subproject commit eb0104090d823af548172f0d9151c9736cf9ccce