Skip to content
This repository was archived by the owner on Dec 2, 2017. It is now read-only.

Commit 3da9461

Browse files
cez81lunny
authored andcommitted
Document customizing gitignores, labels, licenses, locales, and readmes (#124)
1 parent 8cfd04e commit 3da9461

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

content/doc/advanced/customizing-gitea.en-us.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ Gitea will create the folder for you and prepopulate it with a `conf` folder ins
2222

2323
If you can't find the `custom` folder next to the binary, please check the `GITEA_CUSTOM` environment variable, that can be used to override the default path to something else. `GITEA_CUSTOM` might be set for example in your launch script file. Please have a look [here](https://docs.gitea.io/en-us/specific-variables/) for a complete list of environment variables.
2424

25+
**Note** that you have to restart Gitea for it to notice the changes.
26+
2527
## Customizing /robots.txt
2628

2729
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/).
2830

29-
**Note** that you have to restart Gitea for it to notice the new `robots.txt`.
30-
3131
## Serving custom public files
3232

3333
To make Gitea serve custom public files (like pages and images), use the folder `custom/public/` as the webroot. Symbolic links will be followed.
@@ -48,3 +48,7 @@ When you find the correct .tmpl file, you need to copy it in the `custom/templat
4848

4949
You can now customize the template you copied in `custom/templates`, being carefully to not break the Gitea syntax.
5050
Any statement contained inside `{{` and `}}` are Gitea templete's syntax and shouldn't be touch, unless you know what are you doing.
51+
52+
## Customizing gitignores, labels, licenses, locales, and readmes.
53+
54+
Place your own files in corresponding sub-folder under `custom/options`.

0 commit comments

Comments
 (0)