mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Fixed wrong order of media files copy from theme dirs (own, base -> base, own) to prevent own files being overwritten by their base counterparts
This commit is contained in:
@@ -223,7 +223,7 @@ def build(config, live_server=False, dump_json=False, clean_site_dir=False):
|
||||
if dump_json:
|
||||
build_pages(config, dump_json=True)
|
||||
else:
|
||||
for theme_dir in config['theme_dir']:
|
||||
for theme_dir in reversed(config['theme_dir']):
|
||||
utils.copy_media_files(theme_dir, config['site_dir'])
|
||||
utils.copy_media_files(config['docs_dir'], config['site_dir'])
|
||||
build_pages(config)
|
||||
|
||||
Reference in New Issue
Block a user