mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
@@ -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)):
|
||||
|
||||
Reference in New Issue
Block a user