Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
wrap deps in config_changed
  • Loading branch information
ralsina committed Jan 17, 2015
1 parent 04c0511 commit 4200a02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/compile/markdown/__init__.py
Expand Up @@ -41,7 +41,7 @@
podcast_extension = None

from nikola.plugin_categories import PageCompiler
from nikola.utils import makedirs, req_missing, write_metadata
from nikola.utils import makedirs, req_missing, write_metadata, config_changed


class CompileMarkdown(PageCompiler):
Expand Down Expand Up @@ -101,4 +101,4 @@ def create_post(self, path, **kw):

def register_extra_dependencies(self, post):
"""Adds dependency to post object to check .dep file."""
post.add_dependency_uptodate(self.enabled_extensions)
post.add_dependency_uptodate(config_changed({1: self.enabled_extensions}))
4 changes: 2 additions & 2 deletions nikola/plugins/compile/pandoc.py
Expand Up @@ -37,7 +37,7 @@
import subprocess

from nikola.plugin_categories import PageCompiler
from nikola.utils import req_missing, makedirs, write_metadata
from nikola.utils import req_missing, makedirs, write_metadata, config_changed


class CompilePandoc(PageCompiler):
Expand Down Expand Up @@ -73,4 +73,4 @@ def create_post(self, path, **kw):

def register_extra_dependencies(self, post):
"""Adds dependency to post object to check .dep file."""
post.add_dependency_uptodate(self.site.config['PANDOC_OPTIONS'])
post.add_dependency_uptodate(config_changed({1: self.site.config['PANDOC_OPTIONS']}))
4 changes: 2 additions & 2 deletions nikola/plugins/compile/rest/__init__.py
Expand Up @@ -41,7 +41,7 @@
has_docutils = False

from nikola.plugin_categories import PageCompiler
from nikola.utils import get_logger, makedirs, req_missing, write_metadata
from nikola.utils import get_logger, makedirs, req_missing, write_metadata, config_changed


class CompileRest(PageCompiler):
Expand All @@ -63,7 +63,7 @@ def _read_extra_deps(self, post):
def register_extra_dependencies(self, post):
"""Adds dependency to post object to check .dep file."""
post.add_dependency(lambda: self._read_extra_deps(post), 'fragment')
post.add_dependency_uptodate(self.enabled_plugins)
post.add_dependency_uptodate(config_changed({1: self.enabled_plugins}))

def compile_html(self, source, dest, is_two_file=True):
"""Compile reSt into HTML."""
Expand Down

0 comments on commit 4200a02

Please sign in to comment.