INNER CODE UNIT · Python
sync
poingstudios/godot-admob-plugin · .github/scripts/update_docs_dependencies.py:107
def sync(self, doc_patterns: List[str]) -> bool:
rules: List[VersionRule] = []
for extractor in self.extractors:
rules.extend(extractor.extract_rules(self.root_dir))
if not rules:
return False
any_changed = False
target_files: List[Path] = []
for pattern in doc_patterns:
target_files.extend(self.root_dir.glob(pattern))
for file_path in sorted(set(target_files)):
if not file_path.is_file():
continue
content = file_path.read_text(encoding="utf-8")