Skip to content

docs: highlight code blocks as BitBake by default

Trevor Woerner yocto-docs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16brief-yoctoprojectqs: state the language of the blocks that are not BitBakedocumentation/brief-yoctoprojectqs/index.rst+6 -20 replies
2/16bsp-manual: state the language of the blocks that are not BitBakedocumentation/bsp-manual/bsp.rst+60 -200 replies
3/16contributor-guide: state the language of the blocks that are not BitBakedocumentation/contributor-guide/ai-assisted-contribution-policy.rst documentation/contributor-guide/recipe-style-guide.rst documentation/contributor-guide/submit-changes.rst+132 -440 replies
4/16dev-manual: state the language of the blocks that are not BitBakedocumentation/dev-manual/bblock.rst documentation/dev-manual/bmaptool.rst documentation/dev-manual/build-quality.rst +28 more+666 -2220 replies
5/16kernel-dev: state the language of the blocks that are not BitBakedocumentation/kernel-dev/advanced.rst documentation/kernel-dev/common.rst documentation/kernel-dev/concepts-appx.rst +1 more+228 -820 replies
6/16migration-guides: state the language of the blocks that are not BitBakedocumentation/migration-guides/migration-1.3.rst documentation/migration-guides/migration-1.4.rst documentation/migration-guides/migration-1.7.rst +16 more+133 -450 replies
7/16overview-manual: state the language of the blocks that are not BitBakedocumentation/overview-manual/concepts.rst documentation/overview-manual/development-environment.rst+42 -140 replies
8/16profile-manual: state the language of the blocks that are not BitBakedocumentation/profile-manual/intro.rst documentation/profile-manual/usage.rst+294 -980 replies
9/16ref-manual: state the language of the blocks that are not BitBakedocumentation/ref-manual/classes.rst documentation/ref-manual/devtool-reference.rst documentation/ref-manual/faq.rst +10 more+414 -1380 replies
10/16security-manual: state the language of the blocks that are not BitBakedocumentation/security-manual/vulnerabilities.rst+9 -30 replies
11/16test-manual: state the language of the blocks that are not BitBakedocumentation/test-manual/intro.rst documentation/test-manual/ptest.rst documentation/test-manual/reproducible-builds.rst +2 more+108 -360 replies
12/16toaster-manual: state the language of the blocks that are not BitBakedocumentation/toaster-manual/reference.rst documentation/toaster-manual/setup-and-use.rst documentation/toaster-manual/start.rst+130 -440 replies
13/16docs: show the examples the BitBake lexer misreads as textdocumentation/ref-manual/classes.rst documentation/ref-manual/variables.rst+30 -60 replies
14/16docs: drop the file-wide highlight directivesdocumentation/profile-manual/usage.rst documentation/toaster-manual/setup-and-use.rst documentation/toaster-manual/start.rst+0 -50 replies
15/16conf.py: default the highlight language to bitbakedocumentation/conf.py+3 -00 replies
16/16standards: describe how a code block states its languagedocumentation/standards.md+22 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/16] docs: highlight code blocks as BitBake by default

This makes BitBake the default highlight language for the manuals, as decided in [1], so most of their code is highlighted as what it is and only the blocks that are something else need to say so.

The blocks that are not BitBake get their language first, so every commit builds clean under -W on its own:

- a patch per manual, giving every block that is not BitBake an explicit language
- a patch showing as text the few BitBake examples the Pygments BitBake lexer misreads, each with a comment saying why
- a patch removing the file-wide ".. highlight::" directives, kept separate as asked
- a patch setting highlight_language in conf.py
- a patch writing the rule down in standards.md

Whether a block is BitBake was decided by asking BitBake's own parser, and the language of each remaining block by reading it.

[1] https://lore.kernel.org/r/[email protected]

Trevor Woerner (16):
brief-yoctoprojectqs: state the language of the blocks that are not
BitBake
bsp-manual: state the language of the blocks that are not BitBake
contributor-guide: state the language of the blocks that are not
BitBake
dev-manual: state the language of the blocks that are not BitBake
kernel-dev: state the language of the blocks that are not BitBake
migration-guides: state the language of the blocks that are not
BitBake
overview-manual: state the language of the blocks that are not BitBake
profile-manual: state the language of the blocks that are not BitBake
ref-manual: state the language of the blocks that are not BitBake
security-manual: state the language of the blocks that are not BitBake
test-manual: state the language of the blocks that are not BitBake
toaster-manual: state the language of the blocks that are not BitBake
docs: show the examples the BitBake lexer misreads as text
docs: drop the file-wide highlight directives
conf.py: default the highlight language to bitbake
standards: describe how a code block states its language

 documentation/brief-yoctoprojectqs/index.rst  |   8 +-
 documentation/bsp-manual/bsp.rst              |  80 +++-
 documentation/conf.py                         |   3 +
 .../ai-assisted-contribution-policy.rst       |   8 +-
 .../contributor-guide/recipe-style-guide.rst  |  24 +-
 .../contributor-guide/submit-changes.rst      | 144 +++++--
 documentation/dev-manual/bblock.rst           |  36 +-
 documentation/dev-manual/bmaptool.rst         |  24 +-
 documentation/dev-manual/build-quality.rst    |  16 +-
 documentation/dev-manual/building.rst         |  32 +-
 .../dev-manual/creating-fragments.rst         |  16 +-
 ...ustom-template-configuration-directory.rst |  12 +-
 documentation/dev-manual/debugging.rst        | 176 ++++++--
 .../dev-manual/development-shell.rst          |   8 +-
 documentation/dev-manual/devtool.rst          | 148 +++++--
 documentation/dev-manual/disk-space.rst       |   8 +-
 .../efficiently-fetching-sources.rst          |   4 +-
 .../dev-manual/error-reporting-tool.rst       |   8 +-
 .../dev-manual/gobject-introspection.rst      |   4 +-
 documentation/dev-manual/hashequivserver.rst  |   8 +-
 documentation/dev-manual/layers.rst           |  52 ++-
 documentation/dev-manual/libraries.rst        |   8 +-
 .../dev-manual/limiting-resources.rst         |   8 +-
 documentation/dev-manual/multiconfig.rst      |  20 +-
 documentation/dev-manual/new-machine.rst      |   4 +-
 documentation/dev-manual/new-recipe.rst       |  36 +-
 documentation/dev-manual/packages.rst         |  56 ++-
 .../dev-manual/prebuilt-libraries.rst         |   4 +-
 .../dev-manual/python-development-shell.rst   |   4 +-
 documentation/dev-manual/qemu.rst             |  48 ++-
 documentation/dev-manual/quilt.rst            |  16 +-
 .../dev-manual/sstate-mirrors-setup.rst       |   8 +-
 documentation/dev-manual/start.rst            |  24 +-
 .../dev-manual/temporary-source-code.rst      |  12 +-
 .../dev-manual/upgrading-recipes.rst          |  76 +++-
 documentation/dev-manual/wayland.rst          |   8 +-
 documentation/dev-manual/x32-psabi.rst        |   4 +-
 documentation/kernel-dev/advanced.rst         |  74 +++-
 documentation/kernel-dev/common.rst           | 208 +++++++---
 documentation/kernel-dev/concepts-appx.rst    |   8 +-
 documentation/kernel-dev/maint-appx.rst       |  20 +-
 .../migration-guides/migration-1.3.rst        |   4 +-
 .../migration-guides/migration-1.4.rst        |   8 +-
 .../migration-guides/migration-1.7.rst        |   4 +-
 .../migration-guides/migration-2.0.rst        |   4 +-
 .../migration-guides/migration-2.1.rst        |   8 +-
 .../migration-guides/migration-2.2.rst        |  16 +-
 .../migration-guides/migration-2.3.rst        |   8 +-
 .../migration-guides/migration-2.5.rst        |   8 +-
 .../migration-guides/migration-2.6.rst        |   8 +-
 .../migration-guides/migration-3.4.rst        |   4 +-
 .../migration-guides/migration-4.0.rst        |   8 +-
 .../migration-guides/migration-4.1.rst        |   8 +-
 .../migration-guides/migration-5.2.rst        |  12 +-
 .../migration-guides/migration-5.3.rst        |  24 +-
 .../migration-guides/migration-6.0.rst        |  22 +-
 .../migration-guides/migration-6.1.rst        |   8 +-
 .../migration-guides/release-notes-4.2.rst    |   4 +-
 .../migration-guides/release-notes-5.1.rst    |   4 +-
 .../migration-guides/release-notes-5.3.rst    |  16 +-
 documentation/overview-manual/concepts.rst    |  48 ++-
 .../development-environment.rst               |   8 +-
 documentation/profile-manual/intro.rst        |   8 +-
 documentation/profile-manual/usage.rst        | 385 +++++++++++++-----
 documentation/ref-manual/classes.rst          |  74 +++-
 .../ref-manual/devtool-reference.rst          |  80 +++-
 documentation/ref-manual/faq.rst              |  20 +-
 documentation/ref-manual/features.rst         |   4 +-
 documentation/ref-manual/fragments.rst        |  32 +-
 documentation/ref-manual/images.rst           |   4 +-
 documentation/ref-manual/qa-checks.rst        |  24 +-
 documentation/ref-manual/structure.rst        |  28 +-
 .../ref-manual/system-requirements.rst        |  64 ++-
 documentation/ref-manual/tasks.rst            |  44 +-
 documentation/ref-manual/terms.rst            |  16 +-
 .../ubuntu-debian-host-packages-nodocs.rst    |  16 +-
 documentation/ref-manual/variables.rst        | 182 +++++++--
 .../security-manual/vulnerabilities.rst       |  12 +-
 documentation/standards.md                    |  22 +
 documentation/test-manual/intro.rst           |  72 +++-
 documentation/test-manual/ptest.rst           |  12 +-
 .../test-manual/reproducible-builds.rst       |   4 +-
 documentation/test-manual/runtime-testing.rst |  36 +-
 .../test-manual/understand-autobuilder.rst    |  20 +-
 documentation/toaster-manual/reference.rst    |  26 +-
 .../toaster-manual/setup-and-use.rst          | 134 ++++--
 documentation/toaster-manual/start.rst        |  18 +-
 87 files changed, 2277 insertions(+), 759 deletions(-)
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a