'Add _sidebar.json in each folder in docs'

def add_sidebars(self):

    for (basepath, folders, files) in os.walk(self.docs_path):
        with open(os.path.join(basepath, u'_sidebar.json'), u'w') as sidebarfile:
            sidebarfile.write(frappe.as_json([{u'title': u'Docs    Home', u'route': u'/docs'}, {u'title': u'User    Guide', u'route': u'/docs/user'}, {u'title': u'Server    API', u'route': u'/docs/current/api'}, {u'title': u'Models    (Reference)', u'route': u'/docs/current/models'}, {u'title': u'Improve    Docs', u'route': u'{0}/tree/develop/{1}/docs'.format(self.docs_config.source_link, self.app)}]))
