'Generate source templates for models reference and module API
and templates at `templates/autodoc`'

def __init__(self, app, target_app):

    self.app = app
    self.target_app = target_app
    frappe.flags.web_pages_folders = [u'docs']
    frappe.flags.web_pages_apps = [self.app]
    self.hooks = frappe.get_hooks(app_name=self.app)
    self.app_title = self.hooks.get(u'app_title')[0]
    self.setup_app_context()
