Fotis Voutsas 11 месяцев назад
Родитель
Сommit
f9fc794feb
1 измененных файлов с 2 добавлено и 0 удалено
  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.
     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:
     for element in symlink_dict:
+        if not Path(f'{element}/README.md').exists():
+            Path(f'{element}/README.md').touch()
         try:
         try:
             # Remove the README to prevent it being a normal file
             # Remove the README to prevent it being a normal file
             Path(f'{element}/README.md').unlink()
             Path(f'{element}/README.md').unlink()