Commits

Mattijs Hoitink committed 95130cb

Blindly copy entire resources directory

Comments (0)

Files changed (1)

             if name not in ['footer', 'index']:
                 yield filename
 
-def _copy_raw_file(filename):
-    shutil.copyfile(j(up(__file__), 'resources', filename),
-                    j(BUILD_LOC, '_dmedia', filename))
 
 def _get_footer():
     if os.path.isfile('./footer.markdown'):
     title = _get_project_title()
     footer = _get_footer()
 
-    map(_copy_raw_file, ['bootstrap.css', 'style.less', 'less.js', 'tango.css'])
+    resources = j(up(__file__), 'resources')
+    for filename in os.listdir(j(up(__file__), 'resources')):
+        shutil.copyfile(j(resources, filename), j(destination, '_dmedia', filename))
 
     chapters = []
     for filename in _find_chapters():