doc/sphinx: Add doxygen aliases for easier rst embedding

With these aliases we can use rST directives inside comment blocks. This
adds also a doxygen command '\rststar' where ignores the asterisk --
typical to multi-line comment blocks.

While at it, add a simple example on how to use them.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
dev
Marius Vlad 6 years ago committed by Pekka Paalanen
parent 3d620bc04d
commit ae26341037
  1. 5
      doc/sphinx/doxygen.ini.in
  2. 20
      include/libweston/libweston.h

@ -238,7 +238,10 @@ TAB_SIZE = 8
# "Side Effects:". You can put \n's in the value part of an alias to insert # "Side Effects:". You can put \n's in the value part of an alias to insert
# newlines. # newlines.
ALIASES = ALIASES = "rst=\verbatim embed:rst"
ALIASES += "endrst=\endverbatim"
ALIASES += "rststar=\verbatim embed:rst:leading-asterisk"
ALIASES += "endrststar=\endverbatim"
# This tag can be used to specify a number of word-keyword mappings (TCL only). # This tag can be used to specify a number of word-keyword mappings (TCL only).
# A mapping has the form "name=value". For example adding "class=itcl::class" # A mapping has the form "name=value". For example adding "class=itcl::class"

@ -955,15 +955,19 @@ enum weston_capability {
* likely want to subclass this in order to handle backend specific * likely want to subclass this in order to handle backend specific
* data. * data.
* *
* NOTE: Alternate designs were proposed (Feb 2016) for using opaque * \rststar
* structures[1] and for section+key/value getter/setters[2]. The rationale * .. note:
* for selecting the transparent structure design is based on several
* assumptions[3] which may require re-evaluating the design choice if they
* fail to hold.
* *
* 1: https://lists.freedesktop.org/archives/wayland-devel/2016-February/026989.html * Alternate designs were proposed (Feb 2016) for using opaque structures[1]
* 2: https://lists.freedesktop.org/archives/wayland-devel/2016-February/026929.html * and for section+key/value getter/setters[2]. The rationale for selecting
* 3: https://lists.freedesktop.org/archives/wayland-devel/2016-February/027228.html * the transparent structure design is based on several assumptions[3] which
* may require re-evaluating the design choice if they fail to hold.
*
* 1. https://lists.freedesktop.org/archives/wayland-devel/2016-February/026989.html
* 2. https://lists.freedesktop.org/archives/wayland-devel/2016-February/026929.html
* 3. https://lists.freedesktop.org/archives/wayland-devel/2016-February/027228.html
*
* \endrststar
*/ */
struct weston_backend_config { struct weston_backend_config {
/** Major version for the backend-specific config struct /** Major version for the backend-specific config struct

Loading…
Cancel
Save