MCPcopy
hub / github.com/sphinx-doc/sphinx / entry

Method entry

tests/test_ext_autodoc/test_ext_autodoc.py:1360–1372  ·  view source on GitHub ↗

Get the RST lines for a named attribute, method, etc.

(
        self,
        entry_name: str,
        doc: str = '',
        *,
        role: str,
        args: str = '',
        indent: int = 3,
        **rst_options: Any,
    )

Source from the content-addressed store, hash-verified

1358 return lines
1359
1360 def entry(
1361 self,
1362 entry_name: str,
1363 doc: str = '',
1364 *,
1365 role: str,
1366 args: str = '',
1367 indent: int = 3,
1368 **rst_options: Any,
1369 ) -> list[str]:
1370 """Get the RST lines for a named attribute, method, etc."""
1371 qualname = f'{self.name}.{entry_name}'
1372 return self._node(role, qualname, doc, args=args, indent=indent, **rst_options)
1373
1374 def preamble_lookup(
1375 self, doc: str, *, indent: int = 0, **options: Any

Calls 1

_nodeMethod · 0.95

Tested by

no test coverage detected