Skip to content

Commit 92fb89f

Browse files
Clean up docs (#5274)
* make docs more clear * make docs more clear * Add analytics * Update customizing-gitea.en-us.md * Update app.ini.sample
1 parent 0fd56a7 commit 92fb89f

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

custom/conf/app.ini.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ COOKIE_REMEMBER_NAME = gitea_incredible
265265
REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
266266
; The minimum password length for new Users
267267
MIN_PASSWORD_LENGTH = 6
268-
; True when users are allowed to import local server paths
268+
; Set to true to allow users to import local server paths
269269
IMPORT_LOCAL_PATHS = false
270-
; Prevent all users (including admin) from creating custom git hooks
270+
; Set to true to prevent all users (including admin) from creating custom git hooks
271271
DISABLE_GIT_HOOKS = false
272272

273273
[openid]

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
160160
information.
161161
- `REVERSE_PROXY_AUTHENTICATION_USER`: **X-WEBAUTH-USER**: Header name for reverse proxy
162162
authentication.
163-
- `DISABLE_GIT_HOOKS`: **false**: Prevent all users (including admin) from creating custom
163+
- `DISABLE_GIT_HOOKS`: **false**: Set to `true` to prevent all users (including admin) from creating custom
164164
git hooks.
165-
- `IMPORT_LOCAL_PATHS`: **false**: Prevent all users (including admin) from importing local path on server.
165+
- `IMPORT_LOCAL_PATHS`: **false**: Set to `false` to prevent all users (including admin) from importing local path on server.
166166

167167
## OpenID (`openid`)
168168

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,14 @@ Apart from `extra_links.tmpl` and `extra_tabs.tmpl`, there are other useful temp
8888
- `body_outer_post.tmpl`, before the bottom `<footer>` element.
8989
- `footer.tmpl`, right before the end of the `<body>` tag, a good place for additional Javascript.
9090

91+
## Adding Analytics to Gitea
92+
93+
Google Analytics, Matomo (previously Piwik), and other analytics services can be added to Gitea. To add the tracking code, refer to the `Other additions to the page` section of this document, and add the JavaScript to the `custom/templates/custom/header.tmpl` file.
94+
9195
## Customizing gitignores, labels, licenses, locales, and readmes.
9296

9397
Place custom files in corresponding sub-folder under `custom/options`.
9498

9599
## Customizing the look of Gitea
96100

97-
Gitea has two built-in themes, the default theme `gitea`, and a dark theme `arc-green`. To change the look of your Gitea install change the value of `DEFAULT_THEME` in the [ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui) section of `app.ini` to another one of the available options.
101+
As of version 1.6.0 Gitea has built-in themes. The two built-in themes are, the default theme `gitea`, and a dark theme `arc-green`. To change the look of your Gitea install change the value of `DEFAULT_THEME` in the [ui](https://docs.gitea.io/en-us/config-cheat-sheet/#ui-ui) section of `app.ini` to another one of the available options.

0 commit comments

Comments
 (0)