def METHOD_NAME(self):
    """Generate tasks."""
    self.site.scan_posts()
    yield self.group_task()
    for lang in self.site.config['TRANSLATIONS'].keys():
        destination = os.path.join(self.site.config['OUTPUT_FOLDER'], 'sidebar-{0}.inc'.format(lang))
        template = 'sidebar.tmpl'
        yield self._prepare_sidebar(destination, lang, template)