-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL.docbook.xml
229 lines (222 loc) · 5.63 KB
/
INSTALL.docbook.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<article xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="index" xml:lang="en">
<info>
<title>shlomifish.org INSTALL [by Shlomi Fish]</title>
<date>2022-10-27</date>
<authorgroup>
<author>
<personname>
<firstname>Shlomi</firstname>
<surname>Fish</surname>
</personname>
<affiliation>
<address>
<email>shlomif@shlomifish.org</email>
<uri type="homepage" xlink:href="http://www.shlomifish.org/">Shlomi Fish’s Homepage</uri>
</address>
</affiliation>
</author>
</authorgroup>
<copyright>
<year>2022</year>
<holder>Shlomi Fish</holder>
</copyright>
<legalnotice xml:id="main_legal_notice">
<info>
<title>CC-by dedication</title>
</info>
<para>
<!--Creative Commons License-->
This work is licensed under the <link xlink:href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 License (CC-by)</link> (or at your option a greater version of it).
</para>
</legalnotice>
</info>
<section xml:id="docker">
<info>
<title>Docker script</title>
</info>
<programlisting>
perl bin/docker-ci-run.pl --cleanrun 2>&1 | tee "${HOME}/shlomif-homepage.build.out.txt"
</programlisting>
</section>
<section xml:id="main">
<info>
<title>Main</title>
</info>
<para>
Follow the following steps to build the homesite:
</para>
<orderedlist numeration="arabic">
<listitem>
<para>
Install git - http://git-scm.com/ .
</para>
</listitem>
<listitem>
<para>
Install perl 5.16.x (or later) in case it’s not already installed.
You should have a package for it for your system.
</para>
</listitem>
<listitem>
<para>
Install Website Meta Language (version 2.28.0 or later):
</para>
<para>
<link xlink:href="https://github.com/thewml/website-meta-language/releases">https://github.com/thewml/website-meta-language/releases</link>
</para>
</listitem>
<listitem>
<para>
Run and configure CPAN (see - <link xlink:href="https://perl-begin.org/topics/cpan/">https://perl-begin.org/topics/cpan/</link>
) and type:
</para>
<programlisting language="bash">
export PERL_MM_USE_DEFAULT=1
perl -MCPAN -e 'install App::Deps::Verify Task::Sites::ShlomiFish'
</programlisting>
<para>
or:
</para>
<programlisting language="bash">
export PERL_MM_USE_DEFAULT=1
perl -MCPANPLUS -e 'install App::Deps::Verify Task::Sites::ShlomiFish'
</programlisting>
<para>
or:
</para>
<programlisting language="bash">
export PERL_MM_USE_DEFAULT=1
cpanm App::Deps::Verify Task::Sites::ShlomiFish
</programlisting>
</listitem>
<listitem>
<para>
Install Latemp:
</para>
<para>
See https://web-cpan.shlomifish.org/latemp/ and
https://github.com/thewml/latemp .
</para>
</listitem>
<listitem>
<para>
Add Latemp to the beginning of your path:
</para>
<programlisting language="bash">
PATH="$HOME/apps/latemp/bin:$PATH"
</programlisting>
</listitem>
<listitem>
<para>
Install the latest version of Quad-Pres from:
</para>
<para>
See <link xlink:href="https://www.shlomifish.org/quad-pres/">https://www.shlomifish.org/quad-pres/</link> and
<link xlink:href="https://github.com/shlomif/quad-pres">https://github.com/shlomif/quad-pres</link> :
</para>
<programlisting language="bash">
git clone https://github.com/shlomif/quad-pres
cd quad-pres/installer
</programlisting>
<para>
See its INSTALL file. Put a working <literal>quadp</literal>
executable in your shell’s PATH.
</para>
</listitem>
<listitem>
<para>
Install the wml-affiliations.
</para>
<programlisting language="bash">
git clone https://github.com/shlomif/wml-affiliations trunk
cd trunk/wml
bash Install.bash
</programlisting>
</listitem>
<listitem override="9">
<para>
Install the wml-extended-apis:
</para>
<programlisting language="bash">
git clone https://github.com/thewml/wml-extended-apis trunk
cd trunk/xhtml/1.x/
bash Install.bash
</programlisting>
</listitem>
<listitem override="10">
<para>
Install <link xlink:href="https://inkscape.org/">inkscape</link> -
version 1.0.x-or-later is recommended, and put its executable in
the path.
</para>
</listitem>
<listitem>
<para>
Install jing and put it in the path:
</para>
<para>
<link xlink:href="http://www.thaiopensource.com/relaxng/jing.html">http://www.thaiopensource.com/relaxng/jing.html</link>
</para>
</listitem>
<listitem override="12">
<para>
Install Apache FOP and put it in the path:
</para>
<para>
<link xlink:href="http://xmlgraphics.apache.org/fop/">http://xmlgraphics.apache.org/fop/</link>
</para>
</listitem>
<listitem override="13">
<para>
Install
<link xlink:href="http://optipng.sourceforge.net/">optipng</link>
and put it in the path
</para>
</listitem>
<listitem>
<para>
Put the XHTML 1.1 DTDs , the XHTML 1.0 DTDs , etc. in your
<literal>XML_CATALOG_FILES</literal> environment variable.
</para>
<para>
An easy way to do that is to do:
</para>
<programlisting language="bash">
git clone https://github.com/w3c/markup-validator.git
</programlisting>
<para>
And set the <literal>XML_CATALOG_FILES</literal> enviroment variable to
<quote>/etc/xml/catalog
$(pwd)/markup-validator/htdocs/sgml-lib/catalog.xml</quote>
</para>
</listitem>
<listitem override="15">
<para>
Do the following to build the site, after all dependencies were
installed:
</para>
<programlisting language="bash">
git clone https://github.com/shlomif/shlomi-fish-homepage.git trunk
cd trunk
if test "${WANT_TO_TEST_SPELLING)" = "1"
then
# May require having Fedora 40 - compatible hunspell wordlists
export SKIP_SPELL_CHECK=",en:lax,"
# export SKIP_SPELL_CHECK=""
else
export SKIP_SPELL_CHECK=",en,"
fi
./gen-helpers
gmake
gmake docbook_extended
gmake test
</programlisting>
<para>
The site’s pages and data files should be in
<literal>dest/post-incs/t2/</literal> .
</para>
</listitem>
</orderedlist>
</section>
</article>