Skip to content

Commit d226ebe

Browse files
committed
Add support for parallel builds
1 parent 5f50731 commit d226ebe

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/sphinx_peakrdl/domain.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional
1+
from typing import Optional, Set, Dict, Any
22

33
from docutils.nodes import Element
44
from sphinx.domains import Domain
@@ -34,6 +34,11 @@ class PeakRDLDomain(Domain):
3434
"rdl_docnodes": {}
3535
}
3636

37+
def merge_domaindata(self, docnames: Set[str], otherdata: Dict[str, Any]) -> None:
38+
for rdl_path, docname in otherdata["rdl_docnodes"].items():
39+
if docname in docnames:
40+
self.data["rdl_docnodes"][rdl_path] = docname
41+
3742
def html_is_available(self, builder_name: str) -> bool:
3843
"""
3944
Whether PeakRDL-html output is available.

0 commit comments

Comments
 (0)