Merge pull request #4007 from sphinx-doc/copy-staticfiles-beyond-symlinks

copy static files beyond symlinked directories under _static directory
This commit is contained in:
Takeshi KOMIYA
2017-08-19 23:30:46 +09:00
committed by GitHub

View File

@@ -77,7 +77,7 @@ def copy_asset(source, destination, excluded=lambda path: False, context=None, r
copy_asset_file(source, destination, context, renderer)
return
for root, dirs, files in walk(source):
for root, dirs, files in walk(source, followlinks=True):
reldir = relative_path(source, root)
for dir in dirs[:]:
if excluded(posixpath.join(reldir, dir)):