Skip to content

Commit d2c972c

Browse files
committed
refactor: Add docstring
1 parent 9aa6d84 commit d2c972c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

oembedpy/adapters/sphinx.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ def resolve_any_xref(
9393
return []
9494

9595
def merge_domaindata(self, docnames: list[str], otherdata) -> None:
96+
"""Merge domain data from parallel builds.
97+
98+
This method merges cached oEmbed content from parallel build environments.
99+
The merge strategy prioritizes entries with longer expiration times to ensure
100+
the most up-to-date and longest-lived cached content is retained.
101+
"""
96102
other_caches = otherdata.get("caches", {})
97103
for cache_key, content in other_caches.items():
98104
if cache_key not in self.caches:

0 commit comments

Comments
 (0)