From: Trevor Woerner <twoerner@gmail.com>
To: docs@lists.yoctoproject.org
Subject: [PATCH 0/7] sphinx: carry lexers for the languages the manuals show
Date: Wed, 25 Nov 2026 10:45:28 -0500 [thread overview]
Message-ID: <20261125154535.3486104-1-twoerner@gmail.com> (raw)
This is the series proposed in [1]: the BitBake lexer first, then the
other lexers, one patch each. The BitBake lexer is patch 1 and can be
applied on its own.
No block uses any of these lexers yet, so the rendered manuals do not
change, with one exception: the console fix in patch 6 changes how
existing console blocks read a line opening with a bare "#", from a root
prompt to program output. Every commit builds clean under -W on its own.
The BitBake lexer takes its patterns from BitBake's own parser, and is
the same lexer proposed to Pygments in [2]. The SCC and wks lexers are
derived the same way, from yocto-kernel-tools and from wic's parser.
The series is based on master-next with two of your pending series
applied, since both also edit the extension list in conf.py:
- Add support for documentation tags [3]
- Add a "Library Functions" section to the ref-manual [4]
The tags series needed two trivial conflict resolutions to apply on
master-next, both in the tags it appends to the end of
contributor-guide/submit-changes.rst and ref-manual/kickstart.rst.
[1] https://lore.kernel.org/r/atjXdzebFGmKVjj8@localhost.localdomain
[2] https://github.com/pygments/pygments/pull/3284
[3] https://lore.kernel.org/r/20261028-tags-v1-0-d5ad01019eae@bootlin.com
[4] https://lore.kernel.org/r/20261124-oe-utils-docs-v1-0-5fafbf6cb01c@bootlin.com
Trevor Woerner (7):
sphinx: carry a BitBake lexer as a local extension
sphinx: add a lexer for BitBake with placeholders
sphinx: add a lexer for kernel metadata SCC files
sphinx: add a lexer for wic kickstart files
sphinx: add a lexer for pydevshell sessions
sphinx: read a bare "#" in a console block as output
sphinx: mark placeholders in console and plain-text examples
documentation/conf.py | 9 +-
.../sphinx-static/theme_overrides.css | 20 +
documentation/sphinx/bitbake-lexer.py | 432 ++++++++++++++++++
documentation/sphinx/bitbake-placeholder.py | 145 ++++++
documentation/sphinx/console-lexer.py | 53 +++
documentation/sphinx/placeholder-lexers.py | 134 ++++++
documentation/sphinx/pydevshell-lexer.py | 48 ++
documentation/sphinx/scc-lexer.py | 116 +++++
documentation/sphinx/wks-lexer.py | 60 +++
9 files changed, 1016 insertions(+), 1 deletion(-)
create mode 100644 documentation/sphinx/bitbake-lexer.py
create mode 100644 documentation/sphinx/bitbake-placeholder.py
create mode 100644 documentation/sphinx/console-lexer.py
create mode 100644 documentation/sphinx/placeholder-lexers.py
create mode 100644 documentation/sphinx/pydevshell-lexer.py
create mode 100644 documentation/sphinx/scc-lexer.py
create mode 100644 documentation/sphinx/wks-lexer.py
--
2.50.0.173.g8b6f19ccfc3a
next reply other threads:[~2026-11-25 15:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 15:45 Trevor Woerner [this message]
2026-11-25 15:45 ` [PATCH 1/7] sphinx: carry a BitBake lexer as a local extension Trevor Woerner
2026-11-25 15:45 ` [PATCH 2/7] sphinx: add a lexer for BitBake with placeholders Trevor Woerner
2026-11-25 15:45 ` [PATCH 3/7] sphinx: add a lexer for kernel metadata SCC files Trevor Woerner
2026-11-25 15:45 ` [PATCH 4/7] sphinx: add a lexer for wic kickstart files Trevor Woerner
2026-11-25 15:45 ` [PATCH 5/7] sphinx: add a lexer for pydevshell sessions Trevor Woerner
2026-11-25 15:45 ` [PATCH 6/7] sphinx: read a bare "#" in a console block as output Trevor Woerner
2026-11-25 15:45 ` [PATCH 7/7] sphinx: mark placeholders in console and plain-text examples Trevor Woerner
2026-11-26 16:33 ` [docs] [PATCH 0/7] sphinx: carry lexers for the languages the manuals show Antonin Godard
2026-11-26 22:26 ` Trevor Woerner
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=20261125154535.3486104-1-twoerner@gmail.com \
--to=twoerner@gmail.com \
--cc=docs@lists.yoctoproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.