Skip to content

Commit

Permalink
Fix #1821 -- watch all used themes
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 13, 2015
1 parent a56e753 commit 81eaedf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nikola/plugins/command/auto/__init__.py
Expand Up @@ -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')
Expand Down Expand Up @@ -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']:
Expand Down

0 comments on commit 81eaedf

Please sign in to comment.