def make_raw_content_url(repo_slug, git_ref, file_path):
if isinstance(repo_slug, RepoSlug):<EOL><INDENT>slug_str = repo_slug.full<EOL><DEDENT>else:<EOL><INDENT>slug_str = repo_slug<EOL><DEDENT>if file_path.startswith('<STR_LIT:/>'):<EOL><INDENT>file_path = file_path.lstrip('<STR_LIT:/>')<EOL><DEDENT>template = '<STR_LIT>'<EOL>return template.format(<EOL>slug=slug_str,<EOL>git_ref=git_ref,<EOL>path=file_path)<EOL>
Make a raw content (raw.githubusercontent.com) URL to a file.

    Parameters
    ----------
    repo_slug : `str` or `RepoSlug`
        The repository slug, formatted as either a `str` (``'owner/name'``)
        or a `RepoSlug` object (created by `parse_repo_slug_from_url`).
    git_ref : `str`
        The git ref: a branch name, commit hash, or tag name.
    file_path : `str`
        The POSIX path of the file in the repository tree.