config.rb
... ...
@@ -1,276 +0,0 @@
1
- # Launch Gollum using a specific git adapter. See https://github.com/gollum/gollum/wiki/Git-adapters
2
- # Default: rugged
3
- #
4
- # Equivalent to --adapter [ADAPTER]
5
-
6
- module Gollum
7
- # to require 'my_adapter':
8
- Gollum::GIT_ADAPTER = "my"
9
- Gollum::TemplateFilter.add_filter('{{current_date}}', & -> () { Time.now.strftime("%Y-%m-%d") })
10
-
11
- end
12
-
13
-
14
- wiki_options = {
15
-
16
- ##############################################################################
17
- # Command line option equivalents
18
-
19
- #-----------------------------------------------------------------------------
20
-
21
- #-----------------------------------------------------------------------------
22
- # Enable file uploads. If set to 'dir', Gollum will store all uploads in the
23
- # /uploads/ directory in repository root. If set to 'page', Gollum will
24
- # store each upload at the currently edited page.
25
- # Default: false
26
-
27
- # Equivalent to --allow-uploads dir
28
- #allow_uploads: true,
29
-
30
- # Equivalent to --allow-uploads page
31
- #allow_uploads: true,
32
- #per_page_uploads: true,
33
-
34
- #-----------------------------------------------------------------------------
35
- # Set the path to look for static assets.
36
- #
37
- # Equivalent to --assets [PATH]
38
-
39
- #static_assets_path: [PATH]
40
-
41
- #-----------------------------------------------------------------------------
42
- # Tell Gollum that the git repository should be treated as bare.
43
- #
44
- # Equivalent to --bare
45
-
46
- #repo_is_bare: true,
47
-
48
- #-----------------------------------------------------------------------------
49
- # Specify the leading portion of all Gollum URLs (path info). Setting this to
50
- # /wiki will make the wiki accessible under http://localhost:4567/wiki/.
51
- # Default: /
52
- #
53
- # Equivalent to --base-path [PATH]
54
-
55
- #base_path: [PATH],
56
-
57
- #-----------------------------------------------------------------------------
58
- # Enable support for annotations using CriticMarkup.
59
- #
60
- # Equivalent to --critic-markup
61
-
62
- #critic_markup: true,
63
-
64
- #-----------------------------------------------------------------------------
65
- # Tell Gollum to inject custom CSS into each page. Uses custom.css from wiki
66
- # root
67
- #
68
- # Equivalent to --css
69
-
70
- #css: true,
71
-
72
- #-----------------------------------------------------------------------------
73
- # Parse and interpret emoji tags (e.g. :heart:) except when the leading colon
74
- # is backslashed (e.g. \:heart:).
75
- #
76
- # Equivalent to --emoji
77
-
78
- #emoji: true,
79
-
80
- #-----------------------------------------------------------------------------
81
- # Tell Gollum to use the first <h1> as page title.
82
- #
83
- # Equivalent to --h1-title
84
-
85
- #h1_title: true,
86
-
87
- #-----------------------------------------------------------------------------
88
- # Specify the hostname or IP address to listen on.
89
- # Default: '0.0.0.0'.
90
- #
91
- # Equivalent to --host [HOST]
92
-
93
- # ???
94
-
95
- #-----------------------------------------------------------------------------
96
- # Launch Gollum in "console mode", with a predefined API.
97
- #
98
- # Equivalent to --irb
99
-
100
- # ???
101
-
102
- #-----------------------------------------------------------------------------
103
- # Tell Gollum to inject custom JS into each page. Uses custom.js from wiki
104
- # root.
105
- #
106
- # Equivalent to --js
107
-
108
- #js: true,
109
-
110
- #-----------------------------------------------------------------------------
111
- # Compatibility with 4.x
112
- # https://github.com/gollum/gollum/wiki/5.0-release-notes#compatibility-option
113
- #
114
- # Internal links resolve case-insensitively, will treat spaces as hyphens, and
115
- # will match the first page found with a certain filename, anywhere in the
116
- # repository. Provides compatibility with Gollum 4.x.
117
- #
118
- # Equivalent to --lenient-tag-lookup
119
-
120
- #hyphened_tag_lookup: true,
121
- #case_insensitive_tag_lookup: true,
122
- #global_tag_lookup: true,
123
-
124
- #-----------------------------------------------------------------------------
125
- # Enables MathJax (renders mathematical equations). By default, uses the
126
- # TeX-AMS-MML_HTMLorMML config with the autoload-all extension.5
127
- #
128
- # Equivalent to --mathjax
129
-
130
- #mathjax: true,
131
-
132
- #-----------------------------------------------------------------------------
133
- # Specify path to a custom MathJax configuration.
134
- # Default: mathjax.config.js file from repository root.
135
- #
136
- # Equivalent to --mathjax-config [FILE]
137
-
138
- #mathjax_config: [FILE],
139
-
140
- #-----------------------------------------------------------------------------
141
- # Do not render metadata tables in pages.
142
- #
143
- # Equivalent to --no-display-metadata
144
-
145
- #display_metadata: false,
146
-
147
- #-----------------------------------------------------------------------------
148
- # Disable the feature of editing pages.
149
- # Default: true
150
- #
151
- # Equivalent to --no-edit
152
-
153
- #allow_editing: false,
154
-
155
- #-----------------------------------------------------------------------------
156
- # Specify the subdirectory for all pages. If set, Gollum will only serve pages
157
- # from this directory and its subdirectories.
158
- # Default: repository root.
159
- #
160
- # Equivalent to --page-file-dir [PATH]
161
-
162
- #page_file_dir: [PATH],
163
-
164
- #-----------------------------------------------------------------------------
165
- # Follow pages across renames in the History view.
166
- # Default: true.
167
-
168
- # Equivalent to --follow-renames
169
- #follow_renames: true,
170
-
171
- # Equivalent to --no-follow-renames
172
- #follow_renames: false,
173
-
174
- #-----------------------------------------------------------------------------
175
- # Specify the port to bind Gollum with.
176
- # Default: 4567.
177
- #
178
- # Equivalent to --port [PORT]
179
-
180
- # ???
181
-
182
- #-----------------------------------------------------------------------------
183
- # Specify the git branch to serve.
184
- # Default: master.
185
- #
186
- # Equivalent to --ref [REF]
187
-
188
- #ref: [REF],
189
-
190
- #-----------------------------------------------------------------------------
191
- # Use static assets.
192
- # Defaults to false in development/test, true in
193
- # production/staging.
194
-
195
- # Equivalent to --static
196
- #static: true,
197
-
198
- # Equivalent to --no-static
199
- #static: false,
200
-
201
- #-----------------------------------------------------------------------------
202
- # Specify custom mustache template directory.
203
- #
204
- # Equivalent to --template-dir [PATH]
205
-
206
- #template_dir: [PATH],
207
-
208
- #-----------------------------------------------------------------------------
209
- # Use _Template in root as a template for new pages. Must be committed.
210
- #
211
- # Equivalent to --template-page
212
-
213
- #template_page: true,
214
-
215
- #-----------------------------------------------------------------------------
216
- # Tell Gollum to use specific user icons for history view. Can be set to
217
- # gravatar, identicon or none.
218
- # Default: none.
219
- #
220
- # Equivalent to --user-icons [MODE]
221
-
222
- #user_icons: [MODE],
223
-
224
- ##############################################################################
225
- # Metadata (front matter)
226
-
227
- #-----------------------------------------------------------------------------
228
- # Header counting
229
- # Default: false
230
- # Can also be a pre-defined counter. See
231
- # https://www.w3.org/TR/css-counter-styles-3/#predefined-counters
232
-
233
- #header_enum: false,
234
- #header_enum: 'decimal-leading-zero',
235
-
236
- #-----------------------------------------------------------------------------
237
- # Global metadata. Arbitrary metadata that will be applied to each page.
238
-
239
- #metadata: {
240
- # monkeyboys: 'are loose in the facility'
241
- #},
242
-
243
- ##############################################################################
244
- # Tips
245
-
246
- #-----------------------------------------------------------------------------
247
- # Force table of contents tag ([[_TOC_]]) into each page.
248
- # ??? How to set the level in the configuration file?
249
- # https://github.com/gollum/gollum/wiki#table-of-contents-toc-tag
250
- # Default: false
251
-
252
- #universal_toc: false,
253
-
254
- #-----------------------------------------------------------------------------
255
- # Move the sidebar to the left of the page
256
- # https://github.com/gollum/gollum/issues/1450#issuecomment-599124384
257
-
258
- #sidebar: :left,
259
-
260
- #-----------------------------------------------------------------------------
261
- # Change the home page name
262
- # https://github.com/gollum/gollum/issues/1569#issuecomment-633033895
263
-
264
- #index_page: 'index',
265
-
266
- #-----------------------------------------------------------------------------
267
- # Change the number of changes in the rss feed
268
-
269
- #pagination_count: 15
270
- }
271
-
272
- #-------------------------------------------------------------------------------
273
- # Change default markup
274
- #Precious::App.set(:default_markup, :asciidoc)
275
-
276
- Precious::App.set(:wiki_options, wiki_options)
config.ru
... ...
@@ -0,0 +1,276 @@
1
+ # Launch Gollum using a specific git adapter. See https://github.com/gollum/gollum/wiki/Git-adapters
2
+ # Default: rugged
3
+ #
4
+ # Equivalent to --adapter [ADAPTER]
5
+
6
+ module Gollum
7
+ # to require 'my_adapter':
8
+ Gollum::GIT_ADAPTER = "my"
9
+ Gollum::TemplateFilter.add_filter('{{current_date}}', & -> () { Time.now.strftime("%Y-%m-%d") })
10
+
11
+ end
12
+
13
+
14
+ wiki_options = {
15
+
16
+ ##############################################################################
17
+ # Command line option equivalents
18
+
19
+ #-----------------------------------------------------------------------------
20
+
21
+ #-----------------------------------------------------------------------------
22
+ # Enable file uploads. If set to 'dir', Gollum will store all uploads in the
23
+ # /uploads/ directory in repository root. If set to 'page', Gollum will
24
+ # store each upload at the currently edited page.
25
+ # Default: false
26
+
27
+ # Equivalent to --allow-uploads dir
28
+ #allow_uploads: true,
29
+
30
+ # Equivalent to --allow-uploads page
31
+ #allow_uploads: true,
32
+ #per_page_uploads: true,
33
+
34
+ #-----------------------------------------------------------------------------
35
+ # Set the path to look for static assets.
36
+ #
37
+ # Equivalent to --assets [PATH]
38
+
39
+ #static_assets_path: [PATH]
40
+
41
+ #-----------------------------------------------------------------------------
42
+ # Tell Gollum that the git repository should be treated as bare.
43
+ #
44
+ # Equivalent to --bare
45
+
46
+ #repo_is_bare: true,
47
+
48
+ #-----------------------------------------------------------------------------
49
+ # Specify the leading portion of all Gollum URLs (path info). Setting this to
50
+ # /wiki will make the wiki accessible under http://localhost:4567/wiki/.
51
+ # Default: /
52
+ #
53
+ # Equivalent to --base-path [PATH]
54
+
55
+ #base_path: [PATH],
56
+
57
+ #-----------------------------------------------------------------------------
58
+ # Enable support for annotations using CriticMarkup.
59
+ #
60
+ # Equivalent to --critic-markup
61
+
62
+ #critic_markup: true,
63
+
64
+ #-----------------------------------------------------------------------------
65
+ # Tell Gollum to inject custom CSS into each page. Uses custom.css from wiki
66
+ # root
67
+ #
68
+ # Equivalent to --css
69
+
70
+ #css: true,
71
+
72
+ #-----------------------------------------------------------------------------
73
+ # Parse and interpret emoji tags (e.g. :heart:) except when the leading colon
74
+ # is backslashed (e.g. \:heart:).
75
+ #
76
+ # Equivalent to --emoji
77
+
78
+ #emoji: true,
79
+
80
+ #-----------------------------------------------------------------------------
81
+ # Tell Gollum to use the first <h1> as page title.
82
+ #
83
+ # Equivalent to --h1-title
84
+
85
+ #h1_title: true,
86
+
87
+ #-----------------------------------------------------------------------------
88
+ # Specify the hostname or IP address to listen on.
89
+ # Default: '0.0.0.0'.
90
+ #
91
+ # Equivalent to --host [HOST]
92
+
93
+ # ???
94
+
95
+ #-----------------------------------------------------------------------------
96
+ # Launch Gollum in "console mode", with a predefined API.
97
+ #
98
+ # Equivalent to --irb
99
+
100
+ # ???
101
+
102
+ #-----------------------------------------------------------------------------
103
+ # Tell Gollum to inject custom JS into each page. Uses custom.js from wiki
104
+ # root.
105
+ #
106
+ # Equivalent to --js
107
+
108
+ #js: true,
109
+
110
+ #-----------------------------------------------------------------------------
111
+ # Compatibility with 4.x
112
+ # https://github.com/gollum/gollum/wiki/5.0-release-notes#compatibility-option
113
+ #
114
+ # Internal links resolve case-insensitively, will treat spaces as hyphens, and
115
+ # will match the first page found with a certain filename, anywhere in the
116
+ # repository. Provides compatibility with Gollum 4.x.
117
+ #
118
+ # Equivalent to --lenient-tag-lookup
119
+
120
+ #hyphened_tag_lookup: true,
121
+ #case_insensitive_tag_lookup: true,
122
+ #global_tag_lookup: true,
123
+
124
+ #-----------------------------------------------------------------------------
125
+ # Enables MathJax (renders mathematical equations). By default, uses the
126
+ # TeX-AMS-MML_HTMLorMML config with the autoload-all extension.5
127
+ #
128
+ # Equivalent to --mathjax
129
+
130
+ #mathjax: true,
131
+
132
+ #-----------------------------------------------------------------------------
133
+ # Specify path to a custom MathJax configuration.
134
+ # Default: mathjax.config.js file from repository root.
135
+ #
136
+ # Equivalent to --mathjax-config [FILE]
137
+
138
+ #mathjax_config: [FILE],
139
+
140
+ #-----------------------------------------------------------------------------
141
+ # Do not render metadata tables in pages.
142
+ #
143
+ # Equivalent to --no-display-metadata
144
+
145
+ #display_metadata: false,
146
+
147
+ #-----------------------------------------------------------------------------
148
+ # Disable the feature of editing pages.
149
+ # Default: true
150
+ #
151
+ # Equivalent to --no-edit
152
+
153
+ #allow_editing: false,
154
+
155
+ #-----------------------------------------------------------------------------
156
+ # Specify the subdirectory for all pages. If set, Gollum will only serve pages
157
+ # from this directory and its subdirectories.
158
+ # Default: repository root.
159
+ #
160
+ # Equivalent to --page-file-dir [PATH]
161
+
162
+ #page_file_dir: [PATH],
163
+
164
+ #-----------------------------------------------------------------------------
165
+ # Follow pages across renames in the History view.
166
+ # Default: true.
167
+
168
+ # Equivalent to --follow-renames
169
+ #follow_renames: true,
170
+
171
+ # Equivalent to --no-follow-renames
172
+ #follow_renames: false,
173
+
174
+ #-----------------------------------------------------------------------------
175
+ # Specify the port to bind Gollum with.
176
+ # Default: 4567.
177
+ #
178
+ # Equivalent to --port [PORT]
179
+
180
+ # ???
181
+
182
+ #-----------------------------------------------------------------------------
183
+ # Specify the git branch to serve.
184
+ # Default: master.
185
+ #
186
+ # Equivalent to --ref [REF]
187
+
188
+ #ref: [REF],
189
+
190
+ #-----------------------------------------------------------------------------
191
+ # Use static assets.
192
+ # Defaults to false in development/test, true in
193
+ # production/staging.
194
+
195
+ # Equivalent to --static
196
+ #static: true,
197
+
198
+ # Equivalent to --no-static
199
+ #static: false,
200
+
201
+ #-----------------------------------------------------------------------------
202
+ # Specify custom mustache template directory.
203
+ #
204
+ # Equivalent to --template-dir [PATH]
205
+
206
+ #template_dir: [PATH],
207
+
208
+ #-----------------------------------------------------------------------------
209
+ # Use _Template in root as a template for new pages. Must be committed.
210
+ #
211
+ # Equivalent to --template-page
212
+
213
+ #template_page: true,
214
+
215
+ #-----------------------------------------------------------------------------
216
+ # Tell Gollum to use specific user icons for history view. Can be set to
217
+ # gravatar, identicon or none.
218
+ # Default: none.
219
+ #
220
+ # Equivalent to --user-icons [MODE]
221
+
222
+ #user_icons: [MODE],
223
+
224
+ ##############################################################################
225
+ # Metadata (front matter)
226
+
227
+ #-----------------------------------------------------------------------------
228
+ # Header counting
229
+ # Default: false
230
+ # Can also be a pre-defined counter. See
231
+ # https://www.w3.org/TR/css-counter-styles-3/#predefined-counters
232
+
233
+ #header_enum: false,
234
+ #header_enum: 'decimal-leading-zero',
235
+
236
+ #-----------------------------------------------------------------------------
237
+ # Global metadata. Arbitrary metadata that will be applied to each page.
238
+
239
+ #metadata: {
240
+ # monkeyboys: 'are loose in the facility'
241
+ #},
242
+
243
+ ##############################################################################
244
+ # Tips
245
+
246
+ #-----------------------------------------------------------------------------
247
+ # Force table of contents tag ([[_TOC_]]) into each page.
248
+ # ??? How to set the level in the configuration file?
249
+ # https://github.com/gollum/gollum/wiki#table-of-contents-toc-tag
250
+ # Default: false
251
+
252
+ #universal_toc: false,
253
+
254
+ #-----------------------------------------------------------------------------
255
+ # Move the sidebar to the left of the page
256
+ # https://github.com/gollum/gollum/issues/1450#issuecomment-599124384
257
+
258
+ #sidebar: :left,
259
+
260
+ #-----------------------------------------------------------------------------
261
+ # Change the home page name
262
+ # https://github.com/gollum/gollum/issues/1569#issuecomment-633033895
263
+
264
+ #index_page: 'index',
265
+
266
+ #-----------------------------------------------------------------------------
267
+ # Change the number of changes in the rss feed
268
+
269
+ #pagination_count: 15
270
+ }
271
+
272
+ #-------------------------------------------------------------------------------
273
+ # Change default markup
274
+ #Precious::App.set(:default_markup, :asciidoc)
275
+
276
+ Precious::App.set(:wiki_options, wiki_options)