Skip to content

Commit

Permalink
update gen function and fix linebreak bug
Browse files Browse the repository at this point in the history
  • Loading branch information
teddychao committed Jan 31, 2025
1 parent 594a99e commit 3dc0b51
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pspm_doc.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,15 @@
end
M = [M, '[Back to index](/PsPM/ref/)', newline];
%% 4 Write to file
if isfield(options, 'post') && options.post == 1
PrefTitle = ['2024-01-01-',Title];
else
PrefTitle = Title;
end
if isfield(options, 'path')
writelines(M, [options.path, '/', Title,'.md']);
writelines(M, [options.path, '/', PrefTitle,'.md']);
else
writelines(M, [Title,'.md']);
writelines(M, [PrefTitle,'.md']);
end
sts = 1;
end
Expand Down
1 change: 1 addition & 0 deletions src/pspm_doc_gen.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
for i_func = 1:length(list_func)
options = struct();
options.path = savepath;
options.post = 1;
disp(list_func{i_func});
sts_temp = pspm_doc(list_func{i_func}, options);
if sts_temp == -1
Expand Down

0 comments on commit 3dc0b51

Please sign in to comment.