From f441fc7da2d50f632e0980508606d327b54dcfd2 Mon Sep 17 00:00:00 2001 From: sztanpet Date: Fri, 20 Jan 2017 16:15:00 +0100 Subject: [PATCH] Create a new "Customizing Gitea" page under Advanced (#76) * Create a new "Customizing Gitea" page under Advanced For now, the only customization documented is the /robots.txt one. Fixes #66 * Mention to restart Gitea when changing custom/robots.txt --- .../doc/advanced/customizing-gitea.en-us.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 content/doc/advanced/customizing-gitea.en-us.md diff --git a/content/doc/advanced/customizing-gitea.en-us.md b/content/doc/advanced/customizing-gitea.en-us.md new file mode 100644 index 0000000..d4c7ac8 --- /dev/null +++ b/content/doc/advanced/customizing-gitea.en-us.md @@ -0,0 +1,22 @@ +--- +date: "2017-01-20T16:00:00+02:00" +title: "Customizing Gitea" +slug: "customizing-gitea" +weight: 9 +toc: false +draft: false +menu: + sidebar: + parent: "advanced" + name: "Customizing Gitea" + weight: 9 + identifier: "customizing-gitea" +--- + +# Customizing Gitea + +The main way to customize Gitea is by using the `custom` folder. This is the central place to override and configure features. + +## Customizing /robots.txt + +To make Gitea serve your own `/robots.txt` (by default, an empty 404 status is served), simply create a file called `robots.txt` in the `custom` folder with the [expected contents](http://www.robotstxt.org/). **Note** that you have to restart Gitea for it to notice the new `robots.txt`.