1
0
mirror of https://gitlab.com/openlp/website.git synced 2024-12-22 04:52:49 +00:00
This is a mirror of the official repository at https://gitlab.com/openlp/website
Go to file
2017-10-14 08:16:41 +01:00
blog Make requested changes to Arch modal, use my new laptop image, fix some small styles, change date of blog post release. 2017-07-31 23:38:01 -07:00
files Add Fedora logo and update package name in Fedora instructions 2017-08-21 13:17:35 -07:00
pages Change the Linux downloads to be a set of instructions rather than just a link to a description of the package; Tweak the donations page a little 2017-07-06 22:48:43 -07:00
themes/openlp2v2 Remove version 2.2.1 from the downloads. I'm tired of people sending in bug reports for bugs that have already been fixed but for some reason they thought it better to download version 2.2.1 2017-10-13 23:28:17 -07:00
.bzrignore Add Bitcoin and Credit Card donations to the donations page. Also tweak some styles and improve some JS 2017-06-20 22:34:56 -07:00
conf.py Add Bitcoin and Credit Card donations to the donations page. Also tweak some styles and improve some JS 2017-06-20 22:34:56 -07:00
deploy.sh Last set of updates before GO LIVE 2015-10-18 14:56:25 +02:00
README.rst Add a README.rst file so that folks know how to get set up to build the website. 2015-08-06 23:26:16 +02:00
stripe.ini.default Remove the test key 2017-07-07 18:46:22 -07:00

OpenLP Website

This repository holds the OpenLP website, so that anyone can contribute to the site.

The website is built using Nikola, the static site generator. It uses Disqus for comments, which has superior spam detection and moderation tools. The instructions below show you how to get set up on your local machine.

Installing Nikola

The OpenLP site is built on Nikola 7.6.x. This means you'll probably need to install it in a virtual environment. Not to worry, this is pretty simple.

First up, install the python-virtualenv package:

$ sudo apt-get install python-virtualenv

Now create a virtual environment somewhere. I usually put it in the same directory as my Bazaar repositories:

$ virtualenv venv

Once that has been created, you can install Nikola with pip:

$ cd venv/bin
$ ./pip install --upgrade nikola

Note: I'm using ``--upgrade`` to make sure that I install the latest version of Nikola, so that even if I have a version of Nikola installed, I'll have the latest and greatest here.

I like to symlink the nikola binary into the project directory I'm working in, for ease of use:

$ cd ~/projects/openlp/website
$ ln -s ~/venv/bin/nikola nikola

Now you're ready to start working on the web site. Next step is to build the site:

$ nikola build

That will run through a whole bunch of stuff and build the site for you. To run the site, simply use the serve command:

$ nikola serve

This will start a local Python web server and tell you where to go in your browser in order to preview the site.

Once you're this far, you'll be ready to start contributing toward the we site. Have fun!