summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--.gitignore5
-rw-r--r--Makefile19
-rw-r--r--cgit-doc.css3
-rw-r--r--cgitrc.5.txt112
4 files changed, 82 insertions, 57 deletions
diff --git a/.gitignore b/.gitignore
index 1e016e5..487728b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,2 +4,7 @@ cgit.conf
4VERSION 4VERSION
5cgitrc.5
6cgitrc.5.fo
7cgitrc.5.html
8cgitrc.5.pdf
9cgitrc.5.xml
5*.o 10*.o
diff --git a/Makefile b/Makefile
index 33c606d..707d446 100644
--- a/Makefile
+++ b/Makefile
@@ -102,3 +102,4 @@ endif
102 102
103.PHONY: all libgit test install uninstall clean force-version get-git 103.PHONY: all libgit test install uninstall clean force-version get-git \
104 doc man-doc html-doc clean-doc
104 105
@@ -151,5 +152,19 @@ uninstall:
151 152
152clean: 153doc: man-doc html-doc pdf-doc
154
155man-doc: cgitrc.5.txt
156 a2x -f manpage cgitrc.5.txt
157
158html-doc: cgitrc.5.txt
159 a2x -f xhtml --stylesheet=cgit-doc.css cgitrc.5.txt
160
161pdf-doc: cgitrc.5.txt
162 a2x -f pdf cgitrc.5.txt
163
164clean: clean-doc
153 rm -f cgit VERSION *.o *.d 165 rm -f cgit VERSION *.o *.d
154 166
167clean-doc:
168 rm -f cgitrc.5 cgitrc.5.html cgitrc.5.pdf cgitrc.5.xml cgitrc.5.fo
169
155get-git: 170get-git:
diff --git a/cgit-doc.css b/cgit-doc.css
new file mode 100644
index 0000000..5a399b6
--- a/dev/null
+++ b/cgit-doc.css
@@ -0,0 +1,3 @@
1div.variablelist dt {
2 margin-top: 1em;
3}
diff --git a/cgitrc.5.txt b/cgitrc.5.txt
index fd299ae..7879f75 100644
--- a/cgitrc.5.txt
+++ b/cgitrc.5.txt
@@ -1,3 +1,3 @@
1CGITRC 1CGITRC(5)
2====== 2========
3 3
@@ -9,4 +9,4 @@ NAME
9 9
10DESCRIPTION 10SYNOPSIS
11----------- 11--------
12Cgitrc contains all runtime settings for cgit, including the list of git 12Cgitrc contains all runtime settings for cgit, including the list of git
@@ -18,3 +18,3 @@ GLOBAL SETTINGS
18--------------- 18---------------
19agefile 19agefile::
20 Specifies a path, relative to each repository path, which can be used 20 Specifies a path, relative to each repository path, which can be used
@@ -25,3 +25,3 @@ agefile
25 25
26cache-root 26cache-root::
27 Path used to store the cgit cache entries. Default value: 27 Path used to store the cgit cache entries. Default value:
@@ -29,3 +29,3 @@ cache-root
29 29
30cache-dynamic-ttl 30cache-dynamic-ttl::
31 Number which specifies the time-to-live, in minutes, for the cached 31 Number which specifies the time-to-live, in minutes, for the cached
@@ -34,3 +34,3 @@ cache-dynamic-ttl
34 34
35cache-repo-ttl 35cache-repo-ttl::
36 Number which specifies the time-to-live, in minutes, for the cached 36 Number which specifies the time-to-live, in minutes, for the cached
@@ -38,3 +38,3 @@ cache-repo-ttl
38 38
39cache-root-ttl 39cache-root-ttl::
40 Number which specifies the time-to-live, in minutes, for the cached 40 Number which specifies the time-to-live, in minutes, for the cached
@@ -42,3 +42,3 @@ cache-root-ttl
42 42
43cache-size 43cache-size::
44 The maximum number of entries in the cgit cache. Default value: "0" 44 The maximum number of entries in the cgit cache. Default value: "0"
@@ -46,3 +46,3 @@ cache-size
46 46
47cache-static-ttl 47cache-static-ttl::
48 Number which specifies the time-to-live, in minutes, for the cached 48 Number which specifies the time-to-live, in minutes, for the cached
@@ -51,3 +51,3 @@ cache-static-ttl
51 51
52clone-prefix 52clone-prefix::
53 Space-separated list of common prefixes which, when combined with a 53 Space-separated list of common prefixes which, when combined with a
@@ -57,3 +57,3 @@ clone-prefix
57 57
58css 58css::
59 Url which specifies the css document to include in all cgit pages. 59 Url which specifies the css document to include in all cgit pages.
@@ -61,3 +61,3 @@ css
61 61
62enable-index-links 62enable-index-links::
63 Flag which, when set to "1", will make cgit generate extra links for 63 Flag which, when set to "1", will make cgit generate extra links for
@@ -66,3 +66,3 @@ enable-index-links
66 66
67enable-log-filecount 67enable-log-filecount::
68 Flag which, when set to "1", will make cgit print the number of 68 Flag which, when set to "1", will make cgit print the number of
@@ -71,3 +71,3 @@ enable-log-filecount
71 71
72enable-log-linecount 72enable-log-linecount::
73 Flag which, when set to "1", will make cgit print the number of added 73 Flag which, when set to "1", will make cgit print the number of added
@@ -76,3 +76,3 @@ enable-log-linecount
76 76
77favicon 77favicon::
78 Url used as link to a shortcut icon for cgit. If specified, it is 78 Url used as link to a shortcut icon for cgit. If specified, it is
@@ -81,3 +81,3 @@ favicon
81 81
82footer 82footer::
83 The content of the file specified with this option will be included 83 The content of the file specified with this option will be included
@@ -86,3 +86,3 @@ footer
86 86
87header 87header::
88 The content of the file specified with this option will be included 88 The content of the file specified with this option will be included
@@ -90,3 +90,3 @@ header
90 90
91include 91include::
92 Name of a configfile to include before the rest of the current config- 92 Name of a configfile to include before the rest of the current config-
@@ -94,3 +94,3 @@ include
94 94
95index-header 95index-header::
96 The content of the file specified with this option will be included 96 The content of the file specified with this option will be included
@@ -100,3 +100,3 @@ index-header
100 100
101index-info 101index-info::
102 The content of the file specified with this option will be included 102 The content of the file specified with this option will be included
@@ -106,3 +106,3 @@ index-info
106 106
107local-time 107local-time::
108 Flag which, if set to "1", makes cgit print commit and tag times in the 108 Flag which, if set to "1", makes cgit print commit and tag times in the
@@ -110,3 +110,3 @@ local-time
110 110
111logo 111logo::
112 Url which specifies the source of an image which will be used as a logo 112 Url which specifies the source of an image which will be used as a logo
@@ -114,3 +114,3 @@ logo
114 114
115logo-link 115logo-link::
116 Url loaded when clicking on the cgit logo image. If unspecified the 116 Url loaded when clicking on the cgit logo image. If unspecified the
@@ -119,3 +119,3 @@ logo-link
119 119
120max-commit-count 120max-commit-count::
121 Specifies the number of entries to list per page in "log" view. Default 121 Specifies the number of entries to list per page in "log" view. Default
@@ -123,3 +123,3 @@ max-commit-count
123 123
124max-message-length 124max-message-length::
125 Specifies the maximum number of commit message characters to display in 125 Specifies the maximum number of commit message characters to display in
@@ -127,3 +127,3 @@ max-message-length
127 127
128max-repo-count 128max-repo-count::
129 Specifies the number of entries to list per page on therepository 129 Specifies the number of entries to list per page on therepository
@@ -131,3 +131,3 @@ max-repo-count
131 131
132max-repodesc-length 132max-repodesc-length::
133 Specifies the maximum number of repo description characters to display 133 Specifies the maximum number of repo description characters to display
@@ -135,3 +135,3 @@ max-repodesc-length
135 135
136max-stats 136max-stats::
137 Set the default maximum statistics period. Valid values are "week", 137 Set the default maximum statistics period. Valid values are "week",
@@ -140,3 +140,3 @@ max-stats
140 140
141module-link 141module-link::
142 Text which will be used as the formatstring for a hyperlink when a 142 Text which will be used as the formatstring for a hyperlink when a
@@ -146,3 +146,3 @@ module-link
146 146
147nocache 147nocache::
148 If set to the value "1" caching will be disabled. This settings is 148 If set to the value "1" caching will be disabled. This settings is
@@ -151,3 +151,3 @@ nocache
151 151
152renamelimit 152renamelimit::
153 Maximum number of files to consider when detecting renames. The value 153 Maximum number of files to consider when detecting renames. The value
@@ -156,3 +156,3 @@ renamelimit
156 156
157repo.group 157repo.group::
158 A value for the current repository group, which all repositories 158 A value for the current repository group, which all repositories
@@ -160,3 +160,3 @@ repo.group
160 160
161robots 161robots::
162 Text used as content for the "robots" meta-tag. Default value: 162 Text used as content for the "robots" meta-tag. Default value:
@@ -164,3 +164,3 @@ robots
164 164
165root-desc 165root-desc::
166 Text printed below the heading on the repository index page. Default 166 Text printed below the heading on the repository index page. Default
@@ -168,3 +168,3 @@ root-desc
168 168
169root-readme: 169root-readme::
170 The content of the file specified with this option will be included 170 The content of the file specified with this option will be included
@@ -173,3 +173,3 @@ root-readme:
173 173
174root-title 174root-title::
175 Text printed as heading on the repository index page. Default value: 175 Text printed as heading on the repository index page. Default value:
@@ -177,3 +177,3 @@ root-title
177 177
178snapshots 178snapshots::
179 Text which specifies the default (and allowed) set of snapshot formats 179 Text which specifies the default (and allowed) set of snapshot formats
@@ -187,3 +187,3 @@ snapshots
187 187
188summary-branches 188summary-branches::
189 Specifies the number of branches to display in the repository "summary" 189 Specifies the number of branches to display in the repository "summary"
@@ -191,3 +191,3 @@ summary-branches
191 191
192summary-log 192summary-log::
193 Specifies the number of log entries to display in the repository 193 Specifies the number of log entries to display in the repository
@@ -195,3 +195,3 @@ summary-log
195 195
196summary-tags 196summary-tags::
197 Specifies the number of tags to display in the repository "summary" 197 Specifies the number of tags to display in the repository "summary"
@@ -199,3 +199,3 @@ summary-tags
199 199
200virtual-root 200virtual-root::
201 Url which, if specified, will be used as root for all cgit links. It 201 Url which, if specified, will be used as root for all cgit links. It
@@ -209,3 +209,3 @@ REPOSITORY SETTINGS
209------------------- 209-------------------
210repo.clone-url 210repo.clone-url::
211 A list of space-separated urls which can be used to clone this repo. 211 A list of space-separated urls which can be used to clone this repo.
@@ -213,3 +213,3 @@ repo.clone-url
213 213
214repo.defbranch 214repo.defbranch::
215 The name of the default branch for this repository. If no such branch 215 The name of the default branch for this repository. If no such branch
@@ -218,6 +218,6 @@ repo.defbranch
218 218
219repo.desc 219repo.desc::
220 The value to show as repository description. Default value: none. 220 The value to show as repository description. Default value: none.
221 221
222repo.enable-log-filecount 222repo.enable-log-filecount::
223 A flag which can be used to disable the global setting 223 A flag which can be used to disable the global setting
@@ -225,3 +225,3 @@ repo.enable-log-filecount
225 225
226repo.enable-log-linecount 226repo.enable-log-linecount::
227 A flag which can be used to disable the global setting 227 A flag which can be used to disable the global setting
@@ -229,3 +229,3 @@ repo.enable-log-linecount
229 229
230repo.max-stats 230repo.max-stats::
231 Override the default maximum statistics period. Valid values are equal 231 Override the default maximum statistics period. Valid values are equal
@@ -234,6 +234,6 @@ repo.max-stats
234 234
235repo.name 235repo.name::
236 The value to show as repository name. Default value: <repo.url>. 236 The value to show as repository name. Default value: <repo.url>.
237 237
238repo.owner 238repo.owner::
239 A value used to identify the owner of the repository. Default value: 239 A value used to identify the owner of the repository. Default value:
@@ -241,3 +241,3 @@ repo.owner
241 241
242repo.path 242repo.path::
243 An absolute path to the repository directory. For non-bare repositories 243 An absolute path to the repository directory. For non-bare repositories
@@ -245,3 +245,3 @@ repo.path
245 245
246repo.readme 246repo.readme::
247 A path (relative to <repo.path>) which specifies a file to include 247 A path (relative to <repo.path>) which specifies a file to include
@@ -249,3 +249,3 @@ repo.readme
249 249
250repo.snapshots 250repo.snapshots::
251 A mask of allowed snapshot-formats for this repo, restricted by the 251 A mask of allowed snapshot-formats for this repo, restricted by the
@@ -253,3 +253,3 @@ repo.snapshots
253 253
254repo.url 254repo.url::
255 The relative url used to access the repository. This must be the first 255 The relative url used to access the repository. This must be the first
@@ -261,2 +261,3 @@ EXAMPLE CGITRC FILE
261 261
262....
262# Enable caching of up to 1000 output entriess 263# Enable caching of up to 1000 output entriess
@@ -370,2 +371,3 @@ repo.enable-log-linecount=0
370repo.max-stats=month 371repo.max-stats=month
372....
371 373