File tree Expand file tree Collapse file tree 6 files changed +25
-39
lines changed Expand file tree Collapse file tree 6 files changed +25
-39
lines changed Original file line number Diff line number Diff line change 48
48
- name : Checkout
49
49
uses : actions/checkout@v4.1.1
50
50
51
- - name : Install Requirements
52
- run : pip3 install -r docs/requirements.txt
51
+ - name : Install Dependencies
52
+ run : |
53
+ sudo apt-get install -y doxygen
54
+ pip3 install -r docs/requirements.txt
53
55
54
56
- name : Build Documentation
55
57
run : sphinx-build -b html docs build/docs -W --keep-going
Original file line number Diff line number Diff line change 23
23
- name : Checkout
24
24
uses : actions/checkout@v4.1.1
25
25
26
- - name : Install Requirements
27
- run : pip3 install -r docs/requirements.txt
26
+ - name : Install Dependencies
27
+ run : |
28
+ sudo apt-get install -y doxygen
29
+ pip3 install -r docs/requirements.txt
28
30
29
31
- name : Build Documentation
30
32
run : sphinx-build -b html docs docs/build -W --keep-going
Original file line number Diff line number Diff line change @@ -71,10 +71,9 @@ if(NOT_SUBPROJECT)
71
71
catch_discover_tests (errors_test )
72
72
endif ()
73
73
74
- # Build XML documentation
75
74
if (BUILD_DOCS )
76
- include (cmake/add_xml_docs .cmake )
77
- add_xml_docs ( errors_docs include / errors/error.hpp )
75
+ include (cmake/GenerateDocs .cmake )
76
+ target_generate_xml_docs ( errors )
78
77
endif ()
79
78
80
79
if (BUILD_EXAMPLES )
Original file line number Diff line number Diff line change
1
+ # Function to generate an XML documentation of a specific target.
2
+ # Arguments:
3
+ # - TARGET: The target for which to generate an XML documentation.
4
+ function (target_generate_xml_docs TARGET )
5
+ find_package (Doxygen REQUIRED )
6
+
7
+ # Configure Doxygen to generate an XML documentation.
8
+ set (DOXYGEN_GENERATE_HTML NO )
9
+ set (DOXYGEN_GENERATE_XML YES )
10
+ set (DOXYGEN_XML_OUTPUT ${TARGET} _docs )
11
+
12
+ get_target_property (TARGET_HEADER_SET ${TARGET} HEADER_SET )
13
+ doxygen_add_docs (${TARGET} _docs ${TARGET_HEADER_SET} USE_STAMP_FILE )
14
+ endfunction ()
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -39,8 +39,7 @@ if(NOT_SUBPROJECT)
39
39
catch_discover_tests (errors_format_test )
40
40
endif ()
41
41
42
- # Build XML documentation
43
42
if (BUILD_DOCS )
44
- add_xml_docs ( errors_format_docs include /errors/format.hpp )
43
+ target_generate_xml_docs ( errors_format )
45
44
endif ()
46
45
endif ()
You can’t perform that action at this time.
0 commit comments