bundles / papyri 0.0.10 / papyri / gen / Gen / _extract_rst_targets
staticmethod
papyri.gen:Gen._extract_rst_targets
source: /papyri/gen.py:1029
Signature
staticmethod
def _extract_rst_targets(sections: list[Section]) → tuple[list[str], dict[str, str]]Summary
Return RST targets found in a list of sections.
Extended Summary
Yields a tuple (internal_labels, external_targets) where internal_labels is the list of named anchors that resolve within the bundle (.. _label: / section-attached) and external_targets maps each named external hyperlink label to its URL (.. _label: http://...).
Aliases
papyri.gen.Gen._extract_rst_targets