-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathREADME
198 lines (142 loc) · 7.78 KB
/
README
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
I. About
"prsnl10" is a minimalist template for DokuWiki. It is designed to use
DokuWiki as CMS for portfolio websites and other "non-wiki" purposes. The
name means "personal template 2010" because it was created the personal
website of Andreas Haerter [1] in 2010.
Website: <https://www.dokuwiki.org/template:prsnl10>
Maintainer: ARSAVA <https://dev.arsava.com/>
Contact: See "IV. Support" and "V. Contact".
[1] <https://andreashaerter.com/>
II. Installation and update
The installation works as described [1] on DokuWiki.org. Extract the
downloaded archive into your DokuWiki's "lib/tpl/" folder. Then select the
template in the Config Manager by adjusting the template option.
See the prsnl10 template website for update instructions [2].
[1] <https://www.dokuwiki.org/template>
[2] <https://www.dokuwiki.org/template:prsnl10#update>
III. Customizing the template
In order to make updates of your installed "prsnl10" template easy, follow
these hints for customizing the template:
- Place your files in "prsnl10/user"
The place to store *all* user-defined, custom stuff is the "prsnl10/user"
directory because your files will not be touched or overwritten on
template updates! So you normally can copy all new files into "prsnl10/"
to update the template without loosing your changes.
Note: There are example files helping you modifying the template.
The are delivered with the ".dist" extensions. Just remove the
".dist" extension to use them.
- Own logo
If you want to replace the default logo showed in the upper left, simply
create a "logo.[png|gif|jpg]" in "monobook/user". The template recognizes
the file automatically and will use it instead of the default text.
Note: Do not forget to empty your browser's cache if you cannot see any
effect.
Hint: If you want to use a text-based logo, you might find the font
files [1] for "Droid Sans" out of Google's Webfont Directory [2]
useful.
- Own favicon
If you want to replace the default favicon, simply create a "favicon.ico"
in "prsnl10/user". The template recognizes the file automatically and
will use it instead of the default one. You might find the online FavIcon
Generator [3] useful.
Note: "favicon.png" is also possible but not recommended (because it is
not supported by older MSIE versions).
- Own CSS
To apply additional CSS rules, create a
- "prsnl10/user/screen.css" file to influence the normal layout. You
can rename the "screen.css.dist" to "screen.css" as starting point.
- "prsnl10/user/print.css" file to influence the print layout. You
can rename the "print.css.dist" to "print.css" as starting point.
- "prsnl10/user/rtl.css" file to influences "right-to-left" languages
like Hebrew. You can rename the "rtl.css.dist" to "rtl.css" as
starting point.
The file(s) will be included automatically (as the last ones for the
relevant media, therefore you are able to overrule existing styles).
Note: Do not forget to empty your browser's cache if you cannot see any
effect.
- Own JavaScript
To load additional JavaScript, create a "prsnl10/user/user.js" file. You
can rename the "user.js.dist" to "user.js" as starting point (it contains
some examples and useful comments how to define your own JavaScript).
ATTENTION: You have to activate the template option "prsnl10_loaduserjs"
(->"Load 'prsnl10/user/user.js'?") in the DokuWiki Config
Manager!
- Web analytics software (Piwik, Google Analytics etc.)
Tools like Piwik and Google Analytics normally provide a small code
snippet ("tag") which you have to include at your website to make
everything work. If you want to use such software with this template,
create a "prsnl10/user/tracker.php.dist". You don't have to deliberate
where you have to copy and paste the code, simply do it there. You can
rename the "tracker.php.dist" to "tracker.php" as a good starting point
(it contains some examples and useful comments how to define your own
boxes).
- Own Apple Touch Icon
If you want to replace the default Apple Touch Icon, simply create a
"apple-touch-icon.png" in "prsnl10/user". The template recognizes the file
automatically and will use it instead of the default one. Have a look at
Apple's developer database (cf. "Configuring Web Applications" [4]) if you
need more information.
[1] <http://www.google.com/webfonts/family?family=Droid+Sans>
[2] <http://j.mp/inYDGL>
[3] <http://tools.dynamicdrive.com/favicon/>
[4] <http://j.mp/sx3NMT>
IV. Support
If you need help, check the FAQ [1] and try to find useful information by
using the DokuWiki Search page [2]. If you found nothing helpful, ask your
question at the DokuWiki forum [3] (preferred) or IRC channel [4].
[1] <https://www.dokuwiki.org/template:prsnl10#faq>
[2] <http://search.dokuwiki.org/>
[3] <https://forum.dokuwiki.org/>
[4] <https://www.dokuwiki.org/irc>
V. Contact
If you think you have found a bug or have a useful idea (a.k.a. "feature
request"), create an issue [1] on GitHub (preferred), or contact us by
mail [2].
Feel free to submit patches as GitHub pull requests (preferred) or by mail
as well. However, please try to respect the DokuWiki coding style [3] as
this template follows its rules.
[1] <https://github.com/arsava/dokuwiki-template-prsnl10/issues>
[2] ARSAVA <[email protected]>
[3] <https://www.dokuwiki.org/devel:coding_style>
VI. Other notes
If you like this free project, you might buy us a coffee [1], or get some
cool QR Code merchandise [2]. Thank you! :-)
Do not hesitate to contact ARSAVA [3] if you need professional DokuWiki
support, training or if you think we are the ones to get your project done.
[1] <https://donate.arsava.com/dokuwiki-template-prsnl10/>
[2] <http://goqr.me/>
[3] <https://dev.arsava.com/>
VII. Explanatory notes about the dirs of this template
- "prsnl10/conf"
Contains some configuration files (do NOT edit them!), especially
- default.php: default settings [1]
- metadata.php: configuration metadata [2]
- "prsnl10/lang"
Language files (subdir names = language code). You may copy the English
language files and translate them if your language is missing. Simply send
us the translated files (cf. "V. Contact") and I will include them in the
next release :-D.
- "prsnl10/css"
All Cascading Style Sheets (CSS). See my tutorial [3] for more information
about how the CSS is handled.
- "prsnl10/images"
Images files.
- "prsnl10/js"
JavaScript files.
- "prsnl10/user"
Place for userdefined stuff. E.g. if you want use an own logo, simply copy
a logo.[png|gif|jpg] in here. See "III. Customizing the template" for
details.
[1] <https://www.dokuwiki.org/devel:configuration#default_settings>
[2] <https://www.dokuwiki.org/devel:configuration#configuration_metadata>
[3] <http://j.mp/eq8zSo>
VIII. Creation transcript
Some developers may find this interesting. Additionally, I am very oblivious
:-P.
In principle, I followed my own tutorial [1]. There was just no "starter"
template [2] when "prsnl10" was created. Therefore, after ~1 year, I
switched the CSS base from DokuWiki's default template to the starter
template, but the markup of "main.php" is still based on the default
template's "main.php".
[1] <http://j.mp/eq8zSo>
[2] <https://www.dokuwiki.org/template:starter>