diff options
| author | Chen Wang <[email protected]> | 2025-02-06 14:31:06 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2025-02-11 17:09:44 +0800 |
| commit | 761bb89f27d7e2569fce48b06faf5825fa645f17 (patch) | |
| tree | 7948cc254f3b4ee3cacef9d273b84ac15bc04c4b /documentation/0.doxygen/example/include/enum.h | |
| parent | 74f43edd6c4f12f3902d1f64774b925361d74e5b (diff) | |
doxygen: add documentation for doxygen
Documentation is provided to clarify how to write
doxygen documentation for RT-Thread. This document
is also integrated as part of RT-Thread doxygen
documentation.
An example is also provided.
The original README.md is removed and integrated into
this document.
Updated github actions for doxygen too.
Signed-off-by: Chen Wang <[email protected]>
Diffstat (limited to 'documentation/0.doxygen/example/include/enum.h')
| -rw-r--r-- | documentation/0.doxygen/example/include/enum.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/documentation/0.doxygen/example/include/enum.h b/documentation/0.doxygen/example/include/enum.h new file mode 100644 index 0000000000..14fda47b08 --- /dev/null +++ b/documentation/0.doxygen/example/include/enum.h @@ -0,0 +1,37 @@ +#ifndef _DOXYGEN_EXAMPLE_ENUM_H_ +#define _DOXYGEN_EXAMPLE_ENUM_H_ + +/** + * @page page_howto_enum How to write doxygen documentation for enumeration. + * + * A comment block before the enumeration definition is recommended to + * describe the general information of the enumeration type. In the + * comment block, a `@brief` is required, other commands (such as `@note`) + * are optional. + * + * To describe the values of the enumeration, document is recommended + * to be put after each value. + * + * See + * <a href="https://github.com/RT-Thread/rt-thread/blob/master/documentation/0.doxygen/example/include/enum.h">documentation/0.doxygen/example/include/enum.h</a> + * for example. + */ + +/** + * @addtogroup group_doxygen_example + */ + +/** @{ */ + +/** + * @brief Brief description of this enumeration + */ +enum doxygen_example_enum +{ + V1, /**< description for value 1 */ + V2, /**< description for value 2 */ +}; + +/** @} */ + +#endif /* _DOXYGEN_EXAMPLE_ENUM_H_ */ |
