-rw-r--r-- | cgit.c | 2 | ||||
-rw-r--r-- | cgit.css | 2 | ||||
-rw-r--r-- | cgitrc.5.txt | 9 |
3 files changed, 10 insertions, 3 deletions
@@ -230,13 +230,13 @@ static void prepare_context(struct cgit_context *ctx) | |||
230 | ctx->cfg.cache_max_create_time = 5; | 230 | ctx->cfg.cache_max_create_time = 5; |
231 | ctx->cfg.cache_repo_ttl = 5; | 231 | ctx->cfg.cache_repo_ttl = 5; |
232 | ctx->cfg.cache_root = CGIT_CACHE_ROOT; | 232 | ctx->cfg.cache_root = CGIT_CACHE_ROOT; |
233 | ctx->cfg.cache_root_ttl = 5; | 233 | ctx->cfg.cache_root_ttl = 5; |
234 | ctx->cfg.cache_static_ttl = -1; | 234 | ctx->cfg.cache_static_ttl = -1; |
235 | ctx->cfg.css = "/cgit.css"; | 235 | ctx->cfg.css = "/cgit.css"; |
236 | ctx->cfg.logo = "/git-logo.png"; | 236 | ctx->cfg.logo = "/cgit.png"; |
237 | ctx->cfg.local_time = 0; | 237 | ctx->cfg.local_time = 0; |
238 | ctx->cfg.max_repo_count = 50; | 238 | ctx->cfg.max_repo_count = 50; |
239 | ctx->cfg.max_commit_count = 50; | 239 | ctx->cfg.max_commit_count = 50; |
240 | ctx->cfg.max_lock_attempts = 5; | 240 | ctx->cfg.max_lock_attempts = 5; |
241 | ctx->cfg.max_msg_len = 80; | 241 | ctx->cfg.max_msg_len = 80; |
242 | ctx->cfg.max_repodesc_len = 80; | 242 | ctx->cfg.max_repodesc_len = 80; |
@@ -152,13 +152,13 @@ table.list td.logsubject { | |||
152 | font-weight: bold; | 152 | font-weight: bold; |
153 | } | 153 | } |
154 | 154 | ||
155 | table.list td.logmsg { | 155 | table.list td.logmsg { |
156 | font-family: monospace; | 156 | font-family: monospace; |
157 | white-space: pre; | 157 | white-space: pre; |
158 | padding: 1em 0em 2em 0em; | 158 | padding: 1em 0.5em 2em 0.5em; |
159 | } | 159 | } |
160 | 160 | ||
161 | table.list td a { | 161 | table.list td a { |
162 | color: black; | 162 | color: black; |
163 | } | 163 | } |
164 | 164 | ||
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 4d656fe..3c35b02 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt | |||
@@ -11,12 +11,19 @@ SYNOPSIS | |||
11 | -------- | 11 | -------- |
12 | Cgitrc contains all runtime settings for cgit, including the list of git | 12 | Cgitrc contains all runtime settings for cgit, including the list of git |
13 | repositories, formatted as a line-separated list of NAME=VALUE pairs. Blank | 13 | repositories, formatted as a line-separated list of NAME=VALUE pairs. Blank |
14 | lines, and lines starting with '#', are ignored. | 14 | lines, and lines starting with '#', are ignored. |
15 | 15 | ||
16 | 16 | ||
17 | LOCATION | ||
18 | -------- | ||
19 | The default location of cgitrc, defined at compile time, is /etc/cgitrc. At | ||
20 | runtime, cgit will consult the environment variable CGIT_CONFIG and, if | ||
21 | defined, use its value instead. | ||
22 | |||
23 | |||
17 | GLOBAL SETTINGS | 24 | GLOBAL SETTINGS |
18 | --------------- | 25 | --------------- |
19 | about-filter:: | 26 | about-filter:: |
20 | Specifies a command which will be invoked to format the content of | 27 | Specifies a command which will be invoked to format the content of |
21 | about pages (both top-level and for each repository). The command will | 28 | about pages (both top-level and for each repository). The command will |
22 | get the content of the about-file on its STDIN, and the STDOUT from the | 29 | get the content of the about-file on its STDIN, and the STDOUT from the |
@@ -129,13 +136,13 @@ index-info:: | |||
129 | local-time:: | 136 | local-time:: |
130 | Flag which, if set to "1", makes cgit print commit and tag times in the | 137 | Flag which, if set to "1", makes cgit print commit and tag times in the |
131 | servers timezone. Default value: "0". | 138 | servers timezone. Default value: "0". |
132 | 139 | ||
133 | logo:: | 140 | logo:: |
134 | Url which specifies the source of an image which will be used as a logo | 141 | Url which specifies the source of an image which will be used as a logo |
135 | on all cgit pages. | 142 | on all cgit pages. Default value: "/cgit.png". |
136 | 143 | ||
137 | logo-link:: | 144 | logo-link:: |
138 | Url loaded when clicking on the cgit logo image. If unspecified the | 145 | Url loaded when clicking on the cgit logo image. If unspecified the |
139 | calculated url of the repository index page will be used. Default | 146 | calculated url of the repository index page will be used. Default |
140 | value: none. | 147 | value: none. |
141 | 148 | ||