Fixed Git links

This commit is contained in:
2024-03-12 12:40:01 +01:00
parent bd5360c79b
commit 8a90743416
9 changed files with 10 additions and 112 deletions

View File

@ -19,9 +19,9 @@ func (typ *Type) Endpoint() string {
return "/api/" + strings.ToLower(typ.Name)
}
// GitHubLink returns link to display the type in GitHub.
func (typ *Type) GitHubLink() string {
return fmt.Sprintf("https://git.akyoto.dev/web/notify.moe/blob/go/arn/%s.go#L%d", typ.Name, typ.LineNumber)
// GitLink returns link to display the type in Git.
func (typ *Type) GitLink() string {
return fmt.Sprintf("https://git.akyoto.dev/web/notify.moe/src/branch/main/arn/%s.go#L%d", typ.Name, typ.LineNumber)
}
// GetTypeDocumentation tries to gather documentation about the given type.