File tree Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Expand file tree Collapse file tree 3 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 5959# "Error using publish Only MATLAB code can be published"
6060
6161 - name : Upload artifact
62- uses : actions/upload-pages-artifact@v3
62+ uses : actions/upload-pages-artifact@v4
6363 with :
64- path : ' docs /'
64+ path : ' +stdlib/html /'
6565
6666 - name : Deploy to GitHub Pages
6767 id : deployment
Original file line number Diff line number Diff line change @@ -10,14 +10,14 @@ release/
1010resources /
1111.buildtool /
1212* .asv
13- docs /
13+ +stdlib / html /
1414
1515* .mex *
16- * .oct
16+ * .exe
1717
18- test /printenv.exe
19- test /stdout_stderr_c.exe
20- test /stdout_stderr_fortran.exe
21- test /stdin_cpp.exe
22- test /stdin_fortran.exe
23- test /sleep.exe
18+ test /printenv
19+ test /stdout_stderr_c
20+ test /stdout_stderr_fortran
21+ test /stdin_cpp
22+ test /stdin_fortran
23+ test /sleep
Original file line number Diff line number Diff line change 107107
108108function publishTask(context )
109109% publish HTML inline documentation strings to individual HTML files
110- outdir = fullfile(context .Plan .RootFolder , ' docs' );
110+ %
111+ % References:
112+ % https://www.mathworks.com/help/matlab/matlab_prog/display-custom-documentation.html
113+ % https://www.mathworks.com/help/matlab/matlab_prog/create-a-help-summary-contents-m.html
114+
115+ pkg_root = fullfile(context .Plan .RootFolder , ' +stdlib' );
116+ html_dir = fullfile(pkg_root , ' html' );
111117styleFile = fullfile(context .Plan .RootFolder , " private/style.css" );
112118
113119readme = publish_gen_index_html(" stdlib" , ...
114120 " A standard library of functions for Matlab." , ...
115121 " https://github.com/geospace-code/matlab-stdlib" , ...
116- outdir , styleFile );
122+ html_dir , styleFile );
117123
118124fprintf(" \nweb('file:///%s') to view docs\n\n" , readme );
119125end
You can’t perform that action at this time.
0 commit comments