diff --git a/docs/settings.rst b/docs/settings.rst index 0a04f804..a75badfc 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -68,9 +68,6 @@ Setting name (default value) What doe generating new files. This can be useful in preventing older, unnecessary files from persisting in your output. However, **this is a destructive setting and should be handled with extreme care.** -`FILES_TO_COPY` (``()``) A list of files (or directories) to copy from the source (inside the - content directory) to the destination (inside the output directory). - For example: ``(('extra/robots.txt', 'robots.txt'),)``. `JINJA_EXTENSIONS` (``[]``) A list of any Jinja2 extensions you want to use. `JINJA_FILTERS` (``{}``) A list of custom Jinja2 filters you want to use. The dictionary should map the filtername to the filter function. diff --git a/pelican/generators.py b/pelican/generators.py index b777efec..c48f8067 100644 --- a/pelican/generators.py +++ b/pelican/generators.py @@ -559,19 +559,6 @@ class StaticGenerator(Generator): self.staticfiles.append(static) self.add_source_path(static) - # same thing for FILES_TO_COPY - for src, dest in self.settings['FILES_TO_COPY']: - static = read_file( - base_path=self.path, path=f, content_class=Static, - fmt='static', - settings=self.settings, context=self.context, - preread_signal=signals.static_generator_preread, - preread_sender=self, - context_signal=signals.static_generator_context, - context_sender=self) - self.staticfiles.append(static) - self.add_source_path(static) - def generate_output(self, writer): self._copy_paths(self.settings['THEME_STATIC_PATHS'], self.theme, 'theme', self.output_path, os.curdir) diff --git a/pelican/settings.py b/pelican/settings.py index 34a2b42a..5386d172 100644 --- a/pelican/settings.py +++ b/pelican/settings.py @@ -95,7 +95,6 @@ DEFAULT_CONFIG = { 'DEFAULT_METADATA': (), 'FILENAME_METADATA': '(?P\d{4}-\d{2}-\d{2}).*', 'PATH_METADATA': '', - 'FILES_TO_COPY': (), 'DEFAULT_STATUS': 'published', 'ARTICLE_PERMALINK_STRUCTURE': '', 'TYPOGRIFY': False,