Add support for documentation tags
cover Add support for documentation tags
This series aims at making discovering documentation easier for users. The Yocto Project documentation is a long-lasting repository and nowadays has *lots* of documentation:
❯ cat -p $(find . -name "*.rst" | grep -v migration-guides) | wc -l 61530
Looking for documentation has always been a trouble of mine, so this series adds support for tags. Tags are keywords that show at the bottom of pages and that group different sections of the documentation by a common category.
For example, all sstate related pages are grouped under the 'sstate' tag. Users wanting to learn about its concept or how to use it can know where to go from the 'sstate' tag page.
A tag overview page is also create and lists all known documentation tags.
A series will be sent to OE-Core to add sphinx-tags to the buildtools tarball used on the Autobuilder for the docs build.
---
Antonin Godard (8):
Pipfile: update dependencies for sphinx-tags tools/host_packages_scripts/pip3_docs.sh: update for sphinx-tags conf.py: enable the sphinx-tags extension sphinx-static/theme_overrides.css: customize tags appearance
Makefile: use splithtml tag for html target
docs-wide: tag sections
index.rst: link to the tags overview page for splithtml standards.md: add note about document tags
documentation/.gitignore | 1 + documentation/Makefile | 6 +++++- documentation/Pipfile | 2 ++ documentation/conf.py | 8 ++++++++ .../contributor-guide/identify-component.rst | 4 ++++ .../contributor-guide/recipe-style-guide.rst | 4 ++++ documentation/contributor-guide/report-defect.rst | 4 ++++ documentation/contributor-guide/submit-changes.rst | 4 ++++ documentation/conventions.rst | 4 ++++ documentation/dev-manual/bblock.rst | 3 +++ documentation/dev-manual/bmaptool.rst | 4 ++++ documentation/dev-manual/build-quality.rst | 3 +++ documentation/dev-manual/building.rst | 3 +++ documentation/dev-manual/creating-fragments.rst | 4 ++++ documentation/dev-manual/custom-distribution.rst | 4 ++++ .../custom-template-configuration-directory.rst | 3 +++ documentation/dev-manual/customizing-images.rst | 3 +++ documentation/dev-manual/debugging.rst | 3 +++ documentation/dev-manual/development-shell.rst | 3 +++ documentation/dev-manual/device-manager.rst | 3 +++ documentation/dev-manual/devtool.rst | 4 ++++ documentation/dev-manual/disk-space.rst | 4 ++++ .../dev-manual/efficiently-fetching-sources.rst | 3 +++ documentation/dev-manual/error-reporting-tool.rst | 3 +++ documentation/dev-manual/external-scm.rst | 3 +++ documentation/dev-manual/external-toolchain.rst | 4 ++++ documentation/dev-manual/gobject-introspection.rst | 3 +++ documentation/dev-manual/hashequivserver.rst | 4 ++++ documentation/dev-manual/init-manager.rst | 4 ++++ documentation/dev-manual/layers.rst | 3 +++ documentation/dev-manual/libraries.rst | 3 +++ documentation/dev-manual/licenses.rst | 3 +++ documentation/dev-manual/limiting-resources.rst | 4 ++++ documentation/dev-manual/multiconfig.rst | 4 ++++ documentation/dev-manual/new-machine.rst | 3 +++ documentation/dev-manual/new-recipe.rst | 3 +++ documentation/dev-manual/packages.rst | 3 +++ documentation/dev-manual/poky-manual-setup.rst | 4 ++++ documentation/dev-manual/prebuilt-libraries.rst | 3 +++ .../dev-manual/python-development-shell.rst | 3 +++ documentation/dev-manual/qemu.rst | 4 ++++ documentation/dev-manual/quilt.rst | 3 +++ documentation/dev-manual/sbom.rst | 4 ++++ documentation/dev-manual/speeding-up-build.rst | 3 +++ documentation/dev-manual/sstate-mirrors-setup.rst | 4 ++++ documentation/dev-manual/start.rst | 4 ++++ documentation/dev-manual/temporary-source-code.rst | 4 ++++ documentation/dev-manual/upgrading-recipes.rst | 3 +++ documentation/dev-manual/wayland.rst | 3 +++ documentation/dev-manual/wic.rst | 3 +++ documentation/dev-manual/x32-psabi.rst | 3 +++ documentation/index.rst | 11 +++++++++++ documentation/kernel-dev/index.rst | 4 ++++ documentation/overview-manual/concepts.rst | 4 ++++ .../overview-manual/development-environment.rst | 4 ++++ documentation/overview-manual/yp-intro.rst | 4 ++++ documentation/profile-manual/index.rst | 4 ++++ documentation/ref-manual/devtool-reference.rst | 4 ++++ documentation/ref-manual/fragments.rst | 4 ++++ documentation/ref-manual/kickstart.rst | 4 ++++ documentation/ref-manual/release-process.rst | 4 ++++ documentation/sdk-manual/index.rst | 4 ++++ .../security-manual/build-process-security.rst | 4 ++++ documentation/security-manual/read-only-rootfs.rst | 3 +++ documentation/security-manual/securing-images.rst | 3 +++ documentation/security-manual/sstate-signing.rst | 4 ++++ documentation/security-manual/vulnerabilities.rst | 3 +++ documentation/security-reference/index.rst | 4 ++++ documentation/sphinx-static/theme_overrides.css | 23 ++++++++++++++++++++++ documentation/standards.md | 15 ++++++++++++++ documentation/test-manual/ptest.rst | 4 ++++ documentation/test-manual/reproducible-builds.rst | 4 ++++ documentation/test-manual/runtime-testing.rst | 3 +++ documentation/test-manual/test-process.rst | 4 ++++ documentation/toaster-manual/index.rst | 4 ++++ .../tools/host_packages_scripts/pip3_docs.sh | 2 +- 76 files changed, 308 insertions(+), 2 deletions(-)
---
base-commit: 7b54854d12f3f2c909727702d39066a3d22a4a40
change-id: 20261021-tags-3b858a172be2
PATCH 1/8 Pipfile: update dependencies for sphinx-tags
To prepare for the sphinx-tags addition, update our requirements and add sphinx-tag, as well as sphinx-design which is a dependency of sphinx-tags.
--- documentation/Pipfile | 2 ++ 1 file changed, 2 insertions(+)
documentation/Pipfile +2 -0
@@ -12,6 +12,8 @@ sphinx = "*" sphinx-rtd-theme = "*" pyyaml = "*" sphinx-copybutton = "*" +sphinx-design = "*" +sphinx-tags = "*" # SVG to PNG only supported since 2.0.0 sphinxcontrib-svg2pdfconverter = ">=2.0.0"
Signature · 1 line
2.55.0
PATCH 2/8 tools/host_packages_scripts/pip3_docs.sh: update for sphinx-tags
In reply to Antonin GodardTo prepare for the sphinx-tags addition, update the container build scripts and add sphinx-tag, as well as sphinx-design which is a dependency of sphinx-tags.
--- documentation/tools/host_packages_scripts/pip3_docs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
documentation/tools/host_packages_scripts/pip3_docs.sh +1 -1
@@ -1,3 +1,3 @@ python3 -m venv --clear ./yocto-docs-venv . ./yocto-docs-venv/bin/activate -python3 -m pip install sphinx sphinx_rtd_theme pyyaml sphinx-copybutton 'sphinxcontrib-svg2pdfconverter>=2.0.0' +python3 -m pip install sphinx sphinx_rtd_theme pyyaml sphinx-copybutton sphinx-design sphinx-tags 'sphinxcontrib-svg2pdfconverter>=2.0.0'
Signature · 1 line
2.55.0
Re: [docs] [PATCH 2/8] tools/host_packages_scripts/pip3_docs.sh: update for sphinx-tags
Hi Antonin,
Quoted 4 lines · Antonin Godard via lists.yoctoproject.org
To prepare for the sphinx-tags addition, update the container build scripts and add sphinx-tag, as well as sphinx-design which is a dependency of sphinx-tags.
I was wondering why we need to make the dependency explicit if it's truly a dependency. It's only an *optional* dependency, hence why we need to explicitly install it, it'd have been nice to say that in the commit log and what we plan on using sphinx-design for.
Same remark for the Pipfile patch before. I would actually just squash patch 1 and 2 together as they really are for the same purpose. Possibly even patch 3 as 1+2 don't make sense without 3.
Cheers,
Quentin
Re: [docs] [PATCH 2/8] tools/host_packages_scripts/pip3_docs.sh: update for sphinx-tags
Hi,
Quoted 8 lines · Quentin Schulz via docs
Hi Antonin,
Quoted 4 lines · Antonin Godard via lists.yoctoproject.org
To prepare for the sphinx-tags addition, update the container build scripts and add sphinx-tag, as well as sphinx-design which is a dependency of sphinx-tags.
Quoted 4 lines
I was wondering why we need to make the dependency explicit if it's truly a dependency. It's only an *optional* dependency, hence why we need to explicitly install it, it'd have been nice to say that in the commit log and what we plan on using sphinx-design for.
Indeed, I forgot to detail why: sphinx-tags picks sphinx-design when it is installed and uses it to generate badges in CSS. It isn't used for anything else so I didn't add it as part of the extensions.
Quoted 3 lines
Same remark for the Pipfile patch before. I would actually just squash patch 1 and 2 together as they really are for the same purpose. Possibly even patch 3 as 1+2 don't make sense without 3.
Yeah, that makes sense, will squash and amend to detail why we have sphinx-design.
Antonin
PATCH 3/8 conf.py: enable the sphinx-tags extension
In reply to Antonin GodardThe sphinx-tags extension can be used to add tags to document, which then creates a section of the documentation with a list of tags which group documents. This should help users finding the different documents across the Yocto Project documentation which fall under a common category.
Update the Makefile to remove the generated _tags/ directory on a make clean, and the .gitignore.
--- documentation/.gitignore | 1 + documentation/Makefile | 2 +- documentation/conf.py | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-)
documentation/.gitignore +1 -0
@@ -1,5 +1,6 @@ sphinx/__pycache__ _build/ +_tags/ Pipfile.lock poky.yaml sphinx-static/switchers.js
documentation/Makefile +1 -1
@@ -33,7 +33,7 @@ publish: Makefile checks epub latexpdf html singlehtml sed -i -e '[email protected]#@singleindex.html#@g' $(BUILDDIR)/$(DESTDIR)/singleindex.html clean: - @rm -rf $(BUILDDIR) poky.yaml sphinx-static/switchers.js releases.rst releases.json + @rm -rf $(BUILDDIR) _tags/ poky.yaml sphinx-static/switchers.js releases.rst releases.json checks: $(SOURCEDIR)/tools/check-glossaries --docs-dir $(SOURCEDIR)
documentation/conf.py +8 -0
@@ -50,6 +50,7 @@ extensions = [ 'sphinx.ext.extlinks', 'sphinx.ext.intersphinx', 'sphinx_copybutton', + 'sphinx_tags', 'sphinxcontrib.rsvgconverter', 'yocto-vars' ]
@@ -260,3 +261,10 @@ copybutton_prompt_is_regexp = True copybutton_only_copy_prompt_lines = True copybutton_remove_prompts = True copybutton_line_continuation_character = "\\" + +# -- sphinx_tags configuration ----------------------------------------------- + +tags_create_tags = True +tags_page_title = "Tag" +tags_page_header = "Document(s) with this tag" +tags_create_badges = True
Signature · 1 line
2.55.0
Re: [docs] [PATCH 3/8] conf.py: enable the sphinx-tags extension
Hi Antonin,
Quoted 54 lines · Antonin Godard via lists.yoctoproject.org
The sphinx-tags extension can be used to add tags to document, which then creates a section of the documentation with a list of tags which group documents. This should help users finding the different documents across the Yocto Project documentation which fall under a common category.
Update the
Makefileto remove the generated _tags/ directory on a make clean, and the .gitignore.Signed-off-by Antonin Godard <[email protected]>--- documentation/.gitignore | 1 + documentation/Makefile | 2 +- documentation/conf.py | 8 ++++++++ 3 files changed, 10 insertions(+), 1 deletion(-)documentation/.gitignore +1
-0@@ -1,5 +1,6 @@ sphinx/__pycache__ _build/ +_tags/ Pipfile.lock poky.yaml sphinx-static/switchers.jsdocumentation/Makefile +1
-1@@ -33,7 +33,7 @@ publish: Makefile checks epub latexpdf html singlehtml sed -i -e '[email protected]#@singleindex.html#@g' $(BUILDDIR)/$(DESTDIR)/singleindex.html clean: - @rm -rf $(BUILDDIR) poky.yaml sphinx-static/switchers.js releases.rst releases.json + @rm -rf $(BUILDDIR) _tags/ poky.yaml sphinx-static/switchers.js releases.rst releases.json checks: $(SOURCEDIR)/tools/check-glossaries --docs-dir $(SOURCEDIR)documentation/conf.py +1
-0@@ -50,6 +50,7 @@ extensions = [ 'sphinx.ext.extlinks', 'sphinx.ext.intersphinx', 'sphinx_copybutton', + 'sphinx_tags', 'sphinxcontrib.rsvgconverter', 'yocto-vars' ]
documentation/conf.py copybutton_prompt_is_regexp = True · line 270
Quoted 10 lines
documentation/conf.py +7
-0@@ -260,3 +261,10 @@ copybutton_prompt_is_regexp = True copybutton_only_copy_prompt_lines = True copybutton_remove_prompts = True copybutton_line_continuation_character = "\\" + +# -- sphinx_tags configuration ----------------------------------------------- + +tags_create_tags = True +tags_page_title = "Tag" +tags_page_header = "Document(s) with this tag" +tags_create_badges = True
suggestion: set tags_output_dir to $(BUILDDIR) (maybe /_tags also?)
This should allow us to avoid having to update our Makefile and .gitignore? It's also where we put build artifacts so it makes much more sense IMO.
Looks ok to me otherwise,
Cheers,
Quentin
Re: [docs] [PATCH 3/8] conf.py: enable the sphinx-tags extension
Hi,
On Fri Nov 20, 2026 at 6:31 PM CET, Quentin Schulz via docs wrote:
[...]
Quoted 5 lines
suggestion: set
tags_output_dirto $(BUILDDIR) (maybe /_tags also?)This should allow us to avoid having to update our
Makefileand .gitignore? It's also where we put build artifacts so it makes much more sense IMO.
Makes sense, I'll try moving the directory there
Antonin
Re: [docs] [PATCH 3/8] conf.py: enable the sphinx-tags extension
Hi,
Quoted 11 lines · Antonin Godard
Hi,
On Fri Nov 20, 2026 at 6:31 PM CET, Quentin Schulz via docs wrote:
[...]Quoted 5 lines
suggestion: set
tags_output_dirto $(BUILDDIR) (maybe /_tags also?)This should allow us to avoid having to update our
Makefileand .gitignore? It's also where we put build artifacts so it makes much more sense IMO.Makes sense, I'll try moving the directory there
Hm, we can't do that because the _tags/ directory contains rST files (generated by the extension), and we need Sphinx to be able to locate them. However, we have:
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'boilerplate.rst']
so Sphinx could ever match these files if they were in _build/. And exclude_patterns can only contain glob-style pattern, and takes priority over include_patterns.
Antonin
Re: [docs] [PATCH 3/8] conf.py: enable the sphinx-tags extension
Hi Antonin,
Quoted 15 lines · Antonin Godard
Hi,
Quoted 11 lines · Antonin Godard
Hi,
On Fri Nov 20, 2026 at 6:31 PM CET, Quentin Schulz via docs wrote:
[...]Quoted 5 lines
suggestion: set
tags_output_dirto $(BUILDDIR) (maybe /_tags also?)This should allow us to avoid having to update our
Makefileand .gitignore? It's also where we put build artifacts so it makes much more sense IMO.Makes sense, I'll try moving the directory there
Quoted 9 lines
Hm, we can't do that because the _tags/ directory contains rST files (generated by the extension), and we need Sphinx to be able to locate them. However, we have:
exclude_patterns= ['_build', 'Thumbs.db', '.DS_Store', 'boilerplate.rst']so Sphinx could ever match these files if they were in _build/. And
exclude_patternscan only contain glob-style pattern, and takes priority overinclude_patterns.
Ah yes, I've been hit by this in my boards' user manual as well in a different context (autogenerated images need to be in the source tree so they can be picked up by sphinx). Thanks for giving it a try!
Cheers,
Quentin
PATCH 4/8 sphinx-static/theme_overrides.css: customize tags appearance
In reply to Antonin GodardCustomize the tags appearance so that they match our color theme. This is a customization of the sphinx-design badges CSS the sphinx-tags extension makes use of when badges are enabled.
--- documentation/sphinx-static/theme_overrides.css | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
documentation/sphinx-static/theme_overrides.css +23 -0
@@ -140,6 +140,29 @@ section#welcome-to-the-yocto-project-documentation p.caption { border-radius: 0 0 4px 4px; } +/* Custom sphinx-design badge */ +.sd-badge { + display: inline-block; + padding: .35em .65em; + font-size: .75em; + font-weight: 700; + line-height: 1; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: .25rem; + color: #00557d !important; + background-color: #fcfcfc; + border-color: #00557d; + border-width: 1px; + border-style: solid; +} + +/* Remove the underline from the link in the badge */ +a.sd-badge { + text-decoration: none; +} + @media screen { .wy-nav-content { max-width: 1000px;
Signature · 1 line
2.55.0
PATCH 5/8 Makefile: use splithtml tag for html target
In reply to Antonin GodardSphinx has the ability to include content based on tags in the documentation with the '.. only::' directive. As '.. only:: html' is common to _all_ HTML-based documents (html, singlehtml, epub), there was no way to differentiate the split HTML build from the others.
For that reason, add the splithtml tag when building it. The goal is be able to to include content _only_ for this build type.
--- documentation/Makefile | 4 ++++ 1 file changed, 4 insertions(+)
documentation/Makefile +4 -0
@@ -55,6 +55,10 @@ latexpdf: all: html epub latexpdf +html: + $(SOURCEDIR)/set_versions.py + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" --tag splithtml $(SPHINXOPTS) + %: $(SOURCEDIR)/set_versions.py @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
Signature · 1 line
2.55.0
Re: [docs] [PATCH 5/8] Makefile: use splithtml tag for html target
Hi Antonin,
Quoted 8 lines · Antonin Godard via lists.yoctoproject.org
Sphinx has the ability to include content based on tags in the documentation with the '.. only::' directive. As '.. only:: html' is common to _all_ HTML-based documents (html, singlehtml, epub), there was no way to differentiate the split HTML build from the others.
For that reason, add the splithtml tag when building it. The goal is be able to to include content _only_ for this build type.
question: what's splithtml?
Just reading it, I have no clue what it means? EDIT: ok, after reading it twice, I understand you meant split as opposed to singlehtml.
builders actually already set a tag, c.f. https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-only so you could simply use
.. only:: builder_html
The benefit is no new Makefile rule :)
What do you think?
Cheers,
Quentin
Re: [docs] [PATCH 5/8] Makefile: use splithtml tag for html target
Quoted 21 lines · Quentin Schulz via docs
Hi Antonin,
Quoted 8 lines · Antonin Godard via lists.yoctoproject.org
Sphinx has the ability to include content based on tags in the documentation with the '.. only::' directive. As '.. only:: html' is common to _all_ HTML-based documents (html, singlehtml, epub), there was no way to differentiate the split HTML build from the others.
For that reason, add the splithtml tag when building it. The goal is be able to to include content _only_ for this build type.
question: what's splithtml?
Just reading it, I have no clue what it means? EDIT: ok, after reading it twice, I understand you meant split as opposed to singlehtml.
builders actually already set a tag, c.f.
https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-only
so you could simply use
Quoted 5 lines
.. only::
builder_htmlThe benefit is no new
Makefilerule :)What do you think?
Oh great, I didn't see this and this should make things simpler, thanks :)
Antonin
PATCH 6/8 docs-wide: tag sections
In reply to Antonin GodardMake use of the sphinx-tags extension to tag section with category.
After this commit, the following tags (with appearance count) are created:
- app-dev (2)
- build-configuration (7)
- cli-tool (8)
- config-fragments (2)
- contributing (5)
- conventions (2)
- debugging (7)
- devtool (3)
- distro (1)
- fakeroot (1)
- flashing (2)
- hash-equivalence (2)
- host-configuration (12)
- image-customization (2)
- libraries (2)
- license-compliance (2)
- linux-kernel (1)
- multiconfig (1)
- oe-concepts (5)
- packaging (1)
- profiling (1)
- pseudo (1)
- qemu (1)
- release-process (2)
- reproducibility (1)
- runtime-testing (2)
- sdk (1)
- security (7)
- sstate (3)
- target-configuration (5)
- toolchains (4)
- wic (2)
The rationale was to create distinctive tags that could allow sections from different parts of the documentation to be linked together.
Some tags only have one count: those still improve discoverability when looking at the tags overview page.
Tags are only compatible with the regular HTML build (not singlehtml or epub). For that reason use the .. only directive to show them only for splithtml.
--- documentation/contributor-guide/identify-component.rst | 4 ++++ documentation/contributor-guide/recipe-style-guide.rst | 4 ++++ documentation/contributor-guide/report-defect.rst | 4 ++++ documentation/contributor-guide/submit-changes.rst | 4 ++++ documentation/conventions.rst | 4 ++++ documentation/dev-manual/bblock.rst | 3 +++ documentation/dev-manual/bmaptool.rst | 4 ++++ documentation/dev-manual/build-quality.rst | 3 +++ documentation/dev-manual/building.rst | 3 +++ documentation/dev-manual/creating-fragments.rst | 4 ++++ documentation/dev-manual/custom-distribution.rst | 4 ++++ documentation/dev-manual/custom-template-configuration-directory.rst | 3 +++ documentation/dev-manual/customizing-images.rst | 3 +++ documentation/dev-manual/debugging.rst | 3 +++ documentation/dev-manual/development-shell.rst | 3 +++ documentation/dev-manual/device-manager.rst | 3 +++ documentation/dev-manual/devtool.rst | 4 ++++ documentation/dev-manual/disk-space.rst | 4 ++++ documentation/dev-manual/efficiently-fetching-sources.rst | 3 +++ documentation/dev-manual/error-reporting-tool.rst | 3 +++ documentation/dev-manual/external-scm.rst | 3 +++ documentation/dev-manual/external-toolchain.rst | 4 ++++ documentation/dev-manual/gobject-introspection.rst | 3 +++ documentation/dev-manual/hashequivserver.rst | 4 ++++ documentation/dev-manual/init-manager.rst | 4 ++++ documentation/dev-manual/layers.rst | 3 +++ documentation/dev-manual/libraries.rst | 3 +++ documentation/dev-manual/licenses.rst | 3 +++ documentation/dev-manual/limiting-resources.rst | 4 ++++ documentation/dev-manual/multiconfig.rst | 4 ++++ documentation/dev-manual/new-machine.rst | 3 +++ documentation/dev-manual/new-recipe.rst | 3 +++ documentation/dev-manual/packages.rst | 3 +++ documentation/dev-manual/poky-manual-setup.rst | 4 ++++ documentation/dev-manual/prebuilt-libraries.rst | 3 +++ documentation/dev-manual/python-development-shell.rst | 3 +++ documentation/dev-manual/qemu.rst | 4 ++++ documentation/dev-manual/quilt.rst | 3 +++ documentation/dev-manual/sbom.rst | 4 ++++ documentation/dev-manual/speeding-up-build.rst | 3 +++ documentation/dev-manual/sstate-mirrors-setup.rst | 4 ++++ documentation/dev-manual/start.rst | 4 ++++ documentation/dev-manual/temporary-source-code.rst | 4 ++++ documentation/dev-manual/upgrading-recipes.rst | 3 +++ documentation/dev-manual/wayland.rst | 3 +++ documentation/dev-manual/wic.rst | 3 +++ documentation/dev-manual/x32-psabi.rst | 3 +++ documentation/kernel-dev/index.rst | 4 ++++ documentation/overview-manual/concepts.rst | 4 ++++ documentation/overview-manual/development-environment.rst | 4 ++++ documentation/overview-manual/yp-intro.rst | 4 ++++ documentation/profile-manual/index.rst | 4 ++++ documentation/ref-manual/devtool-reference.rst | 4 ++++ documentation/ref-manual/fragments.rst | 4 ++++ documentation/ref-manual/kickstart.rst | 4 ++++ documentation/ref-manual/release-process.rst | 4 ++++ documentation/sdk-manual/index.rst | 4 ++++ documentation/security-manual/build-process-security.rst | 4 ++++ documentation/security-manual/read-only-rootfs.rst | 3 +++ documentation/security-manual/securing-images.rst | 3 +++ documentation/security-manual/sstate-signing.rst | 4 ++++ documentation/security-manual/vulnerabilities.rst | 3 +++ documentation/security-reference/index.rst | 4 ++++ documentation/test-manual/ptest.rst | 4 ++++ documentation/test-manual/reproducible-builds.rst | 4 ++++ documentation/test-manual/runtime-testing.rst | 3 +++ documentation/test-manual/test-process.rst | 4 ++++ documentation/toaster-manual/index.rst | 4 ++++ 68 files changed, 242 insertions(+)
documentation/contributor-guide/identify-component.rst +4 -0
@@ -20,3 +20,7 @@ If the issue is in the core metadata layer (OpenEmbedded-Core) or in BitBake, issues can be reported in the :yocto_bugs:`Yocto Project Bugzilla <>`. The :yocto_lists:`yocto </g/yocto>` mailing list is a general "catch-all" location where questions can be sent if you can't work out where something should go. + +.. only:: splithtml + + .. tags:: contributing
documentation/contributor-guide/recipe-style-guide.rst +4 -0
@@ -440,3 +440,7 @@ you can use `Git` configuration settings:: .. note:: Patches generated or updated by ``devtool`` are created with no signature. + +.. only:: splithtml + + .. tags:: contributing, conventions
documentation/contributor-guide/report-defect.rst +4 -0
@@ -65,3 +65,7 @@ medium and long term. We do encourage people to file bugs so issues are at least known about. It helps other users when they find somebody having the same issue as they do, and an issue that is unknown is much less likely to ever be fixed! + +.. only:: splithtml + + .. tags:: contributing
documentation/contributor-guide/submit-changes.rst +4 -0
@@ -898,3 +898,7 @@ Foundation policy, specifically: Additionally, the contributor should provide notice and attribution of such third party rights, along with information about the applicable license terms, with their contribution. + +.. only:: splithtml + + .. tags:: contributing
documentation/conventions.rst +4 -0
@@ -54,3 +54,7 @@ command: # This is a comment, not a command to run as root. $ bitbake core-image-minimal + +.. only:: splithtml + + .. tags:: conventions
documentation/dev-manual/bblock.rst +3 -0
@@ -127,3 +127,6 @@ the following:: SIGGEN_LOCKEDSIGS_x86_64 += "python3-native:do_create_manifest:24f0abbec221d27bbb2909b6e846288b12cab419f1faf9f5006ed80423d37e28" SIGGEN_LOCKEDSIGS_x86_64 += "python3-native:do_addto_recipe_sysroot:bcb6a1905f113128de3f88d702b706befd6a786267c045ee82532759a7c214d7" +.. only:: splithtml + + .. tags:: host-configuration, cli-tool
documentation/dev-manual/bmaptool.rst +4 -0
@@ -64,3 +64,7 @@ For help on the ``bmaptool`` command, use the following command:: is simply a transitional package which exists solely to ensure backward compatibility and smooth upgrades from older installations. + +.. only:: splithtml + + .. tags:: cli-tool, flashing
documentation/dev-manual/build-quality.rst +3 -0
@@ -406,3 +406,6 @@ Here is a sample screenshot of the interface: .. image:: figures/buildhistory-web.png :width: 100% +.. only:: splithtml + + .. tags:: cli-tool, build-configuration
documentation/dev-manual/building.rst +3 -0
@@ -852,3 +852,6 @@ directory: those recipes to set :term:`SRCREV` to specific versions of the software. +.. only:: splithtml + + .. tags:: build-configuration
documentation/dev-manual/creating-fragments.rst +4 -0
@@ -144,3 +144,7 @@ You can then use the :ref:`ref-bitbake-config-build-enable-fragment` command to set a value to the ``CUSTOM_VARIABLE`` variable:: $ bitbake-config-build enable-fragment custom-builtin-fragment/somevalue + +.. only:: splithtml + + .. tags:: build-configuration, config-fragments
documentation/dev-manual/custom-distribution.rst +4 -0
@@ -139,3 +139,7 @@ This is fine, however if you do this you should keep the following in mind: - More generally, the Poky distribution configuration enables a lot more than you likely need for your production use case. You should evaluate *every* configuration choice made in your copy to determine if it is needed. + +.. only:: splithtml + + .. tags:: build-configuration, distro
documentation/dev-manual/custom-template-configuration-directory.rst +3 -0
@@ -50,3 +50,6 @@ when running the ``oe-init-build-env`` setup script. These can be edited further if needed to improve or change the build configurations available to the users, and provide useful summaries and detailed usage notes. +.. only:: splithtml + + .. tags:: build-configuration
documentation/dev-manual/customizing-images.rst +3 -0
@@ -220,3 +220,6 @@ unsets the variable in a configuration file:: Having no default hostname in the filesystem is suitable for environments that use dynamic hostnames such as virtual machines. +.. only:: splithtml + + .. tags:: image-customization
documentation/dev-manual/debugging.rst +3 -0
@@ -1276,3 +1276,6 @@ Here are some other tips that you might find useful: that are purely internal and have a limited scope (e.g. internal variables used to implement a single ``.bbclass`` file). +.. only:: splithtml + + .. tags:: debugging
documentation/dev-manual/development-shell.rst +3 -0
@@ -80,3 +80,6 @@ terminal window. - It is also worth noting that ``devshell`` still works over X11 forwarding and similar situations. +.. only:: splithtml + + .. tags:: debugging
documentation/dev-manual/device-manager.rst +3 -0
@@ -72,3 +72,6 @@ your :ref:`structure-build-conf-local.conf` configuration file:: # VIRTUAL-RUNTIME_dev_manager = "busybox-mdev" # VIRTUAL-RUNTIME_dev_manager = "systemd" +.. only:: splithtml + + .. tags:: build-configuration
documentation/dev-manual/devtool.rst +4 -0
@@ -1760,3 +1760,7 @@ target machine. device (e.g. RPM or OPKG). Consequently, you should not intermingle ``devtool deploy-target`` and package manager operations on the target device. Doing so could result in a conflicting set of files. + +.. only:: splithtml + + .. tags:: app-dev, cli-tool, devtool
documentation/dev-manual/disk-space.rst +4 -0
@@ -59,3 +59,7 @@ Run ``sstate-cache-management.py`` for more details about this script. As this command is much more cautious and selective, removing only cache files, it will execute much slower than the simple ``find`` command described above. Therefore, it may not be your best option to trim huge cache directories. + +.. only:: splithtml + + .. tags:: host-configuration
documentation/dev-manual/efficiently-fetching-sources.rst +3 -0
@@ -66,3 +66,6 @@ variation of the BitBake command guarantees that you have all the sources for that BitBake target should you disconnect from the Internet and want to do the build later offline. +.. only:: splithtml + + .. tags:: host-configuration
documentation/dev-manual/error-reporting-tool.rst +3 -0
@@ -81,3 +81,6 @@ If you want to set up your own error reporting server, you can obtain the code from the Git repository at :yocto_git:`/error-report-web/`. Instructions on how to set it up are in the README document. +.. only:: splithtml + + .. tags:: cli-tool, contributing, debugging
documentation/dev-manual/external-scm.rst +3 -0
@@ -69,3 +69,6 @@ development source for numerous packages. The ``poky-bleeding`` distribution is not tested on a regular basis. Keep this in mind if you use it. +.. only:: splithtml + + .. tags:: host-configuration
documentation/dev-manual/external-toolchain.rst +4 -0
@@ -40,3 +40,7 @@ supporting GNU toolchains released by ARM. You can find further information by reading about the :term:`TCMODE` variable in the Yocto Project Reference Manual's variable glossary. + +.. only:: splithtml + + .. tags:: toolchains
documentation/dev-manual/gobject-introspection.rst +3 -0
@@ -153,3 +153,6 @@ Here are know issues in GObject Introspection Support: under 32-bit host machines. In particular, "qemumips64" is known to not work under i686. +.. only:: splithtml + + .. tags:: target-configuration
documentation/dev-manual/hashequivserver.rst +4 -0
@@ -127,3 +127,7 @@ This will make Hash Equivalence related changes be printed on the console, such as:: NOTE: Task <recipe.bb>:do_<task> unihash changed to dc0da29c62a2d78d8d853fbb9c173778fe7d6fa4a68c67494b17afffe8ca1894 + +.. only:: splithtml + + .. tags:: hash-equivalence, host-configuration
documentation/dev-manual/init-manager.rst +4 -0
@@ -160,3 +160,7 @@ increasing levels of complexity and functionality: .. [#footnote-systemd-size] Using systemd increases the ``core-image-minimal`` image size by 160\% for ``qemux86-64`` on Mickledore (4.2), compared to SysVinit. + +.. only:: splithtml + + .. tags:: target-configuration
documentation/dev-manual/layers.rst +3 -0
@@ -986,3 +986,6 @@ above: Both the ``create-layers-setup`` and the ``setup-layers`` provided several additional options that customize their behavior - you are welcome to study them via ``--help`` command line parameter. +.. only:: splithtml + + .. tags:: oe-concepts
documentation/dev-manual/libraries.rst +3 -0
@@ -236,3 +236,6 @@ the following in your recipe:: DEPENDS = "clutter-1.8" +.. only:: splithtml + + .. tags:: libraries, target-configuration
documentation/dev-manual/licenses.rst +3 -0
@@ -531,3 +531,6 @@ the license from the fetched source:: NO_GENERIC_LICENSE[Firmware-Abilis] = "LICENSE.Abilis.txt" +.. only:: splithtml + + .. tags:: license-compliance, target-configuration
documentation/dev-manual/limiting-resources.rst +4 -0
@@ -147,3 +147,7 @@ details. This variable has no effect when any of :term:`BB_PRESSURE_MAX_CPU`, :term:`BB_PRESSURE_MAX_IO` or :term:`BB_PRESSURE_MAX_MEMORY` is set, as it was designed for systems that do not have pressure information available. + +.. only:: splithtml + + .. tags:: host-configuration
documentation/dev-manual/multiconfig.rst +4 -0
@@ -310,3 +310,7 @@ We can then add a :ref:`ref-tasks-install` task to ``my-parent-firmware``:: Doing the above will allow the firmware binary to be transferred and packaged into the Linux context and rootfs. + +.. only:: splithtml + + .. tags:: multiconfig, toolchains
documentation/dev-manual/new-machine.rst +3 -0
@@ -116,3 +116,6 @@ Here is an example for "qemuarm" machine:: DISPLAY_DPI=150 DISPLAY_SUBPIXEL_ORDER=vrgb +.. only:: splithtml + + .. tags:: oe-concepts
documentation/dev-manual/new-recipe.rst +3 -0
@@ -1676,3 +1676,6 @@ in the BitBake User Manual. might wish to use. If in doubt, you should check with multiple implementations --- including those from BusyBox. +.. only:: splithtml + + .. tags:: oe-concepts
documentation/dev-manual/packages.rst +3 -0
@@ -1171,3 +1171,6 @@ packages:: PACKAGE_ADD_METADATA_IPK = "Vendor: CustomIpk\nGroup:Applications/Spreadsheets" +.. only:: splithtml + + .. tags:: packaging
documentation/dev-manual/poky-manual-setup.rst +4 -0
@@ -160,3 +160,7 @@ an entire Linux distribution, including the toolchain, from source. #. **Exit QEMU:** Exit QEMU by either clicking on the shutdown icon or by typing ``Ctrl-C`` in the QEMU transcript window from which you evoked QEMU. + +.. only:: splithtml + + .. tags:: build-configuration
documentation/dev-manual/prebuilt-libraries.rst +3 -0
@@ -207,3 +207,6 @@ versioned library example. The "magic" is setting the :term:`SOLIBS` and install -m 0755 ${UNPACKDIR}/libfoo.so ${D}${libdir} } +.. only:: splithtml + + .. tags:: libraries
documentation/dev-manual/python-development-shell.rst +3 -0
@@ -47,3 +47,6 @@ controls what type of shell is opened. When you are finished using ``pydevshell``, you can exit the shell either by using Ctrl+d or closing the terminal window. +.. only:: splithtml + + .. tags:: debugging
documentation/dev-manual/qemu.rst +4 -0
@@ -477,3 +477,7 @@ command line: readable or writable and "slirp-enabled". - ``publicvnc``: Enables a VNC server open to all hosts. + +.. only:: splithtml + + .. tags:: debugging, qemu
documentation/dev-manual/quilt.rst +3 -0
@@ -87,3 +87,6 @@ Follow these general steps: SRC_URI += "file://my_changes.patch" +.. only:: splithtml + + .. tags:: app-dev, cli-tool
documentation/dev-manual/sbom.rst +4 -0
@@ -96,3 +96,7 @@ See also Joshua Watt's presentations at FOSDEM 2023 and `SPDX in the Yocto Project <https://fosdem.org/2024/schedule/event/fosdem-2024-3318-spdx-in-the-yocto-project/>`__ at FOSDEM 2024. + +.. only:: splithtml + + .. tags:: license-compliance, security
documentation/dev-manual/speeding-up-build.rst +3 -0
@@ -107,3 +107,6 @@ that can help you speed up the build: the static libraries. If so, you might need to exclude them as well. +.. only:: splithtml + + .. tags:: host-configuration
documentation/dev-manual/sstate-mirrors-setup.rst +4 -0
@@ -192,3 +192,7 @@ module, the following logs are shown: Some artifacts may be found (returning 200 above). Some others will not be found because the expected artifacts on the client is not present on the server, in which case the client will rebuild the task (and its dependencies). + +.. only:: splithtml + + .. tags:: host-configuration, sstate
documentation/dev-manual/start.rst +4 -0
@@ -537,3 +537,7 @@ Where To Go From Here - Configure your build: follow :ref:`overview-manual/concepts:User Configuration`. - Learn how and what to build with :term:`BitBake`: follow :doc:`/dev-manual/building`. + +.. only:: splithtml + + .. tags:: host-configuration
documentation/dev-manual/temporary-source-code.rst +4 -0
@@ -73,3 +73,7 @@ build system uses to build the package would be as follows:: To learn how to use ``devtool`` to add, modify, upgrade recipes and more, see the :ref:`dev-manual/devtool:Using the \`\`devtool\`\` command-line tool` section of this Development Tasks Manual. + +.. only:: splithtml + + .. tags:: debugging
documentation/dev-manual/upgrading-recipes.rst +3 -0
@@ -397,3 +397,6 @@ To manually upgrade recipe versions, follow these general steps: builds work and any testing is successful, you can create commits for any changes in the layer holding your upgraded recipe. +.. only:: splithtml + + .. tags:: devtool
documentation/dev-manual/wayland.rst +3 -0
@@ -88,3 +88,6 @@ the CLI, you need to do the following after your image is built: user@machine:~$ weston +.. only:: splithtml + + .. tags:: image-customization
documentation/dev-manual/wic.rst +3 -0
@@ -795,3 +795,6 @@ the existing kernel, and then inserts a new kernel: Using ``bmaptool`` is generally 10 to 20 times faster than using ``dd``. +.. only:: splithtml + + .. tags:: cli-tool, flashing, wic
documentation/dev-manual/x32-psabi.rst +3 -0
@@ -52,3 +52,6 @@ the x32 psABI. Here is an example:: $ bitbake core-image-sato +.. only:: splithtml + + .. tags:: target-configuration
documentation/kernel-dev/index.rst +4 -0
@@ -17,4 +17,8 @@ Yocto Project Linux Kernel Development Manual maint-appx faq +.. only:: splithtml + + .. tags:: linux-kernel + .. include:: /boilerplate.rst
documentation/overview-manual/concepts.rst +4 -0
@@ -2371,3 +2371,7 @@ executes to accomplish that. .. image:: svg/bitbake_tasks_map.* :width: 100% + +.. only:: splithtml + + .. tags:: fakeroot, hash-equivalence, oe-concepts, pseudo, toolchains, sstate
documentation/overview-manual/development-environment.rst +4 -0
@@ -630,3 +630,7 @@ source licensing during the lifecycle of a product created using the Yocto Project, see the ":ref:`dev-manual/licenses:maintaining open source license compliance during your product's lifecycle`" section in the Yocto Project Development Tasks Manual. + +.. only:: splithtml + + .. tags:: host-configuration
documentation/overview-manual/yp-intro.rst +4 -0
@@ -751,3 +751,7 @@ helpful for getting started: dependencies for libraries or for other recipes as well as configuration and compilation options. Related recipes are consolidated into a layer. + +.. only:: splithtml + + .. tags:: oe-concepts
documentation/profile-manual/index.rst +4 -0
@@ -15,4 +15,8 @@ Yocto Project Profiling and Tracing Manual usage examples +.. only:: splithtml + + .. tags:: debugging, profiling + .. include:: /boilerplate.rst
documentation/ref-manual/devtool-reference.rst +4 -0
@@ -690,3 +690,7 @@ and create a remote debugging configuration for the recipe. Similarly to For further details on the ``devtool ide-sdk`` command, see the ":doc:`/sdk-manual/extensible`" chapter in the Yocto Project Application Development and the Extensible Software Development Kit (eSDK) manual. + +.. only:: splithtml + + .. tags:: devtool
documentation/ref-manual/fragments.rst +4 -0
@@ -289,3 +289,7 @@ The ``core/yocto-autobuilder/multilib-x86-lib64`` fragment enables :ref:`multilib <dev-manual/libraries:Combining Multiple Versions of Library Files into One Image>` configurations for supporting 64-bit libraries on 32-bit :wikipedia:`X86 <X86>` builds. + +.. only:: splithtml + + .. tags:: cli-tool, config-fragments
documentation/ref-manual/kickstart.rst +4 -0
@@ -243,3 +243,7 @@ the current file. For example: include common.wks.inc bootloader --configfile="directdisk-bootloader-config.cfg" + +.. only:: splithtml + + .. tags:: wic
documentation/ref-manual/release-process.rst +4 -0
@@ -389,3 +389,7 @@ takes the Autobuilder workers several hours. Finally, in addition to the Autobuilder's tests, the Yocto Project QA team also performs testing on a variety of platforms, which includes actual hardware, to ensure expected results. + +.. only:: splithtml + + .. tags:: release-process
documentation/sdk-manual/index.rst +4 -0
@@ -18,4 +18,8 @@ Yocto Project Application Development and Software Development Kits (SDK/eSDK) M appendix-customizing appendix-customizing-standard +.. only:: splithtml + + .. tags:: sdk, toolchains + .. include:: /boilerplate.rst
documentation/security-manual/build-process-security.rst +4 -0
@@ -48,3 +48,7 @@ consider that: being set up in such a way that if such an issue were ever discovered, which at some point could happen, the build environments themselves could be simply destroyed and rebuilt cleanly, i.e. they're disposable. + +.. only:: splithtml + + .. tags:: security
documentation/security-manual/read-only-rootfs.rst +3 -0
@@ -87,3 +87,6 @@ make sure that you configure processes and applications that attempt these types of writes do so to directories with write access (e.g. ``/tmp`` or ``/var/run``). +.. only:: splithtml + + .. tags:: security
documentation/security-manual/securing-images.rst +3 -0
@@ -138,3 +138,6 @@ The Yocto Project provides tools for making your image more secure. You can find these tools in the ``meta-security`` layer of the :yocto_git:`Yocto Project Source Repositories <>`. +.. only:: splithtml + + .. tags:: security
documentation/security-manual/sstate-signing.rst +4 -0
@@ -283,3 +283,7 @@ Let's verify that signature verification works: As you can see, this does not prevent :term:`BitBake` from continuing, but the real task is executed instead of re-using the shared state. + +.. only:: splithtml + + .. tags:: host-configuration, security, sstate
documentation/security-manual/vulnerabilities.rst +3 -0
@@ -515,3 +515,6 @@ Example of output for a CVE rejected by the Linux CNA: "description": "Rejected by CNA" } +.. only:: splithtml + + .. tags:: security
documentation/security-reference/index.rst +4 -0
@@ -11,4 +11,8 @@ Yocto Project Security Reference security-team reporting-vulnerabilities +.. only:: splithtml + + .. tags:: security + .. include:: /boilerplate.rst
documentation/test-manual/ptest.rst +4 -0
@@ -184,3 +184,7 @@ test. Here is what you have to do for each recipe: ``install-ptest`` to run the tests. If this is not enough, you need to create a ``do_install_ptest`` function and make sure it gets called after the "make install-ptest" completes. + +.. only:: splithtml + + .. tags:: runtime-testing
documentation/test-manual/reproducible-builds.rst +4 -0
@@ -165,3 +165,7 @@ You can have finer control on the test with: - :term:`OEQA_REPRODUCIBLE_TEST_TARGET`: lists recipes to be built, - :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`: lists recipes that will be built using :ref:`Shared State <overview-manual/concepts:Shared State>`. + +.. only:: splithtml + + .. tags:: reproducibility
documentation/test-manual/runtime-testing.rst +3 -0
@@ -598,3 +598,6 @@ Once the test is complete, the packages are removed from the DUT:: ] } +.. only:: splithtml + + .. tags:: runtime-testing
documentation/test-manual/test-process.rst +4 -0
@@ -97,3 +97,7 @@ The next steps include: - A final decision on whether to release is made by the YP TSC who have final oversight on release readiness. + +.. only:: splithtml + + .. tags:: release-process
documentation/toaster-manual/index.rst +4 -0
@@ -15,4 +15,8 @@ Toaster User Manual setup-and-use reference +.. only:: splithtml + + .. tags:: host-configuration + .. include:: /boilerplate.rst
Signature · 1 line
2.55.0
PATCH 7/8 index.rst: link to the tags overview page for splithtml
In reply to Antonin GodardThe sphinx-tag extension only works for the splithtml build type. However, adding a toctree entry with the '.. only::' directive is not possible with Sphinx (see the warning admonition in [1]).
For that reason, only add a sentence that references this tag overview page.
[1]: https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-only
--- documentation/index.rst | 11 +++++++++++ 1 file changed, 11 insertions(+)
documentation/index.rst +11 -0
@@ -41,6 +41,17 @@ Additional introductory resources. - `Technical Overview (external website) <https://www.yoctoproject.org/development/technical-overview/>`__ - `Tips and Tricks Wiki (external website) <https://wiki.yoctoproject.org/wiki/TipsAndTricks>`__ +.. + The conditional note below cannot hold a toctree directive properly: the + toctree addition would appear in all documentation types (singlehtml, pdf, + ...). Use a bare sentence instead as tags are only supported in the "html" + sphinx build mode. + +.. only:: splithtml + + Sections of this documentation are also grouped by categories with tags. An + overview is available at the following page: :ref:`tagoverview`. + Contributing to the Yocto Project =================================
Signature · 1 line
2.55.0
PATCH 8/8 standards.md: add note about document tags
In reply to Antonin GodardAdd a note on adding tags to new documents.
--- documentation/standards.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
documentation/standards.md +15 -0
@@ -137,6 +137,21 @@ Note that only "absolute" paths (starting with a '/') are allowed. The root directory of that path is documentation/, that is, :doc:`/bsp-manual/index` points at documentation/bsp-manual/index.rst. +## Tagging new sections + +When adding a new document, consider adding one or more tags at the bottom of +the file with the following format: + +```rst +.. only:: splithtml + + .. tags:: <tag1>, <tag2>, ... +``` + +When adding tags, try to use one of the existing tags (see +https://docs.yoctoproject.org/_tags/tagsindex.html#tagoverview), unless none of +these fit for the document being added. + ## Adding screenshots The preferred format for adding screenshots is
Signature · 1 line
2.55.0