From 6bf9910975438c4198fa82a32849f3eea566b9d1 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Mon, 7 Nov 2016 10:07:43 +0100 Subject: [PATCH 1/9] Set correct doc url for go-sdk --- modules/base/base.go | 2 +- modules/context/api.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/base/base.go b/modules/base/base.go index 8ba211aa7a..28e3c274d0 100644 --- a/modules/base/base.go +++ b/modules/base/base.go @@ -4,7 +4,7 @@ package base -const DOC_URL = "https://github.com/gogits/go-gogs-client/wiki" +const DocURL = "https://godoc.org/github.com/go-gitea/go-sdk" type ( TplName string diff --git a/modules/context/api.go b/modules/context/api.go index dfd9a57818..1ae11f63fb 100644 --- a/modules/context/api.go +++ b/modules/context/api.go @@ -36,7 +36,7 @@ func (ctx *APIContext) Error(status int, title string, obj interface{}) { ctx.JSON(status, map[string]string{ "message": message, - "url": base.DOC_URL, + "url": base.DocURL, }) } From ceb920802ac371fbad2d461242807d5113e4a09b Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Mon, 7 Nov 2016 10:47:33 +0100 Subject: [PATCH 2/9] Dropped link to Gogs docs from template --- templates/repo/create.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index 337e096e5b..7e608b1d34 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -83,7 +83,7 @@
- +