Skip to content

sphinx: carry lexers for the languages the manuals show

Trevor Woerner yocto-docs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7sphinx: carry a BitBake lexer as a local extensiondocumentation/conf.py documentation/sphinx/bitbake-lexer.py+434 -10 replies
2/7sphinx: add a lexer for BitBake with placeholdersdocumentation/conf.py documentation/sphinx-static/theme_overrides.css documentation/sphinx/bitbake-placeholder.py+167 -10 replies
3/7sphinx: add a lexer for kernel metadata SCC filesdocumentation/conf.py documentation/sphinx/scc-lexer.py+118 -10 replies
4/7sphinx: add a lexer for wic kickstart filesdocumentation/conf.py documentation/sphinx/wks-lexer.py+62 -10 replies
5/7sphinx: add a lexer for pydevshell sessionsdocumentation/conf.py documentation/sphinx/pydevshell-lexer.py+50 -10 replies
6/7sphinx: read a bare "#" in a console block as outputdocumentation/conf.py documentation/sphinx/console-lexer.py+55 -10 replies
7/7sphinx: mark placeholders in console and plain-text examplesdocumentation/conf.py documentation/sphinx-static/theme_overrides.css documentation/sphinx/placeholder-lexers.py+137 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] sphinx: carry lexers for the languages the manuals show

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/[email protected]
[2] https://github.com/pygments/pygments/pull/3284
[3] https://lore.kernel.org/r/[email protected]
[4] https://lore.kernel.org/r/[email protected]

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
Signature · 1 line
2.50.0.173.g8b6f19ccfc3a