aboutsummaryrefslogtreecommitdiffhomepage
path: root/data/doc/manuals_generated/sisu_manual/man/sisu_configuration.1
blob: a844f46583d253b64ea6f06c1c7a60a01608ccf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
.TH "sisu_configuration" "1" "2007-08-30" "0.59.0" "SiSU"
.SH
SISU \- CONFIGURATION \ [0.58],
RALPH AMISSAH
.BR

.SH
CONFIGURATION OF ENVIRONMENT
.BR

.SH
1. CONFIGURATION
.BR

.SH
1.1 DETERMINING THE CURRENT CONFIGURATION

.BR
Information on the current configuration of
.B SiSU
should be available with the help command:

.BR
  sisu \-v

.BR
which is an alias for:

.BR
  sisu \-\-help env

.BR
Either of these should be executed from within a directory that contains sisu
markup source documents.

.SH
1.2 CONFIGURATION FILES (CONFIG.YML)

.BR
.B SiSU
configration parameters are adjusted in the configuration file, which can be
used to override the defaults set. This includes such things as which directory
interim processing should be done in and where the generated output should be
placed.

.BR
The
.B SiSU
configuration file is a yaml file, which means indentation is significant.

.BR
.B SiSU
resource configuration is determined by looking at the following files if
they exist:

.BR
  ./_sisu/sisurc.yml

.BR
  ~/.sisu/sisurc.yml

.BR
  /etc/sisu/sisurc.yml

.BR
The search is in the order listed, and the first one found is used.

.BR
In the absence of instructions in any of these it falls back to the internal
program defaults.

.BR
Configuration determines the output and processing directories and the database
access details.

.BR
If
.B SiSU
is installed a sample sisurc.yml may be found in /etc/sisu/sisurc.yml

.SH
CONFIGURATION OF DOCUMENTS
.BR

.SH
2. SKINS
.BR

.BR
Skins modify the default appearance of document output on a document,
directory, or site wide basis. Skins are looked for in the following locations:

.BR
  ./_sisu/skin

.BR
  ~/.sisu/skin

.BR
  /etc/sisu/skin

.BR
.B Within the skin directory
are the following the default sub\-directories for document skins:

.BR
  ./skin/doc

.BR
  ./skin/dir

.BR
  ./skin/site

.BR
A skin is placed in the appropriate directory and the file named skin_[name].rb

.BR
The skin itself is a ruby file which modifies the default appearances set in
the program.

.SH
2.1 DOCUMENT SKIN

.BR
Documents take on a document skin, if the header of the document specifies a
skin to be used.


.nf
  @skin: skin_united_nations
.fi

.SH
2.2 DIRECTORY SKIN

.BR
A directory may be mapped on to a particular skin, so all documents within that
directory take on a particular appearance. If a skin exists in the skin/dir
with the same name as the document directory, it will automatically be used for
each of the documents in that directory, (except where a document specifies the
use of another skin, in the skin/doc directory).

.BR
A personal habit is to place all skins within the doc directory, and symbolic
links as needed from the site, or dir directories as required.

.SH
2.3 SITE SKIN

.BR
A site skin, modifies the program default skin.

.SH
2.4 SAMPLE SKINS

.BR
With
.B SiSU
installed sample skins may be found in:

.BR
  /etc/sisu/skin/doc and
  /usr/share/doc/sisu/sisu_markup_samples/dfsg/_sisu/skin/doc

.BR
(or equivalent directory) and if sisu\-markup\-samples is installed also under:

.BR
  /usr/share/doc/sisu/sisu_markup_samples/non\-free/_sisu/skin/doc

.BR
Samples of list.yml and promo.yml (which are used to create the right column
list) may be found in:

.BR
  /usr/share/doc/sisu/sisu_markup_samples/dfsg/_sisu/skin/yml (or equivalent
  directory)

.SH
3. HOMEPAGES
.BR

.BR
.B SiSU
is about the ability to auto\-generate documents. Home pages are regarded as
custom built items, and are not created by
.B SiSU
. More accurately,
.B SiSU
has a default home page, which will not be appropriate for use with other
sites, and the means to provide your own home page instead in one of two ways
as part of a site\'s configuration, these being:

.BR
1. through placing your home page and other custom built documents in the
subdirectory _sisu/home/ (this probably being the easier and more convenient
option)

.BR
2. through providing what you want as the home page in a skin,

.BR
Document sets are contained in directories, usually organised by site or
subject. Each directory can/should have its own homepage. See the section on
directory structure and organisation of content.

.SH
3.1 HOME PAGE AND OTHER CUSTOM BUILT PAGES IN A SUB\-DIRECTORY

.BR
Custom built pages, including the home page index.html may be placed within the
configuration directory _sisu/home/ in any of the locations that is searched
for the configuration directory, namely ./_sisu; ~/_sisu; /etc/sisu From there
they are copied to the root of the output directory with the command:

.BR
  sisu \-CC

.SH
3.2 HOME PAGE WITHIN A SKIN

.BR
Skins are described in a separate section, but basically are a file written in
the programming language
.B Ruby
that may be provided to change the defaults that are provided with sisu with
respect to individual documents, a directories contents or for a site.

.BR
If you wish to provide a homepage within a skin the skin should be in the
directory _sisu/skin/dir and have the name of the directory for which it is to
become the home page. Documents in the directory commercial_law would have the
homepage modified in skin_commercial law.rb; or the directory poems in
skin_poems.rb


.nf
    class Home
      def homepage
        # place the html content of your homepage here, this will become index.html
        <<HOME <html>
  <head></head>
  <doc>
  <p>this is my new homepage.</p>
  </doc>
  </html>
  HOME
      end
    end
.fi

.SH
DOCUMENT INFORMATION (METADATA)
.BR

.SH
METADATA
.BR

.BR
Document Manifest @
<http://www.jus.uio.no/sisu/sisu_manual/sisu_configuration/sisu_manifest.html>

.BR
.B Dublin Core
(DC)

.BR
.I DC tags included with this document are provided here.

.BR
DC Title:
.I SiSU \- Configuration \ [0.58]

.BR
DC Creator:
.I Ralph Amissah

.BR
DC Rights:
.I Ralph Amissah

.BR
DC Type:
.I information

.BR
DC Date created:
.I 2002\-08\-28

.BR
DC Date issued:
.I 2002\-08\-28

.BR
DC Date available:
.I 2007\-08\-28

.BR
DC Date modified:
.I 2007\-08\-30

.BR
DC Date:
.I 2007\-08\-30

.BR
.B Version Information

.BR
Sourcefile:
.I sisu_configuration._sst

.BR
Filetype:
.I SiSU text insert 0.58

.BR
Sourcefile Digest, MD5(sisu_configuration._sst)=
.I 2a18ae8bbfec534c6e064d666ffbe20d

.BR
Skin_Digest:
MD5(/home/ralph/grotto/theatre/dbld/sisu\-dev/sisu/data/doc/sisu/sisu_markup_samples/sisu_manual/_sisu/skin/doc/skin_sisu_manual.rb)=
.I 20fc43cf3eb6590bc3399a1aef65c5a9

.BR
.B Generated

.BR
Document (metaverse) last generated:
.I Sun Sep 23 04:13:46 +0100 2007

.BR
Generated by:
.I SiSU
.I 0.59.0
of 2007w38/0 (2007\-09\-23)

.BR
Ruby version:
.I ruby 1.8.6 (2007\-06\-07 patchlevel 36) \ [i486\-linux]


.TP
Other versions of this document:
.TP
manifest: <http://www.jus.uio.no/sisu/sisu_configuration/sisu_manifest.html>
.TP
html: <http://www.jus.uio.no/sisu/sisu_configuration/toc.html>
.TP
pdf: <http://www.jus.uio.no/sisu/sisu_configuration/portrait.pdf>
.TP
pdf: <http://www.jus.uio.no/sisu/sisu_configuration/landscape.pdf>
." .TP
." manpage: http://www.jus.uio.no/sisu/sisu_configuration/sisu_configuration.1
.TP
at: <http://www.jus.uio.no/sisu>
.TP
.TP
* Generated by: SiSU 0.59.0 of 2007w38/0 (2007-09-23)
.TP
* Ruby version: ruby 1.8.6 (2007-06-07 patchlevel 36) [i486-linux]
.TP
* Last Generated on: Sun Sep 23 04:13:51 +0100 2007
.TP
* SiSU http://www.jus.uio.no/sisu