4
The Ubuntu-ZA site is a static HTML site generated by the `Nikola <http://getnikola.com/>`_ site generator. Nikola is
5
written in Python and is in the Ubuntu repository.
8
Installing Nikola (Ubuntu 14.10 and higher)
9
-------------------------------------------
10
The minimum version of Nikola required is 7.0. If you're running Ubuntu 14.10 Utopic Unicorn, you'll have 7.0.1 in the
11
repositories and you can just install it using apt-get::
13
$ sudo apt-get install nikola
16
Installing Nikola (Ubuntu 14.04 and lower)
17
-------------------------------------------
18
If you're on an earlier version of Ubuntu, you'll need to install the latest version of Nikola. The best way to do this
19
is to create a virtual environment and install it in there.
21
First, install ``python-virtualenv`` and a number of other packages you will need::
23
$ sudo apt-get install python-virtualenv python-dev libxml2-dev libxslt1-dev zlib1g-dev
25
Then you need to create a virtual environment. Navigate to a root folder for your virtual environment, and then create
26
your virtual environment::
29
$ virtualenv --system-site-packages venv
31
Once that is done, you need to install Nikola itself::
33
$ ./venv/bin/pip install --upgrade nikola
35
You may want to create a symlink for ease-of-use::
37
$ ln -s /path/to/venv/bin/nikola /path/to/ubuntuza-site/nikola
42
Once you have Nikola installed, you probably want to see the site. First we need to build it::
46
If you've created the symlink, you'll want to use it like this::
53
To preview the site, it's as easy as running a local web server::
b'\\ No newline at end of file'