|Sebastien Badia a1e67e0e56 blog: Added milkywan blog post||6 months ago|
|content||6 months ago|
|plugins||3 years ago|
|templates||3 years ago|
|theme||1 year ago|
|.gitignore||1 year ago|
|Makefile||1 year ago|
|README.md||2 years ago|
|filters.py||3 years ago|
|gitoyen.py||2 years ago|
|pelicanconf.py||1 year ago|
|setup.py||3 years ago|
|todo.md||1 year ago|
The gitoyen website is build on pelican, this repo contains the source code and content needed to generate the static website.
Pelican is based on python in order to make the site works you will need at least python and pip installed. Once this has been done run the following commands into this repository folder:
If you want to keep things isolated on your machine you will have to
install virtualenv, this step is not mandatory but is recommended.
On debian just type:
apt-get install python-virtualenv
Create a virtualenv in the root of the repository:
Source the virtualenv in order to isolate your current session:
source venv/bin/activate, you can disable it later by typing
in the same shell session.
pip install -e .will install the dependencies needed by pelican
gitoyen servewill serve the website in development mode (i.e: livereload, local port)
The website is build on multiple sources:
gitoyen.pythis is the command line helper file, it provides a list of usefull command for development. This script is installed when running
pip install -e .. It is based on Click
pelicanconf.pyis a python file for the configuration of the pelican engine. It contains for example the path of the different directories which will be used to build the website.
filters.pysome jinja2 filters which will add features for generating the website.
content/contains the site content in Markdown files, it is separated in two subdirs:
blogthe first subdir contains the pages of the site, the second contains a list of blog articles.
templates/some jinja templates for administration, it is used by
theme/jinja templates and static files for generating the website.
plugins/pelican plugins, currently there is only one installed to generate tables of content.
setup.pycontains instructions on how to install the gitoyen cli and the dependencies for running the dev environment.