Skip to content

Commit 48b017d

Browse files
authored
Add incremental to default DocGen so it does not load examples, merge validation data in DocGen.merge. (#103)
1 parent e4f19ed commit 48b017d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

aws_doc_sdk_examples_tools/doc_gen.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ def merge(self, other: "DocGen") -> MetadataErrors:
114114
)
115115
)
116116

117+
self.validation.allow_list.update(other.validation.allow_list)
118+
self.validation.sample_files.update(other.validation.sample_files)
117119
self.snippet_files.update(other.snippet_files)
118120
self.cross_blocks.update(other.cross_blocks)
119121
self.extend_examples(other.examples.values(), warnings)
@@ -134,7 +136,7 @@ def empty(cls, validation: ValidationConfig = ValidationConfig()) -> "DocGen":
134136

135137
@classmethod
136138
def default(cls) -> "DocGen":
137-
return DocGen.empty().for_root(Path(__file__).parent)
139+
return DocGen.empty().for_root(Path(__file__).parent, incremental=True)
138140

139141
def clone(self) -> "DocGen":
140142
return DocGen(

0 commit comments

Comments
 (0)