Yocto Project Documentation
 help / color / mirror / Atom feed
From: Antonin Godard <antonin.godard@bootlin.com>
To: docs@lists.yoctoproject.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	 Antonin Godard <antonin.godard@bootlin.com>
Subject: [PATCH 3/3] ref-manual: add a Library Functions section
Date: Tue, 24 Nov 2026 14:17:56 +0100	[thread overview]
Message-ID: <20261124-oe-utils-docs-v1-3-5fafbf6cb01c@bootlin.com> (raw)
In-Reply-To: <20261124-oe-utils-docs-v1-0-5fafbf6cb01c@bootlin.com>

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 --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,

-- 
2.56.0


      parent reply	other threads:[~2026-11-24 13:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 13:17 [PATCH 0/3] Add a "Library Functions" section to the ref-manual Antonin Godard
2026-11-24 13:17 ` [PATCH 1/3] conf.py: enable sphinx.ext.autodoc Antonin Godard
2026-11-24 13:17 ` [PATCH 2/3] ref-manual/terms.rst: add the Datastore definition Antonin Godard
2026-11-24 13:17 ` Antonin Godard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261124-oe-utils-docs-v1-3-5fafbf6cb01c@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=docs@lists.yoctoproject.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox