Rastagong / dopresskit-static

A static version of Rami Ismail's presskit()

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dopresskit-static

dopresskit-static is a static version of the great Rami Ismail's presskit().

If you don't wan't to rely on PHP you can use it with the same xml files & directory structure as the original presskit().

You can even host it on dropbox : demo

Getting started

Go read the original https://github.com/ramiismail/dopresskit to see what presskit() is about.

Python environment

It requires python 2.7 (2.6 probably works as well) and the jinja2 package.

If you're on OSX/Linux you might already have a proper environment.

Generate your static files

You should be able to compile a project as is with the default data.xml.

  • Run python generate.py, it will generate an index.html file at the root of your folder and in each of the project folders (by default, none).
  • Open index.html and it's done!
  • Edit the various data.xml files to your needs.

If you want to add a project, copy the _template folder and rename it, run python generate.py again and a project should show up in the Projects section of the page.

Note : A project folder will be ignored if its name is starting with an _uppercase_, if containing any space and if not in lowercase. Super Crate Box would have a folder named super_crate_box to be valid.

Google Analytics

To add google analytics support simply add your Tracker ID as an argument like this python generate.py AB-1234567-89

About

A static version of Rami Ismail's presskit()


Languages

Language:Python 85.5%Language:CSS 14.5%