Skip to content

Commit b98f5d9

Browse files
authored
copy symlinks in merger.py
instead of failing with an error if a file is a symlink.
1 parent b1965a2 commit b98f5d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: mkdocs_monorepo_plugin/merger.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def merge(self):
5959
dest_dir = os.path.join(self.temp_docs_dir.name, *split_alias)
6060

6161
if os.path.exists(source_dir):
62-
copytree(source_dir, dest_dir, dirs_exist_ok=True)
62+
copytree(source_dir, dest_dir, symlinks=True, dirs_exist_ok=True)
6363
for file_abs_path in Path(source_dir).rglob('*.md'):
6464
file_abs_path = str(file_abs_path) # python 3.5 compatibility
6565
if os.path.isfile(file_abs_path):

0 commit comments

Comments
 (0)