INNER CODE UNIT · Python

DocSyncService

poingstudios/godot-admob-plugin · .github/scripts/update_docs_dependencies.py:102

class DocSyncService:
    def __init__(self, root_dir: Path, extractors: List[VersionExtractor]):
        self.root_dir = root_dir
        self.extractors = extractors

    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))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…