Browse Source

make file if not found (#17359)

Fotis Voutsas 11 months ago
parent
commit
f9fc794feb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      integrations/gen_docs_integrations.py

+ 2 - 0
integrations/gen_docs_integrations.py

@@ -335,6 +335,8 @@ def make_symlinks(symlink_dict):
     takes a dictionary with directories that have a 1:1 relationship between their README and the integration (only one) inside the "integrations" folder.
     """
     for element in symlink_dict:
+        if not Path(f'{element}/README.md').exists():
+            Path(f'{element}/README.md').touch()
         try:
             # Remove the README to prevent it being a normal file
             Path(f'{element}/README.md').unlink()