1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
Justin Mayer 6f36b0a246 Keep certain files when cleaning output; fix #574
If DELETE_OUTPUT_DIRECTORY is set to True, all files and directories are
deleted from the output directory. There are, however, several reasons
one might want to retain certain files/directories and avoid their
deletion from the output directory. One such use case is version control
system data: a versioned output directory can facilitate deployment via
Heroku and/or allow the user to easily revert to a prior version of the
site without having to rely on regeneration via Pelican.

This change introduces the OUTPUT_RETENTION setting, a tuple of
filenames that will be preserved when the clean_output_dir function in
pelican.utils is run. Setting OUTPUT_RETENTION = (".hg", ".git") would,
for example, prevent the relevant VCS data from being deleted when the
output directory is cleaned.
2013-06-25 19:03:32 -07:00
..
tests Keep certain files when cleaning output; fix #574 2013-06-25 19:03:32 -07:00
themes Clean up and improve <head> of notmyidea theme 2013-04-23 06:51:22 -07:00
tools Encoding issue in pelican-quickstart. Fixes #904 2013-05-26 11:38:55 +01:00
__init__.py Keep certain files when cleaning output; fix #574 2013-06-25 19:03:32 -07:00
contents.py content: Don't update static content 2013-06-12 17:37:21 -04:00
generators.py Merge pull request #898 from saimn/fix-markup-cli 2013-06-19 06:51:59 -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 Port pelican to python 3. 2013-01-11 03:20:09 +01:00
readers.py readers: Ensure the reader class is enabled before instantiating 2013-06-12 17:37:21 -04:00
rstdirectives.py Port pelican to python 3. 2013-01-11 03:20:09 +01:00
server.py Adding a message for gracefully shutting down dev server 2013-03-19 12:15:58 +01:00
settings.py Keep certain files when cleaning output; fix #574 2013-06-25 19:03:32 -07:00
signals.py generators: Update PagesGenerator to use new read_file 2013-06-12 15:02:31 -04:00
urlwrappers.py Make tags and cats case insensitive. Fixes #704. 2013-05-03 17:37:45 +01:00
utils.py Keep certain files when cleaning output; fix #574 2013-06-25 19:03:32 -07:00
writers.py Replace settings.get(key) with settings[key] for default settings 2013-06-02 14:24:27 -04:00