Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
* upstream/main:
  Clean template/helper.go (go-gitea#23922)
  Remove `Repository.getFilesChanged` to fix Actions `paths` and `paths-ignore` filter (go-gitea#23920)
  Hardcode path to docker images (go-gitea#23955)
  Title can be empty when creating tag only (go-gitea#23917)
  Actions: Use default branch as ref when a branch/tag delete occurs (go-gitea#23910)
  Refactor authors dropdown (send get request from frontend to avoid long wait time) (go-gitea#23890)
  [skip ci] Updated translations via Crowdin
  Merge `push to create`, `open PR from push`, and `push options` docs articles into one (go-gitea#23744)
  Delete deleted release attachments immediately from storage (go-gitea#23913)
  More specific and unique feed name for NuGet install command template. (go-gitea#23889)
  Treat PRs with agit flow as fork PRs when triggering actions. (go-gitea#23884)
  Use graceful editorconfig loader to reduce errors when loading malformed editorconfigs (go-gitea#21257)
  Remove -v from vulncheck (go-gitea#23953)
  Improve permission check of packages (go-gitea#23879)
  Adjust some documentations titles (go-gitea#23941)
  • Loading branch information
zjjhot committed Apr 7, 2023
2 parents 512ce49 + ff2f479 commit f7b0d7e
Show file tree
Hide file tree
Showing 78 changed files with 628 additions and 374 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Build stage
FROM golang:1.20-alpine3.17 AS build-env
FROM docker.io/library/golang:1.20-alpine3.17 AS build-env

ARG GOPROXY
ENV GOPROXY ${GOPROXY:-direct}
Expand All @@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
# Begin env-to-ini build
RUN go build contrib/environment-to-ini/environment-to-ini.go

FROM alpine:3.17
FROM docker.io/library/alpine:3.17
LABEL maintainer="maintainers@gitea.io"

EXPOSE 22 3000
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.rootless
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Build stage
FROM golang:1.20-alpine3.17 AS build-env
FROM docker.io/library/golang:1.20-alpine3.17 AS build-env

ARG GOPROXY
ENV GOPROXY ${GOPROXY:-direct}
Expand All @@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
# Begin env-to-ini build
RUN go build contrib/environment-to-ini/environment-to-ini.go

FROM alpine:3.17
FROM docker.io/library/alpine:3.17
LABEL maintainer="maintainers@gitea.io"

EXPOSE 2222 3000
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ generate-go: $(TAGS_PREREQ)

.PHONY: security-check
security-check:
go run $(GOVULNCHECK_PACKAGE) -v ./...
go run $(GOVULNCHECK_PACKAGE) ./...

$(EXECUTABLE): $(GO_SOURCES) $(TAGS_PREREQ)
CGO_CFLAGS="$(CGO_CFLAGS)" $(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2017-01-01T16:00:00+02:00"
title: "Usage: Backup and Restore"
title: "Backup and Restore"
slug: "backup-and-restore"
weight: 11
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/administration/command-line.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2017-01-01T16:00:00+02:00"
title: "Usage: Command Line"
title: "Gitea Command Line"
slug: "command-line"
weight: 1
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/administration/email-setup.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2019-10-15T10:10:00+05:00"
title: "Usage: Email setup"
title: "Email setup"
slug: "email-setup"
weight: 12
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/administration/fail2ban-setup.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2018-05-11T11:00:00+02:00"
title: "Usage: Setup fail2ban"
title: "Fail2ban Setup "
slug: "fail2ban-setup"
weight: 16
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/administration/fail2ban-setup.zh-cn.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2022-08-01T00:00:00+00:00"
title: "使用: 设置 Fail2ban"
title: "设置 Fail2ban"
slug: "fail2ban-setup"
weight: 16
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/administration/git-lfs-support.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2019-10-06T08:00:00+05:00"
title: "Usage: Git LFS setup"
title: "Git LFS setup"
slug: "git-lfs-setup"
weight: 12
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/administration/https-support.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2018-06-02T11:00:00+02:00"
title: "Usage: HTTPS setup"
title: "HTTPS setup"
slug: "https-setup"
weight: 12
toc: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2019-04-02T17:06:00+01:00"
title: "Advanced: Logging Configuration"
title: "Logging Configuration"
slug: "logging-configuration"
weight: 40
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/administration/reverse-proxies.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2018-05-22T11:00:00+00:00"
title: "Usage: Reverse Proxies"
title: "Reverse Proxies"
slug: "reverse-proxies"
weight: 16
toc: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2019-12-31T13:55:00+05:00"
title: "Advanced: Search Engines Indexation"
title: "Search Engines Indexation"
slug: "search-engines-indexation"
weight: 60
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/installation/comparison.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2018-05-07T13:00:00+02:00"
title: "Gitea compared to other Git hosting options"
title: "Compared to other Git hosting"
slug: "comparison"
weight: 5
toc: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ menu:

# Database Preparation

You need a database to use Gitea. Gitea supports PostgreSQL (>=10), MySQL (>=5.7), SQLite, and MSSQL (>=2008R2 SP3). This page will guide into preparing database. Only PostgreSQL and MySQL will be covered here since those database engines are widely-used in production.
You need a database to use Gitea. Gitea supports PostgreSQL (>=10), MySQL (>=5.7), SQLite, and MSSQL (>=2008R2 SP3). This page will guide into preparing database. Only PostgreSQL and MySQL will be covered here since those database engines are widely-used in production. If you plan to use SQLite, you can ignore this chapter.

Database instance can be on same machine as Gitea (local database setup), or on different machine (remote database).

Expand Down
30 changes: 16 additions & 14 deletions docs/content/doc/installation/from-package.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,25 @@ menu:
identifier: "install-from-package"
---

# Installation from package

**Table of Contents**

{{< toc >}}

# Official packages

## macOS

Currently, the only supported method of installation on MacOS is [Homebrew](http://brew.sh/).
Following the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide may work,
but is not supported. To install Gitea via `brew`:

```
brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea
brew install gitea
```

# Unofficial packages

## Alpine Linux

Alpine Linux has [Gitea](https://pkgs.alpinelinux.org/packages?name=gitea&branch=edge) in its community repository which follows the latest stable version.
Expand Down Expand Up @@ -74,17 +87,6 @@ choco install gitea

Or follow the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide.

## macOS

Currently, the only supported method of installation on MacOS is [Homebrew](http://brew.sh/).
Following the [deployment from binary]({{< relref "from-binary.en-us.md" >}}) guide may work,
but is not supported. To install Gitea via `brew`:

```
brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea
brew install gitea
```

## FreeBSD

A FreeBSD port `www/gitea` is available. To install the pre-built binary package:
Expand All @@ -108,7 +110,7 @@ is in `/usr/local/etc/rc.d/gitea`.

To enable Gitea to run as a service, run `sysrc gitea_enable=YES` and start it with `service gitea start`.

## Third-party
## Others

Various other third-party packages of Gitea exist.
To see a curated list, head over to [awesome-gitea](https://gitea.com/gitea/awesome-gitea/src/branch/master/README.md#user-content-packages).
Expand Down
24 changes: 13 additions & 11 deletions docs/content/doc/installation/from-package.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,23 @@ menu:
identifier: "install-from-package"
---

# 使用包管理器安装

**目录**

{{< toc >}}

# 官方包管理器

## macOS

macOS 平台下当前我们仅支持通过 `brew` 来安装。如果你没有安装 [Homebrew](http://brew.sh/),你也可以查看 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}})。在你安装了 `brew` 之后, 你可以执行以下命令:

```
brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea
brew install gitea
```

# 非官方包管理器

## Alpine Linux

Gitea 已经包含在 Alpine Linux 的[社区存储库](https://pkgs.alpinelinux.org/packages?name=gitea&branch=edge)中,版本与 Gitea 官方保持同步。
Expand Down Expand Up @@ -66,15 +77,6 @@ choco install gitea

你也可以 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}}) 。

## macOS

macOS 平台下当前我们仅支持通过 `brew` 来安装。如果你没有安装 [Homebrew](http://brew.sh/),你也可以查看 [从二进制安装]({{< relref "from-binary.zh-cn.md" >}})。在你安装了 `brew` 之后, 你可以执行以下命令:

```
brew tap gitea/tap https://gitea.com/gitea/homebrew-gitea
brew install gitea
```

## FreeBSD

可以使用 Gitea 的 FreeBSD port `www/gitea`。 请安装预构建的二进制包:
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/usage/agit-support.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: " 2022-09-01T20:50:42+0000"
title: "Usage: Agit Setup"
title: "Agit Setup"
slug: "agit-setup"
weight: 12
toc: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2018-05-10T16:00:00+02:00"
title: "Usage: Issue and Pull Request templates"
title: "Issue and Pull Request templates"
slug: "issue-pull-request-templates"
weight: 15
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/usage/labels.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2023-03-04T19:00:00+00:00"
title: "Usage: Labels"
title: "Labels"
slug: "labels"
weight: 13
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/usage/linked-references.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2019-11-21T17:00:00-03:00"
title: "Usage: Automatically Linked References"
title: "Automatically Linked References"
slug: "automatically-linked-references"
weight: 15
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/usage/merge-message-templates.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2022-08-31T17:35:40+08:00"
title: "Usage: Merge Message templates"
title: "Merge Message templates"
slug: "merge-message-templates"
weight: 15
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/usage/pull-request.en-us.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2018-06-01T19:00:00+02:00"
title: "Usage: Pull Request"
title: "Pull Request"
slug: "pull-request"
weight: 13
toc: false
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/usage/pull-request.zh-tw.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date: "2018-06-01T19:00:00+02:00"
title: "使用: 合併請求"
title: "合併請求"
slug: "pull-request"
weight: 13
toc: false
Expand Down
33 changes: 0 additions & 33 deletions docs/content/doc/usage/push-options.en-us.md

This file was deleted.

33 changes: 0 additions & 33 deletions docs/content/doc/usage/push-options.zh-tw.md

This file was deleted.

0 comments on commit f7b0d7e

Please sign in to comment.