1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
bmcorser 9d583961e7 Fix for THEME_STATIC_PATHS by copying sensitively
If more than one path is defined in THEME_STATIC_PATHS, the theme's
static directory in output is deleted and replaced by the following
path's files.

Using `shutil.rmtree` to remove the entire destination tree if overwrite
is `True` assumes that we didn't want anything at all that was there. We
should recurse through the directory and their subdirs instead, leaving
things put there by the previous path where they were.

I lazily copied almost verbatim the solution for recursively copying a
diectory from http://stackoverflow.com/a/1994840.

The reason for this is patch is that without it, my plugin is broken! It
also makes my code a lot less crazy:

a83f066
2013-08-21 20:28:22 +01:00
..
tests Add categories and tags to the replacement mechanism. 2013-08-17 17:36:13 +02:00
themes Support TAGS_* and AUTHORS_* by default. 2013-08-05 19:16:00 +02:00
tools Adds Rackspace Cloud Files support to quickstart and fabfile 2013-08-05 23:30:31 -05:00
__init__.py Receive the two values returned from get_instance() 2013-08-11 01:43:27 +05:00
contents.py Add categories and tags to the replacement mechanism. 2013-08-17 17:36:13 +02:00
generators.py StaticGenerator now stores file list in context. 2013-08-16 13:31:14 -07:00
log.py fix for issue #761: handle unicode correctly in summary for Markdown 2013-04-03 19:38:42 -04:00
paginator.py Create new formatting context dict instead of using self.__dict__ 2013-08-03 13:49:43 -07:00
readers.py Don't warn too loud about missing dependencies. 2013-08-07 22:43:08 +02:00
rstdirectives.py Merge pull request #1053 from kura/remove-youtube 2013-08-19 03:47:51 -07:00
server.py Fixing #1038 by allowing nice URLs. 2013-08-12 19:23:57 +01:00
settings.py Merge pull request #1011 from saimn/readers 2013-08-07 12:34:22 -07:00
signals.py Add a content_written signal 2013-08-17 12:48:34 +02:00
urlwrappers.py Allow text substitutions when generating slugs 2013-07-04 12:17:21 +01:00
utils.py Fix for THEME_STATIC_PATHS by copying sensitively 2013-08-21 20:28:22 +01:00
writers.py Add a content_written signal 2013-08-17 12:48:34 +02:00