summaryrefslogtreecommitdiffstats
path: root/wiki/src/contribute/build/website.mdwn
blob: 16f9e92b920b3d2e0945c7202907c00917944d91 (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
[[!meta title="Build the website offline"]]

[[!toc]]

Build the website in Linux
==========================

1. Update the list of available packages:

       sudo apt-get update

2. Install the required packages:

       sudo apt-get install libyaml-perl libyaml-libyaml-perl po4a \
        perlmagick libyaml-syck-perl ikiwiki</span>

3. Clone our main [[Git repository|git]]:

       git clone https://git-tails.immerda.ch/tails

4. Build the website:

       cd tails
       ./build-website

5. You can now browse the website in the following folder:

    ./config/chroot_local-includes/usr/share/doc/tails/website/

<div class="note">

To accelerate the build, you can disable some languages by editing the
parameter <span class="code">po_slave_languages</span> in the file <span class="filename">ikiwiki.setup</span>.

</div>

<a id="tails"></a>

Build the website in Tails
==========================

1. [[Create and configure|doc/first_steps/persistence/configure]] a persistent volume and activate the following features:

   - Personal Data
   - APT Packages
   - APT Lists

2. Restart Tails, [[enable the persistence|doc/first_steps/persistence/use]], and [[set up an administration password|doc/first_steps/startup_options/administration_password]].

3. Update the list of available packages:

       sudo apt-get update

4. Install the required packages:

       sudo apt-get install libyaml-perl libyaml-libyaml-perl po4a \
        perlmagick libyaml-syck-perl ikiwiki

5. Clone our main [[Git repository|git]] in the <span class="filename">Persistent</span> folder:

       cd ~/Persistent/
       git clone https://git-tails.immerda.ch/tails

6. Build the website:

       cd tails
       ./build-website --set destdir="/home/amnesia/Persistent/Tor Browser/tails" "$@"

7. You can now visit the following link in <span class="application">Tor Browser</span> to browse the website:

   [[file:///home/amnesia/Persistent/Tor Browser/tails/index.en.html]]

<div class="note">

To accelerate the build, you can disable some languages by editing the
parameter <span class="code">po_slave_languages</span> in the file <span class="filename">ikiwiki.setup</span>.

</div>