diff --git a/misc/fix_readme_indentation.py b/misc/fix_readme_indentation.py index 177065298..97655828f 100644 --- a/misc/fix_readme_indentation.py +++ b/misc/fix_readme_indentation.py @@ -18,7 +18,7 @@ from __future__ import annotations import difflib from pathlib import Path -CORE_DIR = Path(__file__).resolve().parent.parent / "src" / "common" / "core" +CORE_DIR = Path(__file__).resolve().parent.parent / "src" / "common" def needs_processing(path: Path) -> bool: @@ -106,7 +106,7 @@ def process_file(path: Path) -> bool: def main() -> None: if not CORE_DIR.exists(): raise SystemExit(f"Core directory not found: {CORE_DIR}") - readmes = sorted(CORE_DIR.glob("*/README*.md")) + readmes = sorted(CORE_DIR.glob("**/README*.md")) changed = 0 for readme in readmes: if not needs_processing(readme): diff --git a/misc/update-version.sh b/misc/update-version.sh index d5b430504..60bcea5d1 100755 --- a/misc/update-version.sh +++ b/misc/update-version.sh @@ -26,7 +26,7 @@ sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" docs/*.md sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" docs/*/*.md # README sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" README.md -sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" src/common/core/*/README.md +sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" src/common/core/*/README*.md # tests sed -i "s@${OLD_VERSION}@${NEW_VERSION}@g" tests/ui/docker-compose.yml shopt -s globstar