This release is a pre-release and may not be stable for production use.
rbtr-lang-rst
reStructuredText support for rbtr. A default plugin — installed
with rbtr itself (pip install rbtr).
What it ingests
A custom chunker: it reconstructs the section hierarchy from the order of adornment characters (RST has no fixed heading levels), each section a chunk scoped by its ancestors. Cross-references are extracted as imports.
- Sections — headings (underline and overline adornments) → doc sections,
with
scopethe::chain of enclosing sections. A document with no heading at all — a README, a changelog — gives each top-level block its own section instead: paragraphs, lists, directives, literal blocks, link targets. - References — the
:func:/:class:/:meth:/:mod:/:doc:roles,`text <target>`_references, and.. toctree::entries → imports. External URLs and same-file anchors are skipped.
Chunks produced
Title doc_section "Title"
=====
Section doc_section "Section", scope "Title"
-------
See :func:`helper` and :doc:`api/index`.
import {names: helper}; import {module: api/index}
Embedded / injected chunks
None. RST does not embed other languages.
Grammar & dependencies
Uses the tree-sitter-rst grammar. No runtime dependency on other language
plugins; the test suite dev-depends on rbtr-lang-python to extract the
sample's helpers.py and snapshot the .rst → .py reference edges.
Metadata
Release files for rbtr-lang-rst 2026.9.0.dev0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rbtr_lang_rst-2026.9.0.dev0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / rbtr_lang_rst-2026.9.0.dev0-py3-none-any.whl
| Download URL | rbtr_lang_rst-2026.9.0.dev0-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e75347f47417e833b3808f3866a78e49928a03d0beb3c70033d350d9901e9d5
|
|
BLAKE2b-256 checksum How to use checksums |
43f2282b834511a65248c0452f55d6056d9bc655cb78e1efdafc63d7bf3e53c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|