Browse Source

Simplify description

pull/3785/merge
Unknwon 8 years ago
parent
commit
3137665e6e
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 2
      README_ZH.md
  2. 2
      conf/app.ini
  3. 4
      gogs.go
  4. 6
      modules/bindata/bindata.go
  5. 2
      modules/setting/setting.go
  6. 10
      public/css/gogs.css
  7. 9
      public/less/_home.less
  8. 4
      scripts/init/centos/gogs
  9. 2
      scripts/init/debian/gogs
  10. 4
      scripts/init/suse/gogs
  11. 2
      scripts/systemd/gogs.service
  12. 2
      scripts/windows/install-as-service.bat
  13. 8
      templates/base/head.tmpl
  14. 6
      templates/home.tmpl

2
README_ZH.md

@ -1,7 +1,7 @@
Gogs [![Build Status](https://travis-ci.org/gogits/gogs.svg?branch=master)](https://travis-ci.org/gogits/gogs) [![Build status](https://ci.appveyor.com/api/projects/status/b9uu5ejl933e2wlt/branch/master?svg=true)](https://ci.appveyor.com/project/Unknwon/gogs/branch/master) Gogs [![Build Status](https://travis-ci.org/gogits/gogs.svg?branch=master)](https://travis-ci.org/gogits/gogs) [![Build status](https://ci.appveyor.com/api/projects/status/b9uu5ejl933e2wlt/branch/master?svg=true)](https://ci.appveyor.com/project/Unknwon/gogs/branch/master)
===================== =====================
Gogs (Go Git Service) 是一款极易搭建的自助 Git 服务。 Gogs 是一款极易搭建的自助 Git 服务。
## 开发目的 ## 开发目的

2
conf/app.ini

@ -3,7 +3,7 @@
# !!! IF YOU ARE PACKAGING PROVIDER, PLEASE MAKE OWN COPY OF IT !!! # !!! IF YOU ARE PACKAGING PROVIDER, PLEASE MAKE OWN COPY OF IT !!!
; App name that shows on every page title ; App name that shows on every page title
APP_NAME = Gogs: Go Git Service APP_NAME = Gogs
; The name of the system user that runs Gogs ; The name of the system user that runs Gogs
RUN_USER = git RUN_USER = git
; Either "dev", "prod" or "test" ; Either "dev", "prod" or "test"

4
gogs.go

@ -4,7 +4,7 @@
// Use of this source code is governed by a MIT-style // Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// Gogs (Go Git Service) is a painless self-hosted Git Service. // Gogs is a painless self-hosted Git Service.
package main package main
import ( import (
@ -25,7 +25,7 @@ func init() {
func main() { func main() {
app := cli.NewApp() app := cli.NewApp()
app.Name = "Gogs" app.Name = "Gogs"
app.Usage = "Go Git Service: a painless self-hosted Git service" app.Usage = "A painless self-hosted Git service"
app.Version = APP_VER app.Version = APP_VER
app.Commands = []cli.Command{ app.Commands = []cli.Command{
cmd.CmdWeb, cmd.CmdWeb,

6
modules/bindata/bindata.go

File diff suppressed because one or more lines are too long

2
modules/setting/setting.go

@ -384,7 +384,7 @@ func NewContext() {
forcePathSeparator(LogRootPath) forcePathSeparator(LogRootPath)
sec := Cfg.Section("server") sec := Cfg.Section("server")
AppName = Cfg.Section("").Key("APP_NAME").MustString("Gogs: Go Git Service") AppName = Cfg.Section("").Key("APP_NAME").MustString("Gogs")
AppUrl = sec.Key("ROOT_URL").MustString("http://localhost:3000/") AppUrl = sec.Key("ROOT_URL").MustString("http://localhost:3000/")
if AppUrl[len(AppUrl)-1] != '/' { if AppUrl[len(AppUrl)-1] != '/' {
AppUrl += "/" AppUrl += "/"

10
public/css/gogs.css

@ -844,18 +844,14 @@ footer .ui.language .menu {
padding-bottom: 80px; padding-bottom: 80px;
} }
.home .logo { .home .logo {
max-width: 220px;
margin-bottom: 20px; margin-bottom: 20px;
} }
.home .hero h1,
.home .hero h2 {
font-family: 'PT Sans Narrow', sans-serif, 'Microsoft YaHei';
}
.home .hero h1 { .home .hero h1 {
font-size: 5.5em; font-size: 4.5em;
} }
.home .hero h2 { .home .hero h2 {
font-size: 3em; margin-top: 0;
font-size: 2em;
} }
.home .hero .octicon { .home .hero .octicon {
color: #d9453d; color: #d9453d;

9
public/less/_home.less

@ -1,18 +1,15 @@
.home { .home {
padding-bottom: @footer-margin * 2; padding-bottom: @footer-margin * 2;
.logo { .logo {
max-width: 220px;
margin-bottom: 20px; margin-bottom: 20px;
} }
.hero { .hero {
h1, h2 {
font-family: 'PT Sans Narrow', sans-serif, 'Microsoft YaHei';
}
h1 { h1 {
font-size: 5.5em; font-size: 4.5em;
} }
h2 { h2 {
font-size: 3em; margin-top: 0;
font-size: 2em;
} }
.octicon { .octicon {
color: #d9453d; color: #d9453d;

4
scripts/init/centos/gogs

@ -2,7 +2,7 @@
# #
# /etc/rc.d/init.d/gogs # /etc/rc.d/init.d/gogs
# #
# Runs the Gogs Go Git Service. # Runs the Gogs
# #
# #
# chkconfig: - 85 15 # chkconfig: - 85 15
@ -27,7 +27,7 @@ NAME=gogs
GOGS_HOME=/home/git/gogs GOGS_HOME=/home/git/gogs
GOGS_PATH=${GOGS_HOME}/$NAME GOGS_PATH=${GOGS_HOME}/$NAME
GOGS_USER=git GOGS_USER=git
SERVICENAME="Gogs Go Git Service" SERVICENAME="Gogs"
LOCKFILE=/var/lock/subsys/gogs LOCKFILE=/var/lock/subsys/gogs
LOGPATH=${GOGS_HOME}/log LOGPATH=${GOGS_HOME}/log
LOGFILE=${LOGPATH}/gogs.log LOGFILE=${LOGPATH}/gogs.log

2
scripts/init/debian/gogs vendored

@ -15,7 +15,7 @@
# PATH should only include /usr/* if it runs after the mountnfs.sh script # PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="Go Git Service" DESC="Gogs"
NAME=gogs NAME=gogs
SERVICEVERBOSE=yes SERVICEVERBOSE=yes
PIDFILE=/var/run/$NAME.pid PIDFILE=/var/run/$NAME.pid

4
scripts/init/suse/gogs

@ -2,7 +2,7 @@
# #
# /etc/init.d/gogs # /etc/init.d/gogs
# #
# Runs the Gogs Go Git Service. # Runs the Gogs
# #
### BEGIN INIT INFO ### BEGIN INIT INFO
@ -21,7 +21,7 @@ NAME=gogs
GOGS_HOME=/home/git/gogs GOGS_HOME=/home/git/gogs
GOGS_PATH=${GOGS_HOME}/$NAME GOGS_PATH=${GOGS_HOME}/$NAME
GOGS_USER=git GOGS_USER=git
SERVICENAME="Go Git Service" SERVICENAME="Gogs"
LOCKFILE=/var/lock/subsys/gogs LOCKFILE=/var/lock/subsys/gogs
LOGPATH=${GOGS_HOME}/log LOGPATH=${GOGS_HOME}/log
LOGFILE=${LOGPATH}/error.log LOGFILE=${LOGPATH}/error.log

2
scripts/systemd/gogs.service

@ -1,5 +1,5 @@
[Unit] [Unit]
Description=Gogs (Go Git Service) Description=Gogs
After=syslog.target After=syslog.target
After=network.target After=network.target
#After=mysqld.service #After=mysqld.service

2
scripts/windows/install-as-service.bat

@ -18,7 +18,7 @@ SET gogspath=C:\gogs
nssm install gogs "%gogspath%\gogs.exe" nssm install gogs "%gogspath%\gogs.exe"
nssm set gogs AppParameters "web" nssm set gogs AppParameters "web"
nssm set gogs Description "A painless self-hosted Git service." nssm set gogs Description "A painless self-hosted Git service."
nssm set gogs DisplayName "Gogs - Go Git Service" nssm set gogs DisplayName "Gogs"
nssm set gogs Start SERVICE_DELAYED_AUTO_START nssm set gogs Start SERVICE_DELAYED_AUTO_START
nssm set gogs AppStdout "%gogspath%\gogs.log" nssm set gogs AppStdout "%gogspath%\gogs.log"
nssm start gogs nssm start gogs

8
templates/base/head.tmpl

@ -3,8 +3,8 @@
<head data-suburl="{{AppSubUrl}}"> <head data-suburl="{{AppSubUrl}}">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}Gogs - Go Git Service{{end}}" /> <meta name="author" content="{{if .Repository}}{{.Owner.Name}}{{else}}Gogs{{end}}" />
<meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}Gogs (Go Git Service) is a painless self-hosted Git service{{end}}" /> <meta name="description" content="{{if .Repository}}{{.Repository.Name}}{{if .Repository.Description}} - {{.Repository.Description}}{{end}}{{else}}Gogs is a painless self-hosted Git service{{end}}" />
<meta name="keywords" content="go, git, self-hosted, gogs"> <meta name="keywords" content="go, git, self-hosted, gogs">
<meta name="referrer" content="no-referrer" /> <meta name="referrer" content="no-referrer" />
<meta name="_csrf" content="{{.CsrfToken}}" /> <meta name="_csrf" content="{{.CsrfToken}}" />
@ -30,9 +30,9 @@
<meta property="og:url" content="{{AppUrl}}" /> <meta property="og:url" content="{{AppUrl}}" />
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:title" content="{{AppName}}"> <meta property="og:title" content="{{AppName}}">
<meta property="og:description" content="Gogs (Go Git Service) is a painless self-hosted Git service."> <meta property="og:description" content="Gogs is a painless self-hosted Git service.">
<meta property="og:image" content="{{AppUrl}}img/gogs-lg.png" /> <meta property="og:image" content="{{AppUrl}}img/gogs-lg.png" />
<meta property="og:site_name" content="Gogs - Go Git Service"> <meta property="og:site_name" content="Gogs">
{{end}} {{end}}
<link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" /> <link rel="shortcut icon" href="{{AppSubUrl}}/img/favicon.png" />

6
templates/home.tmpl

@ -2,12 +2,12 @@
<div class="home"> <div class="home">
<div class="ui stackable middle very relaxed page grid"> <div class="ui stackable middle very relaxed page grid">
<div class="sixteen wide center aligned centered column"> <div class="sixteen wide center aligned centered column">
<div> <div class="logo">
<img class="logo" src="{{AppSubUrl}}/img/gogs-lg.png" /> <img src="{{AppSubUrl}}/img/favicon.png" />
</div> </div>
<div class="hero"> <div class="hero">
<h1 class="ui icon header title"> <h1 class="ui icon header title">
Gogs - Go Git Service Gogs
</h1> </h1>
<h2>{{.i18n.Tr "app_desc"}}</h2> <h2>{{.i18n.Tr "app_desc"}}</h2>
</div> </div>

Loading…
Cancel
Save