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
Go read the original https://github.com/ramiismail/dopresskit to see what presskit() is about.
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.
- Download python https://www.python.org/download/releases/2.7.7/
- Install the template engine jinja2 with
easy_install jinja2
orpip install jinja2
or even via the windows binary at http://www.lfd.uci.edu/~gohlke/pythonlibs/#jinja2 (Jinja2‑2.7.3.win32‑py2.7.exe
)
You should be able to compile a project as is with the default data.xml
.
- Run
python generate.py
, it will generate anindex.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.
To add google analytics support simply add your Tracker ID as an argument like this python generate.py AB-1234567-89