-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.m
More file actions
17 lines (14 loc) · 804 Bytes
/
build.m
File metadata and controls
17 lines (14 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function result = build
% Builds the documentation website
replab_init;
% Define and create required paths
[basePath, name, extension] = fileparts(mfilename('fullpath'));
basePath = strrep(basePath, '\', '/'); % we normalize to Unix style filesep, as it is compatible with all
sphinxRoot = fullfile(basePath, 'sphinx');
preprocessedFolder = fullfile(basePath, 'generated');
replab.infra.mkCleanDir(basePath, 'generated');
sphinxTarget = fullfile(basePath, 'docs');
% Builds the documentation only
replab_sphinx('ppdoc', 'sphinxRoot', sphinxRoot, 'preprocessedFolder', preprocessedFolder, 'sphinxTarget', sphinxTarget);
result = replab_sphinx('build', 'sphinxRoot', sphinxRoot, 'preprocessedFolder', preprocessedFolder, 'sphinxTarget', sphinxTarget);
end