Skip to content

Commit

Permalink
fix: logo path repo base url
Browse files Browse the repository at this point in the history
  • Loading branch information
mj committed May 14, 2023
1 parent 6e32e9a commit c49fec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

const (
NoRepoUrl = ""
GithubRepoUrl = "https://github.com/GoFarsi/assets/tree/main"
GithubRepoUrl = "https://raw.githubusercontent.com/GoFarsi/assets/main"
)

type logoPathPattern func(path string) string
Expand Down Expand Up @@ -41,5 +41,5 @@ func (a *AssetRepo) adaptLogoPath(patternFunc logoPathPattern) {

// formatPathToGithubMainRepo return a formatted path of file based on GitHub main branch
func formatFilePathByGithubRepo(path string) string {
return fmt.Sprintf("%s/%s?raw=true", GithubRepoUrl, path)
return fmt.Sprintf("%s/%s", GithubRepoUrl, path)
}

0 comments on commit c49fec4

Please sign in to comment.