Skip to content

Commit 83ac1fd

Browse files
committedMay 22, 2017
jsonfeed: depend on taxonomies and make dirs
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent e55b72b commit 83ac1fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎v7/jsonfeed/jsonfeed.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ def get_link(self, path_handler, classification, lang):
181181
"""Get link for a page."""
182182
return urljoin(self.site.config['BASE_URL'], self.site.link(path_handler, classification, lang).lstrip('/'))
183183

184-
185184
def jsonfeed_html_link(self, site, context):
186185
"""Generate HTML fragment with link to JSON feed."""
187186
pagekind = context['pagekind']
@@ -244,7 +243,7 @@ def generate_feed_task(self, lang, title, link, description, timeline,
244243
'name': str(output_name),
245244
'targets': [output_name],
246245
'file_dep': deps,
247-
'task_dep': ['render_posts'],
246+
'task_dep': ['render_posts', 'render_taxonomies'],
248247
'actions': [(self.generate_feed, (lang, title, link, description,
249248
timeline, feed_url, output_name,
250249
primary_author))],
@@ -338,5 +337,7 @@ def generate_feed(self, lang, title, link, description, timeline,
338337
"items": items
339338
}
340339

340+
utils.makedirs(os.path.dirname(output_name))
341+
341342
with io.open(output_name, 'w', encoding='utf-8') as fh:
342343
json.dump(feed, fh, ensure_ascii=False, indent=4)

0 commit comments

Comments
 (0)
Please sign in to comment.