Skip to content

Commit ca6f02f

Browse files
committed
fix: implement merge_domaindata to support parallelism
1 parent c71ae4b commit ca6f02f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

jinja_autodoc/domain.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
import os
88
import re
9+
from collections.abc import Set
10+
from typing import Any
911

1012
from sphinx import addnodes
1113
from sphinx.directives import ObjectDescription
@@ -102,3 +104,6 @@ def get_objects(self):
102104
for path, info in list(routes.items()):
103105
anchor = jinja_resource_anchor(method, path)
104106
yield (path, path, method, info[0], anchor, 1)
107+
108+
def merge_domaindata(self, docnames: Set[str], otherdata: dict[str, Any]) -> None:
109+
self.data["template"].update(**otherdata["template"])

0 commit comments

Comments
 (0)