Skip to content
Permalink
Browse files
wrap deps in config_changed
  • Loading branch information
ralsina committed Jan 17, 2015
1 parent 04c0511 commit 4200a02e20a5d1ed175afef5679f6ef85b1289e6
@@ -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):
@@ -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}))
@@ -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):
@@ -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']}))
@@ -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):
@@ -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."""

0 comments on commit 4200a02

Please sign in to comment.