Skip to content
Permalink
Browse files
Fix #1821 -- watch all used themes
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 13, 2015
1 parent a56e753 commit 81eaedfd1968ef6b700970f124af5f380cb9a8f0
Showing with 2 additions and 4 deletions.
  1. +2 −4 nikola/plugins/command/auto/__init__.py
@@ -58,8 +58,7 @@


from nikola.plugin_categories import Command
from nikola.utils import req_missing, get_logger

from nikola.utils import req_missing, get_logger, get_theme_path
LRJS_PATH = os.path.join(os.path.dirname(__file__), 'livereload.js')
error_signal = signal('error')
refresh_signal = signal('refresh')
@@ -142,9 +141,8 @@ def _execute(self, options, args):

# Do not duplicate entries -- otherwise, multiple rebuilds are triggered
watched = set([
'themes/',
'templates/',
])
] + [os.path.join(get_theme_path(name), "templates") for name in self.site.THEMES])

This comment has been minimized.

Copy link
@ralsina

ralsina Jun 13, 2015

Member

I'd watch all the theme folder, not theme/templates because of assets.

This comment has been minimized.

Copy link
@Kwpolska

Kwpolska Jun 14, 2015

Author Member

Fixed in 6b43608.

for item in self.site.config['post_pages']:
watched.add(os.path.dirname(item[0]))
for item in self.site.config['FILES_FOLDERS']:

0 comments on commit 81eaedf

Please sign in to comment.