(app: Sphinx)
| 424 | |
| 425 | |
| 426 | def init_annotations(app: Sphinx) -> None: |
| 427 | # Using domaindata is a bit hack-ish, |
| 428 | # but allows storing state without a global variable or closure. |
| 429 | app.env.domaindata["c_annotations"] = state = {} |
| 430 | state["refcount_data"] = read_refcount_data( |
| 431 | Path(app.srcdir, app.config.refcount_file) |
| 432 | ) |
| 433 | state["stable_abi_data"] = read_stable_abi_data( |
| 434 | Path(app.srcdir, app.config.stable_abi_file) |
| 435 | ) |
| 436 | state["threadsafety_data"] = read_threadsafety_data( |
| 437 | Path(app.srcdir, app.config.threadsafety_file) |
| 438 | ) |
| 439 | |
| 440 | |
| 441 | def setup(app: Sphinx) -> ExtensionMetadata: |
nothing calls this directly
no test coverage detected
searching dependent graphs…