1
0
Fork 0
mirror of https://bitbucket.org/oreolek/imaginary-realities.git synced 2024-05-17 08:28:25 +03:00
Go to file
2015-06-04 19:05:07 +12:00
templates Upgrade look of the Staff pages for all the current issues. 2015-06-04 19:05:07 +12:00
feed.json Added RSS generation maintaining old feed items, to hopefully prevent dupe publishing of entries. 2015-06-04 14:25:32 +12:00
gensite.py Fix various formatting issues and missing images. 2015-06-04 17:29:02 +12:00
readme.txt Update build process with notes on calibre-based ebook generation. 2015-06-04 19:04:41 +12:00
update.py Some minor files to start. 2015-05-12 17:26:39 +12:00

SETUP

1. Install Python 2.7.9 if not already installed.
1. `c:\python27\pip install virtualenv`
2. `c:\python27\scripts\virtualenv _env`
3. `_env\Scripts\activate`
4. `pip install jinja2`
5. `pip install feedformatter`

SETUP - EBOOK GENERATION

1. Download calibre and install
	a) For linux shared hosting (from http://calibre-ebook.com/download_linux):
		1) Remove sudo commands from binary fetcher/installer command line.
		2) Download and edit the linked 'linux-installer.py', replace '/opt' with '~/bin' or whatever.
		3) 'cat linux-installer.py |' to the python command in the fetcher/installer command line.
		4) Ignore errors.
		5) 'export IR_CALIBRE_PATH=~/opt/calibre' replacing ~/bin with whatever.
	b) For windows, install calibre and find the directory:
		1) 'set "IR_CALIBRE_PATH=c:\program files (x86)\calibre2"'
2. The generation script will warn you if it cannot find calibre, and cannot generate the e-books.

OPTIONAL SETUP

1. `pip install praw` (reddit api access, not yet used).

USAGE

1. _env\Scripts\activate
2. python gensite.py