-
Notifications
You must be signed in to change notification settings - Fork 349
Topology2 doxygen documentation infrastructure #8141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
44b058e
topology2: doc: topology2-filter.py: Add topology2 Doxygen filter
f74f213
topology2: doc: Add initial sof.doxygen.in
7e20a69
topology2: doc: Initial cmake build rules for doxygen documentation
39f1c1a
topology2: doc: Add README instructing how to build the documentation
cf3f409
topology2: doc: topology2-generate-contents.sh: Script to generate co…
10c69ef
topology2: doc: mainpage.doxy: Add simple main-page with contents
62647c0
topology2: doc: gain.conf: Convert comments to Doxygen documentation
28759ab
topology2: doc: common.conf: Doxygenify the existing comments
c1e2230
topology2: doc: mixer.conf: Doxygenify and improve the existing comments
60632d6
topology2: doc: volume-playback.conf: Doxygenify existing comments
0427fe0
topology2: doc: widget-common.conf: Attribute comments to Doxygen
2ded578
topology2: doc: audio_format.conf: Translate comments to Doxygen
e6ec77a
topology2: doc: data.conf: Change comments to Doxygen
3d1d819
topology2: doc: fe_dai.conf: Change comments to Doxygen
037ab69
topology2: doc: input_audio_format.conf: Translate comments to Doxygen
cf09373
topology2: doc: Little fixes to make all classes show correctly
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
|
|
||
| cmake_minimum_required(VERSION 3.13) | ||
|
|
||
| project(SOF_TOPOLOGY2_DOC NONE) | ||
|
|
||
| set(SOF_ROOT_SOURCE_DIRECTORY "${PROJECT_SOURCE_DIR}/..") | ||
|
|
||
| set(top_srcdir "${SOF_ROOT_SOURCE_DIRECTORY}") | ||
| set(top_bindir "${PROJECT_BINARY_DIR}") | ||
|
|
||
| configure_file( | ||
| "${PROJECT_SOURCE_DIR}/sof.doxygen.in" | ||
| "${PROJECT_BINARY_DIR}/sof.doxygen" | ||
| ) | ||
|
|
||
| file(GLOB_RECURSE topology2_sources "${SOF_ROOT_SOURCE_DIRECTORY}/*.conf") | ||
| file(GLOB_RECURSE extra_sources "${PROJECT_SOURCE_DIR}/extra-contents/*.doxy") | ||
|
|
||
| add_custom_command( | ||
| OUTPUT ${PROJECT_BINARY_DIR}/contents.doxy | ||
| COMMAND ${PROJECT_SOURCE_DIR}/topology2-generate-contents.sh > ${PROJECT_BINARY_DIR}/contents.doxy | ||
| DEPENDS ${PROJECT_SOURCE_DIR}/topology2-generate-contents.sh | ||
| DEPENDS ${topology2_sources} | ||
| VERBATIM | ||
| ) | ||
|
|
||
| add_custom_target(doc-contents | ||
| DEPENDS ${PROJECT_BINARY_DIR}/contents.doxy | ||
| ) | ||
|
|
||
| add_custom_command( | ||
| OUTPUT ${PROJECT_BINARY_DIR}/doxygen/html/index.html | ||
| COMMAND doxygen sof.doxygen | ||
marc-hb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| DEPENDS ${PROJECT_BINARY_DIR}/sof.doxygen | ||
| DEPENDS ${PROJECT_SOURCE_DIR}/topology2-filter.py | ||
| DEPENDS doc-contents | ||
| DEPENDS ${extra_sources} | ||
| DEPENDS ${topology2_sources} | ||
marc-hb marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| VERBATIM | ||
| USES_TERMINAL | ||
| ) | ||
|
|
||
| add_custom_target(doc ALL | ||
| DEPENDS ${PROJECT_BINARY_DIR}/doxygen/html/index.html | ||
| VERBATIM | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| To build the topology2 source documentation do following steps: | ||
|
|
||
| cd tools/topology/topology2/doc | ||
| cmake -B build/ | ||
| cmake --build build/ -v | ||
|
|
||
| After the last command you should find the html documentation under: sof/tools/topology/topology2/doc/build/doxygen/html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| /* SPDX-License-Identifier: BSD-3-Clause */ | ||
jsarha marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| /* Copyright(c) 2023 Intel Corporation. All rights reserved. */ | ||
| /*! \mainpage Sound Open Firmware Topology2 | ||
| * | ||
| * \section this_document This Document | ||
| * | ||
| * This document is generated from SOF topology2 sources and its | ||
| * purpose is provide examples of how SOF ALSA topologies are built | ||
| * through instantiating toppology2 classes. | ||
| * | ||
| * The documentation is provided using Doxygen package and a Doxygen | ||
| * filter that translates the topology2 classes into C-structures. The | ||
| * filter is implemented in python and can be found from | ||
| * tools/topology/topology2/doc/topology2-filter.py | ||
| * | ||
| * The topology2 language syntax is described in detail <a | ||
| * href="https://thesofproject.github.io/latest/developer_guides/topology2/topology2.html">here</a>. | ||
| * | ||
| * \subsection doc_reading Reading the document | ||
| * | ||
| * The purpose of the translated C code is not to document actual | ||
| * topology2 code, but only to provide anchors for Doxygen to form a | ||
| * network of links through which to navigate the topology sources and | ||
| * find the pieces of related Doxygen documentation. The filter also | ||
| * creates separate pages of the original code and add links next to | ||
| * the pages in the C struct definition and instance documentation. | ||
| * | ||
| * The most essential part of the documentation is the documentation of | ||
| * classes that shown as C structs in this Doxygen documentation. | ||
| * | ||
| * \copydoc doc_contents | ||
| */ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # SPDX-License-Identifier: BSD-3-Clause | ||
| PROJECT_NAME = "Sound Open Firmware Topology2" | ||
| OUTPUT_DIRECTORY = doxygen | ||
| GENERATE_LATEX = NO | ||
| GENERATE_RTF = NO | ||
| GENERATE_MAN = NO | ||
| GENERATE_XML = YES | ||
|
|
||
| CASE_SENSE_NAMES = NO | ||
| INPUT = @top_srcdir@ \ | ||
| @top_srcdir@/doc/extra-contents/ \ | ||
| @top_bindir@/contents.doxy | ||
|
|
||
| RECURSIVE = YES | ||
| FILE_PATTERNS = *.conf | ||
| IMAGE_PATH = | ||
| QUIET = YES | ||
| WARN_LOGFILE = doxygen_warnings.txt | ||
|
|
||
| EXTRACT_ALL = YES | ||
| EXTRACT_STATIC = YES | ||
| WARN_IF_UNDOCUMENTED = NO | ||
| SHOW_INCLUDE_FILES = YES | ||
| JAVADOC_AUTOBRIEF = YES | ||
| INHERIT_DOCS = YES | ||
|
|
||
| MACRO_EXPANSION = YES | ||
| EXPAND_ONLY_PREDEF = YES | ||
| OPTIMIZE_OUTPUT_FOR_C = YES | ||
|
|
||
| HTML_TIMESTAMP = NO | ||
|
|
||
| EXTENSION_MAPPING = conf=C,doxy=C | ||
| FILTER_PATTERNS = *.conf=@top_srcdir@/doc/topology2-filter.py |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.