Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/_extensions/zephyr/doxyrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
============

This Sphinx plugin can be used to run Doxygen build as part of the Sphinx build
process. It is meant to be used with other plugins such as ``docleaf`` in order
process. It is meant to be used with other plugins such as ``breathe`` in order
to improve the user experience. The principal features offered by this plugin
are:

Expand Down
4 changes: 2 additions & 2 deletions doc/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -843,13 +843,13 @@ kbd, .kbd,
background-color: var(--navbar-scrollbar-active-color);
}

/* Docleaf tweaks */
/* Breathe tweaks */

.rst-content .section > dl > dd {
margin-left: 0;
}

.rst-content p.docleaf-sectiondef-title {
.rst-content p.breathe-sectiondef-title {
font-size: 115%;
color: var(--link-color);
}
Expand Down
15 changes: 7 additions & 8 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
# -- General configuration ------------------------------------------------

extensions = [
"docleaf.doxygen",
"breathe",
"sphinx.ext.todo",
"sphinx.ext.extlinks",
"sphinx.ext.autodoc",
Expand Down Expand Up @@ -211,17 +211,16 @@
doxyrunner_fmt_vars = {"ZEPHYR_BASE": str(ZEPHYR_BASE), "ZEPHYR_VERSION": version}
doxyrunner_outdir_var = "DOXY_OUT"

# -- Options for Docleaf plugin -------------------------------------------
# -- Options for Breathe plugin -------------------------------------------

docleaf_projects = {"Zephyr": {"xml": str(doxyrunner_outdir / "xml"), "root": "../"}}
docleaf_default_project = "Zephyr"
docleaf_domain_by_extension = {
breathe_projects = {"Zephyr": str(doxyrunner_outdir / "xml")}
breathe_default_project = "Zephyr"
breathe_domain_by_extension = {
"h": "c",
"c": "c",
}
# Filters out any 'function' or 'variable' members that have 'all caps' names as
# they are likely unprocessed macro calls
docleaf_doxygen_skip = ["members:all_caps"]
breathe_show_enumvalue_initializer = True
breathe_default_members = ("members", )

cpp_id_attributes = [
"__syscall",
Expand Down
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/blob.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,4 @@ This section contains types and defines common to the BLOB Transfer models.

.. doxygengroup:: bt_mesh_blob
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/blob_cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,4 @@ API reference

.. doxygengroup:: bt_mesh_blob_cli
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/blob_srv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ API reference

.. doxygengroup:: bt_mesh_blob_srv
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/dfd_srv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ API reference

.. doxygengroup:: bt_mesh_dfd_srv
:project: Zephyr
:members:
2 changes: 2 additions & 0 deletions doc/connectivity/bluetooth/api/mesh/dfu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ This section lists the types common to the Device Firmware Update mesh models.

.. doxygengroup:: bt_mesh_dfu
:project: Zephyr
:members:

.. doxygengroup:: bt_mesh_dfu_metadata
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/dfu_cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ API reference

.. doxygengroup:: bt_mesh_dfu_cli
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/dfu_srv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,4 @@ API reference

.. doxygengroup:: bt_mesh_dfu_srv
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/lcd_cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ API reference

.. doxygengroup:: bt_mesh_large_comp_data_cli
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/lcd_srv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ API reference

.. doxygengroup:: bt_mesh_large_comp_data_srv
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/od_cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ API reference

.. doxygengroup:: bt_mesh_od_priv_proxy_cli
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/od_srv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ API reference

.. doxygengroup:: bt_mesh_od_priv_proxy_srv
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/op_agg_cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ API reference

.. doxygengroup:: bt_mesh_op_agg_cli
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/op_agg_srv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ API reference

.. doxygengroup:: bt_mesh_op_agg_srv
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/priv_beacon_cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ API reference

.. doxygengroup:: bt_mesh_priv_beacon_cli
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/priv_beacon_srv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ API reference

.. doxygengroup:: bt_mesh_priv_beacon_srv
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/rpr_cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,4 @@ API reference

.. doxygengroup:: bt_mesh_rpr_cli
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/rpr_srv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ API reference

.. doxygengroup:: bt_mesh_rpr_srv
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/srpl_cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ API reference

.. doxygengroup:: bt_mesh_sol_pdu_rpl_cli
:project: Zephyr
:members:
1 change: 1 addition & 0 deletions doc/connectivity/bluetooth/api/mesh/srpl_srv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ API reference

.. doxygengroup:: bt_mesh_sol_pdu_rpl_srv
:project: Zephyr
:members:
10 changes: 5 additions & 5 deletions doc/contribute/documentation/generation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The project's documentation contains the following items:
header [shape="rectangle" label="c header\ncomments"]
xml [shape="rectangle" label="XML"]
html [shape="rectangle" label="HTML\nweb site"]
sphinx[shape="ellipse" label="sphinx +\ndocleaf,\ndocutils"]
sphinx[shape="ellipse" label="sphinx +\nbreathe,\ndocutils"]
images -> sphinx
rst -> sphinx
conf -> sphinx
Expand All @@ -65,7 +65,7 @@ The project's documentation contains the following items:


The reStructuredText files are processed by the Sphinx documentation system,
and make use of the docleaf extension for including the doxygen-generated API
and make use of the breathe extension for including the doxygen-generated API
material. Additional tools are required to generate the
documentation locally, as described in the following sections.

Expand Down Expand Up @@ -226,16 +226,16 @@ build the documentation directly from there:
Filtering expected warnings
***************************

There are some known issues with Sphinx/Docleaf that generate Sphinx warnings
There are some known issues with Sphinx/Breathe that generate Sphinx warnings
even though the input is valid C code. While these issues are being considered
for fixing we have created a Sphinx extension that allows to filter them out
based on a set of regular expressions. The extension is named
``zephyr.warnings_filter`` and it is located at
``doc/_extensions/zephyr/warnings_filter.py``. The warnings to be filtered out
can be added to the ``doc/known-warnings.txt`` file.

The most common warning reported by Sphinx/Docleaf is related to duplicate C
declarations. This warning may be caused by different Sphinx/Docleaf issues:
The most common warning reported by Sphinx/Breathe is related to duplicate C
declarations. This warning may be caused by different Sphinx/Breathe issues:

- Multiple declarations of the same object are not supported
- Different objects (e.g. a struct and a function) can not share the same name
Expand Down
2 changes: 1 addition & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DOC: used to generate docs

docleaf==0.8.1
breathe>=4.34
sphinx~=6.2
sphinx_rtd_theme~=1.2
sphinx-tabs
Expand Down