{"repo":"nairobilug/nairobilug.or.ke","free":true,"listed":false,"github":"https://github.com/nairobilug/nairobilug.or.ke","clone":"git clone https://github.com/nairobilug/nairobilug.or.ke.git","description":"A lively community of GNU/Linux 🐧 enthusiasts","language":"Makefile","stars":24,"topics":["markdown","pelican","website"],"license":null,"category":"docs-static-sites","readme_excerpt":"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 theme called Alchemy. 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. 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. Fork / Clone the repo If you haven't already, clone this repo (or your version of it): $ git clone --recurse-submodules git@github.com:nairobilug/nairobilug.or.ke.git Install requirements 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 website if you visit http://localhost:8000. Blog workflo","default_branch":null,"files":null,"tree":[],"storefront":"/r/nairobilug","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nairobilug/nairobilug.or.ke/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}