Skip to content

Commit 4438f72

Browse files
committed
Merge pull request #2058 from skliper/fix2055-doxygen_frontpage
Fix #2055, Refactor doxygen mainpage into frontpage
2 parents 1d3e4cd + 68fb06e commit 4438f72

File tree

6 files changed

+42
-164
lines changed

6 files changed

+42
-164
lines changed

cmake/cfe-common.doxyfile.in

Lines changed: 11 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
#---------------------------------------------------------------------------
2-
# Project related configuration options, shared for all cFE doxygen outputs
2+
# CFE common setup for including in stand alone or mission documentation
33
#---------------------------------------------------------------------------
4-
@INCLUDE_PATH = @MISSION_SOURCE_DIR@
5-
ABBREVIATE_BRIEF = "The $name class " \
6-
"The $name widget " \
7-
"The $name file " \
8-
is \
9-
provides \
10-
specifies \
11-
contains \
12-
represents \
13-
a \
14-
an \
15-
the
16-
TAB_SIZE = 8
4+
5+
PREDEFINED += @CFEDOC_PREDEFINED@
6+
177
ALIASES += "cfeescfg=\xrefitem cfeescfg \"Purpose\" \"cFE Executive Services Configuration Parameters\" " \
188
"cfeevscfg=\xrefitem cfeevscfg \"Purpose\" \"cFE Event Services Configuration Parameters\" " \
199
"cfetblcfg=\xrefitem cfetblcfg \"Purpose\" \"cFE Table Services Configuration Parameters\" " \
@@ -34,33 +24,11 @@ ALIASES += "cfeescfg=\xrefitem cfeescfg \"Purpose\" \"cFE Executiv
3424
"cfecmdmnemonic=\xrefitem cfecmdmnems \"Command Mnemonic(s)\" \"cFE Command Mnemonic Cross Reference\" " \
3525
"cfetlmmnemonic=\xrefitem cfetlmmnems \"Telemetry Mnemonic(s)\" \"cFE Telemetry Mnemonic Cross Reference\" "
3626

37-
ALIASES += nonnull="(must not be null)"
38-
ALIASES += nonzero="(must not be zero)"
39-
ALIASES += covtest="(return value only verified in coverage test)"
40-
41-
OPTIMIZE_OUTPUT_FOR_C = YES
42-
#---------------------------------------------------------------------------
43-
# Build related configuration options
44-
#---------------------------------------------------------------------------
45-
EXTRACT_ALL = YES
46-
EXTRACT_PRIVATE = YES
47-
EXTRACT_STATIC = YES
48-
CASE_SENSE_NAMES = NO
49-
GENERATE_TODOLIST = NO
50-
GENERATE_BUGLIST = YES
51-
GENERATE_DEPRECATEDLIST= YES
52-
#---------------------------------------------------------------------------
53-
# configuration options related to warning and progress messages
54-
#---------------------------------------------------------------------------
55-
WARN_NO_PARAMDOC = YES
56-
#---------------------------------------------------------------------------
57-
# configuration options related to the input files
58-
#---------------------------------------------------------------------------
59-
STRIP_FROM_PATH = @MISSION_SOURCE_DIR@
60-
6127
# Always include a standard set of CFE documentation in the input set
62-
# This is applicable to both users guide and detail design outputs
6328
IMAGE_PATH += @MISSION_SOURCE_DIR@/cfe/docs/src
29+
30+
# Front documentation material
31+
INPUT += @MISSION_SOURCE_DIR@/cfe/docs/src/cfe_frontpage.dox
6432
INPUT += @MISSION_SOURCE_DIR@/cfe/docs/src/cfe_glossary.dox
6533
INPUT += @MISSION_SOURCE_DIR@/cfe/docs/src/cfs_versions.dox
6634
INPUT += @MISSION_SOURCE_DIR@/cfe/docs/src/cfe_api.dox
@@ -71,55 +39,13 @@ INPUT += @MISSION_SOURCE_DIR@/cfe/docs/src/cfe_tbl.dox
7139
INPUT += @MISSION_SOURCE_DIR@/cfe/docs/src/cfe_time.dox
7240
INPUT += @MISSION_SOURCE_DIR@/cfe/docs/src/cfe_xref.dox
7341

74-
FILE_PATTERNS = *.c *.cpp *.cc *.C *.h *.hh *.hpp *.H *.dox *.md
75-
RECURSIVE = YES
76-
EXAMPLE_PATTERNS = *
77-
78-
# Exclude coverage tests, stubs and associated framework from the documentation
79-
EXCLUDE_PATTERNS += "*/ut-stubs/*"
80-
EXCLUDE_PATTERNS += "*/ut-coverage/*"
81-
EXCLUDE_PATTERNS += "*/unit-test*/*"
42+
# Public headers
43+
INPUT += @MISSION_USERGUIDE_HEADERFILES@
8244

83-
# Exclude contributing guides and readme's since they stand alone as repo documentation
84-
EXCLUDE_PATTERNS += "*/CONTRIBUTING.md"
85-
EXCLUDE_PATTERNS += "*/README.md"
45+
# Strip mission from path
46+
STRIP_FROM_PATH += @MISSION_SOURCE_DIR@
8647

87-
#---------------------------------------------------------------------------
88-
# configuration options related to source browsing
89-
#---------------------------------------------------------------------------
90-
SOURCE_BROWSER = YES
91-
REFERENCED_BY_RELATION = YES
92-
REFERENCES_RELATION = YES
93-
#---------------------------------------------------------------------------
94-
# configuration options related to the LaTeX output
95-
#---------------------------------------------------------------------------
96-
GENERATE_LATEX = NO
97-
LATEX_CMD_NAME = latex
98-
COMPACT_LATEX = YES
99-
PAPER_TYPE = letter
100-
#---------------------------------------------------------------------------
101-
# configuration options related to the RTF output
102-
#---------------------------------------------------------------------------
103-
COMPACT_RTF = YES
104-
#---------------------------------------------------------------------------
105-
# Configuration options related to the dot tool
106-
#---------------------------------------------------------------------------
107-
CLASS_DIAGRAMS = NO
108-
HAVE_DOT = YES
109-
CLASS_GRAPH = NO
110-
COLLABORATION_GRAPH = NO
111-
INCLUDE_GRAPH = NO
112-
INCLUDED_BY_GRAPH = NO
113-
CALL_GRAPH = YES
114-
GRAPHICAL_HIERARCHY = NO
115-
MAX_DOT_GRAPH_DEPTH = 1000
116-
#---------------------------------------------------------------------------
117-
# Configuration::additions related to the search engine
118-
#---------------------------------------------------------------------------
119-
SEARCHENGINE = NO
120-
#---------------------------------------------------------------------------
12148
# CFE mnemonic mappings
122-
#---------------------------------------------------------------------------
12349
@INCLUDE = @MISSION_SOURCE_DIR@/cfe/docs/src/mnem_maps/cfe_es_cmd_mnem_map
12450
@INCLUDE = @MISSION_SOURCE_DIR@/cfe/docs/src/mnem_maps/cfe_es_tlm_mnem_map
12551
@INCLUDE = @MISSION_SOURCE_DIR@/cfe/docs/src/mnem_maps/cfe_tbl_cmd_mnem_map

cmake/cfe-usersguide.doxyfile.in

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,20 @@
22
# Doxygen Configuration options to generate the "cFE Users Guide"
33
#---------------------------------------------------------------------------
44

5-
# Start with the main page so document ordering is established
6-
INPUT += @MISSION_SOURCE_DIR@/cfe/docs/src/main.dox
5+
# Allow overrides
6+
@INCLUDE_PATH = @MISSION_SOURCE_DIR@
77

8-
# Common definitions, some of which are extended or overridden here.
8+
# Common configuration and default settings
99
@INCLUDE = @MISSION_BINARY_DIR@/docs/cfe-common.doxyfile
10+
@INCLUDE = @MISSION_SOURCE_DIR@/osal/docs/src/default-settings.doxyfile
11+
12+
# Document specific settings
1013
PROJECT_NAME = "Core Flight Executive Users Guide"
1114
OUTPUT_DIRECTORY = @CMAKE_BINARY_DIR@/docs/users_guide
1215
WARN_LOGFILE = @CMAKE_BINARY_DIR@/docs/cfe-usersguide-warnings.log
13-
GENERATE_LATEX = YES
1416

1517
# For purposes of the user guide, reference the "stock" mission configuration
1618
# Although missions may override these files, for the users guide we are mainly
1719
# interested in the documentation of those items.
1820
STRIP_FROM_PATH += @MISSION_SOURCE_DIR@/cfe/cmake/sample_defs
1921
INPUT += @MISSION_SOURCE_DIR@/cfe/cmake/sample_defs
20-
21-
PREDEFINED += @USERGUIDE_PREDEFINED@
22-
23-
# Bring in the cFE header files for the documentation of the various API calls
24-
INPUT += @MISSION_USERGUIDE_HEADERFILES@
25-
26-
# Resolve references
27-
INPUT += @MISSION_SOURCE_DIR@/psp/fsw/inc
Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,35 @@
11
#---------------------------------------------------------------------------
2-
# Doxygen options to generate the complete mission documentation
2+
# Sample doxygen setup for generating mission documentation
33
#---------------------------------------------------------------------------
44

5-
# Start with the common definitions, some of which are extended or overridden here.
5+
# Allow overrides
6+
@INCLUDE_PATH = @MISSION_SOURCE_DIR@
7+
8+
# Common configuration and default settings
69
@INCLUDE = @MISSION_BINARY_DIR@/docs/cfe-common.doxyfile
10+
@INCLUDE = @MISSION_SOURCE_DIR@/osal/docs/src/default-settings.doxyfile
11+
12+
# Example detailed design setup
713
PROJECT_NAME = "@MISSION_NAME@"
814
PROJECT_BRIEF = "Core Flight System project built using \"@MISSIONCONFIG@\" configuration"
915
OUTPUT_DIRECTORY = @CMAKE_BINARY_DIR@/docs/detaildesign
1016
WARN_LOGFILE = @CMAKE_BINARY_DIR@/docs/detaildesign-warnings.log
1117

18+
# Include mission defs directory
1219
INPUT += @MISSION_DEFS@
1320
STRIP_FROM_PATH += @MISSION_DEFS@
1421

15-
#---------------------------------------------------------------------------
1622
# The user content doxyfile contains paths to the mission-specific applications
17-
#---------------------------------------------------------------------------
1823
@DETAILDESIGN_DOXYFILE_USER_CONTENT@
1924
@TGTSYSTEM_DOXYFILE_USER_CONTENT@
25+
26+
# Exclude coverage tests, stubs and associated framework from the documentation
27+
EXCLUDE_PATTERNS += "*/ut-stubs/*"
28+
EXCLUDE_PATTERNS += "*/ut-coverage/*"
29+
EXCLUDE_PATTERNS += "*/unit-test*/*"
30+
31+
# Exclude stand alone repo documentation
32+
EXCLUDE_PATTERNS += "*/CODE_OF_CONDUCT.md"
33+
EXCLUDE_PATTERNS += "*/CONTRIBUTING.md"
34+
EXCLUDE_PATTERNS += "*/README.md"
35+
EXCLUDE_PATTERNS += "*/SECURITY.md"

cmake/mission_build.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,6 @@ function(prepare)
280280
string(CONCAT DETAILDESIGN_DOXYFILE_USER_CONTENT ${DETAILDESIGN_DOXYFILE_USER_CONTENT})
281281
string(CONCAT TGTSYSTEM_DOXYFILE_USER_CONTENT ${TGTSYSTEM_DOXYFILE_USER_CONTENT})
282282

283-
configure_file("${CFE_SOURCE_DIR}/cmake/cfe-common.doxyfile.in"
284-
"${CMAKE_BINARY_DIR}/docs/cfe-common.doxyfile"
285-
@ONLY)
286-
287283
# Generate an "empty" osconfig.h file for doxygen purposes
288284
# this does not have the actual user-defined values, but will
289285
# have the documentation associated with each macro definition.
@@ -307,6 +303,10 @@ function(prepare)
307303

308304
string(REPLACE ";" " \\\n" MISSION_USERGUIDE_HEADERFILES "${MISSION_USERGUIDE_HEADERFILES}")
309305

306+
configure_file("${CFE_SOURCE_DIR}/cmake/cfe-common.doxyfile.in"
307+
"${CMAKE_BINARY_DIR}/docs/cfe-common.doxyfile"
308+
@ONLY)
309+
310310
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/docs/detaildesign")
311311
configure_file("${CFE_SOURCE_DIR}/cmake/mission-detaildesign.doxyfile.in"
312312
"${CMAKE_BINARY_DIR}/docs/detaildesign/Doxyfile"

docs/src/main.dox renamed to docs/src/cfe_frontpage.dox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
\mainpage Core Flight Executive Documentation
2+
\page cfefrontpage Core Flight Executive Documentation
33

44
<UL>
55
<LI> General Information and Concepts

docs/src/ddd_main.dox

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)