Skip to content

fredmanglis/nairobilug.or.ke

 
 

Repository files navigation

Nairobi GNU/Linux Users Group Website

This repository hosts the code for the Nairobi GNU/Linux Users Group website. We wanted a fun, nerdy and democratic way to give our community an online presence, so here we are.

The website is powered by Pelican — a static site generator written in Python — and uses a magical theme called Alchemy.

Screenshot


How to Build

The easiest way to do this is in a Python virtual environment. We recommend using pyenv with pyenv-virtualenv to set one up. Luckily, pyenv has an automatic installer, pyenv-installer.

Create a Virtual Environment

Once you have pyenv installed, create a virtual environment to hold Pelican and its dependencies:

$ pyenv virtualenv nairobilug
$ pyenv activate nairobilug

This creates a virtual environment and then activates it. If you want to exit the virtual environment, type:

$ pyenv deactivate

Fork / Clone the Repo

If you haven't already, clone this repo (or your version of it):

$ git clone --recurse-submodules https://github.com/nairobilug/nairobilug.or.ke

Install Pelican & Friends

Use pip to install the list of dependencies (including Pelican) into your virtual environment:

$ pip install -r requirements.txt

Generate the Website

Now that the dependencies exists, we can build:

$ make html

This takes the Markdown files from the content/ directory and generates static HTML pages inside the output/ directory. That's it. No MySQL, no PHP, etc...

Preview the Website

You can serve the generated site so it can be previewed in your browser:

$ make serve

And you should see the blog if you visit http://localhost:8000.

Blog Workflow

If you're interested in writing a blog post for the website, you need to:

  • Fork the nairobilug/nairobilug.or.ke repository
  • Write a blog post using Markdown in the content directory
  • Push the changes to a topic branch, like why-i-love-linux, on your fork of the repository
  • Make a pull request against the master branch

Happy blogging!

Contact / Help?

If you have any questions, drop by #nairobilug on Freenode, or try our mailing list. If you're having trouble with your setup, you can get help by creating an issue.

About

Nairobi GNU/Linux Users Group website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 65.6%
  • Makefile 22.8%
  • Shell 11.6%