Skip to content

Commit

Permalink
Remove matlab stuff and add complete index
Browse files Browse the repository at this point in the history
Signed-off-by: RibhuDP <[email protected]>
  • Loading branch information
ribdp committed Apr 2, 2024
1 parent 88bf0ed commit 5af0ead
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 20 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,7 @@ jobs:
python -m pip install sphinx-toolbox
pip install sphinx myst_parser
sudo apt-get install doxygen graphviz -y
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: R2021b

- name: Run script
uses: matlab-actions/run-command@v2
with:
command: addpath(genpath(pwd)), cd docs/source/reference_api, gen_sysobj_doc

- name: Check doc build
run: |
cd docs
Expand Down
9 changes: 1 addition & 8 deletions docs/source/reference_api/gen_sysobj_doc.m
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,17 @@
all_props = [all_props,s];
end
top_doc = help(dotmfilename);
disp("Hello")
disp(class(top_doc))
disp(size(top_doc))
disp(top_doc)
top_doc = strsplit(top_doc,'\n');

top_doc = top_doc(1:end - 3);
top_doc = strtrim(top_doc); %Remove spurious leading whitespaces
disp(part)
disp(top_doc)

top_doc(1) = cellstr(strcat("**", top_doc(1), "**"));
top_doc = strjoin(top_doc, '\n');
top_doc = char(top_doc);

oname = struct('name',dotmfilename, 'dec',top_doc, 'props',all_props);
all_devs = [all_devs, oname];


template = '';
% Class name and section
class_name = oname.name;
Expand Down
31 changes: 30 additions & 1 deletion docs/source/reference_api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,33 @@ Reference APIs
.. toctree::
:maxdepth: 1
:caption: Driver Classes:


AD7380_Rx.rst
AD7768_Rx.rst
AD7768_1_Rx.rst
AD4030_Rx.rst
AD4630_16_Rx.rst
AD4630_24_Rx.rst
AD4858_Rx.rst
AD2S1210_Rx.rst
AD4000_Rx.rst
AD4001_Rx.rst
AD4002_Rx.rst
AD4003_Rx.rst
AD4004_Rx.rst
AD4005_Rx.rst
AD4006_Rx.rst
AD4007_Rx.rst
AD4008_Rx.rst
AD4010_Rx.rst
AD4011_Rx.rst
AD4020_Rx.rst
AD4021_Rx.rst
AD4022_Rx.rst
AD5760_Tx.rst
AD5780_Tx.rst
AD5781_Tx.rst
AD5790_Tx.rst
AD5791_Tx.rst
AD7124_4_Rx.rst
AD7124_8_Rx.rst

0 comments on commit 5af0ead

Please sign in to comment.