Giter Club home page Giter Club logo

nairobilug.or.ke's Introduction

Nairobi GNU/Linux Users Group Blog

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

Visit our IRC channel

Wanna Build It?

In order to build this, you need to have Pelican installed. The easiest way to do this is to use Python virtual environments; virtualenv will work, but we recommended you use virtualenvwrapper (a set of extensions to virtualenv).

For reference, a list of commonly-used distro package names are:

  • Arch Linux: python-virtualenvwrapper
  • OS X (brew): pyenv-virtualenvwrapper

If your distro isn't listed, you'll have to do a bit of homework (and then make a pull request to fix these docs).

Create a Virtualenv

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

mkvirtualenv -p `which python2` nairobilug
workon nairobilug

This creates a virtual environment where Python is explicitly set to version 2, and then activates it. If you want to exit the virtual environment, just type deactivate.

Install Pelican & Friends

Use pip to install the list of dependencies into your virtual environment:

pip install -r https://raw.github.com/nairobilug/nairobilug.or.ke/master/requirements.txt

Preparations

The theme we're using, pelican-alchemy, is a "git submodule", which means it is maintained as its own separate git repository (with its own git history, project, etc). Submodules are stored in the .gitmodules file, and we first need to initialize and clone it before we can build.

Navigate to where you've cloned this repo and then:

git submodule init
git submodule update

You only need to do the initialization the first time you build. After that, you can simply use the update command to get the latest submodule changes.

GENERATE teh BLAWG

Now that the theme exists, we can build:

pelican content

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

It Works, SHIPIT!!1

You can use any web server to view the generated HTML. For example, Python's built-in simple HTTP server:

cd output
python -m SimpleHTTPServer

And now you should see the blog at: http://localhost:8000

Workflow for Blog Posts

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

  • Fork the repo
  • Hack hack hack
  • Push the changes to your repo; preferably to a topic branch, like why-i-love-linux
  • Make a pull request against the master branch

Contact

If you have any questions, drop by #nairobilug on Freenode. Happy blogging!

nairobilug.or.ke's People

Contributors

alanorth avatar rwanyoike avatar kkingori avatar fredmanglis avatar adamn avatar ooduor avatar nj3ma avatar muriukidavid avatar eebrah avatar oguya avatar kirembu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.