Skip to content

Commit 692981e

Browse files
committed
Add alias definition to /en-us/upgrade-from-gitea page
Since aliases wasn't working locally for me, I also added entries to static/_redirects file so Netlify will handle the redirects Fixes go-gitea#7208
1 parent a08b484 commit 692981e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/content/doc/upgrade/from-gitea.en-us.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
date: "2021-09-02T16:00:00+08:00"
33
title: "Upgrade from an old Gitea"
4+
aliases:
5+
- /en-us/upgrade/
46
slug: "upgrade-from-gitea"
57
weight: 10
68
toc: false

docs/static/_redirects

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ https://gitea-docs.netlify.com/* https://docs.gitea.io/:splat 302!
1010
/en-us/ci-cd/ /en-us/integrations/ 302!
1111
/en-us/third-party-tools/ /en-us/integrations/ 302!
1212
/en-us/make/ /en-us/hacking-on-gitea/ 302!
13+
/en-us/upgrade/ /en-us/upgrade-from-gitea/ 302!
14+
/fr-fr/upgrade/ /fr-fr/upgrade-from-gitea/ 302!
15+
/zh-cn/upgrade/ /zh-cn/upgrade-from-gitea/ 302!
16+
/zh-tw/upgrade/ /zh-tw/upgrade-from-gitea/ 302!

0 commit comments

Comments
 (0)