'Get configuration parameters to be rendered into the conf file.'

def get_config_params(self):

    conf_py_path = os.path.join(os.path.sep, self.version.get_conf_py_path(), '')
    remote_version = self.version.commit_name
    (github_user, github_repo) = version_utils.get_github_username_repo(url=self.project.repo)
    github_version_is_editable = (self.version.type == 'branch')
    display_github = (github_user is not None)
    (bitbucket_user, bitbucket_repo) = version_utils.get_bitbucket_username_repo(url=self.project.repo)
    bitbucket_version_is_editable = (self.version.type == 'branch')
    display_bitbucket = (bitbucket_user is not None)
    if getattr(settings, 'DONT_HIT_API', False):
        versions = self.project.active_versions()
        downloads = self.version.get_downloads(pretty=True)
    else:
        versions = self.project.api_versions()
        downloads = api.version(self.version.pk).get()['downloads']
    return {'current_version': self.version.verbose_name, 'project': self.project, 'settings': settings, 'static_path': SPHINX_STATIC_DIR, 'template_path': SPHINX_TEMPLATE_DIR, 'conf_py_path': conf_py_path, 'api_host': getattr(settings, 'PUBLIC_API_URL', 'https://readthedocs.org'), 'commit': self.project.vcs_repo(self.version.slug).commit, 'versions': versions, 'downloads': downloads, 'github_user': github_user, 'github_repo': github_repo, 'github_version': remote_version, 'github_version_is_editable': github_version_is_editable, 'display_github': display_github, 'bitbucket_user': bitbucket_user, 'bitbucket_repo': bitbucket_repo, 'bitbucket_version': remote_version, 'bitbucket_version_is_editable': bitbucket_version_is_editable, 'display_bitbucket': display_bitbucket}
