diff mbox series

[3/3] ref-manual: add a Library Functions section

Message ID 20261124-oe-utils-docs-v1-3-5fafbf6cb01c@bootlin.com
State New
Headers show
Series Add a "Library Functions" section to the ref-manual | expand

Commit Message

Antonin Godard Nov. 24, 2026, 1:17 p.m. UTC
Like the BitBake User Manual[1], add a "Library Functions" section in
the documentation which uses the autodoc Sphinx extention to
auto-document useful modules of the oe library.

[1]: https://git.openembedded.org/bitbake/tree/doc/bitbake-user-manual/bitbake-user-manual-library-functions.rst

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/ref-manual/index.rst             |  1 +
 documentation/ref-manual/library-functions.rst | 72 ++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)
diff mbox series

Patch

diff --git a/documentation/ref-manual/index.rst b/documentation/ref-manual/index.rst
index aa1a63e05..6f02b0fc9 100644
--- a/documentation/ref-manual/index.rst
+++ b/documentation/ref-manual/index.rst
@@ -17,6 +17,7 @@  Yocto Project Reference Manual
    structure
    classes
    tasks
+   library-functions
    fragments
    devtool-reference
    kickstart
diff --git a/documentation/ref-manual/library-functions.rst b/documentation/ref-manual/library-functions.rst
new file mode 100644
index 000000000..6b075c55d
--- /dev/null
+++ b/documentation/ref-manual/library-functions.rst
@@ -0,0 +1,72 @@ 
+.. SPDX-License-Identifier: CC-BY-SA-2.0-UK
+
+=================
+Library Functions
+=================
+
+This chapter lists common library functions available under the
+:oecore_path:`meta/lib` directory in :term:`OpenEmbedded-Core (OE-Core)`.
+
+These functions can be used in recipes or configuration files with
+:ref:`inline-Python <bitbake:bitbake-user-manual/bitbake-user-manual-metadata:Inline
+Python Variable Expansion>` or :ref:`Python
+<bitbake:bitbake-user-manual/bitbake-user-manual-metadata:BitBake-Style Python
+Functions>` functions.
+
+``oe``
+======
+
+Reference documentation for modules in :oecore_path:`meta/lib/oe`.
+
+``oe.data``
+-----------
+
+.. automodule:: oe.data
+   :members:
+
+``oe.go``
+---------
+
+.. automodule:: oe.go
+   :members:
+
+``oe.kernel``
+-------------
+
+.. automodule:: oe.kernel
+   :members:
+
+``oe.lsb``
+----------
+
+.. automodule:: oe.lsb
+   :members:
+
+``oe.path``
+-----------
+
+.. automodule:: oe.path
+   :members:
+
+``oe.purl``
+-----------
+
+.. automodule:: oe.purl
+   :members:
+
+``oe.utils``
+------------
+
+.. automodule:: oe.utils
+   :members:
+
+``oe.types``
+------------
+
+.. automodule:: oe.types
+   :members:
+      boolean,
+      float,
+      integer,
+      path,
+      regex,