Commit Graph

211 Commits

Author SHA1 Message Date
Simon
eebce98142 Add an init subcommand, to copy a sample config file in the current directory. 2013-02-23 16:26:35 +01:00
Simon
94f4052f9a Add a sigal serve subcommand to launch a basic web server. 2013-02-23 16:26:35 +01:00
Simon
4906dcf2c9 Move the current cli options to a 'build' subcommand. Use argh ! 2013-02-23 16:26:35 +01:00
Simon
f646a212f9 Forget to add a test directory in the previous commit ... 2013-02-23 15:48:42 +01:00
Simon
16ac982efe Bugfix for the removal of empty sub-directories. 2013-02-23 15:39:51 +01:00
Simon
9d80827f74 Catch the 'Too many open files' error and print an informative message. 2013-02-23 15:11:59 +01:00
Simon
e8c2732e4a Fix index url in the templates. 2013-02-20 23:22:56 +01:00
Simon
e6c3de5999 Find the thumbnail in all the sub-directories. 2013-02-20 23:19:17 +01:00
Simon
4118bdd141 Improve test_thumb 2013-02-19 22:59:50 +01:00
Simon
655f46a102 Add a test for the get_thumb function. 2013-02-19 00:55:39 +01:00
Simon
2679abefed Fix an issue to find the thumbnail of a directory with only sub-categories, and
refactor.
2013-02-19 00:51:11 +01:00
Simon
5c2a7f9887 Add a sub-directory to the tests and refactor test_gallery. 2013-02-19 00:17:21 +01:00
Simon
f893af7a39 Fix PIL issues, thanks to django-imagekit. 2013-02-18 23:04:51 +01:00
Simon
025b868a91 Change "representative" to "thumbnail". 2013-02-18 00:33:47 +01:00
Simon
facf30e0d9 Manage directories with only sub-directories. 2013-02-17 01:05:04 +01:00
Simon
165ab19500 Move the paths dict to a dedicated class. 2013-02-16 17:51:51 +01:00
Simon
2c88a3e6c0 Use Pillow if PIL is not found.
Try to fix the travis build error by replacing the PIL dependency.  And remove
the system pyexiv2 for travis as it is not used in the virtualenv.
2013-02-15 18:17:08 +01:00
Simon
8ddf2e8e05 Travis fails to install PIL dependencies, try to fix that. 2013-02-15 10:27:46 +01:00
Simon
d19b17804b Refactor the writer.
- remove the html generated inside the writer module to put this in the
  templates
- move the breadcumb computation in a method
2013-02-15 00:26:31 +01:00
Simon
cbdd4fe69b Use new style classes. 2013-02-15 00:26:31 +01:00
Simon
4ab124fceb Don't process directories that do not contain images. 2013-02-08 12:30:29 +01:00
Simon
57f63de4dc Check that the output directory is not inside the input directory. 2013-02-08 11:35:36 +01:00
Simon
2994096b5b Update changelog and fix a typo. 2013-02-08 10:51:37 +01:00
Simon
8390d02cf1 Include only the sample config file, not the test images. 2013-02-07 23:05:26 +01:00
Simon
7b099b766a Replace the jpg_quality setting with a dict of options.
Pass a dict with PIL options (quality, optimize, progressive).
Enlarge the MAXBLOCK buffer of ImageFile if there is an error (for the
progressive mode).
2013-01-21 23:36:21 +01:00
Simon
288d7ce1a3 Create a process_image function. 2013-01-21 23:34:44 +01:00
Simon
5c61a1f295 Check if exif were read before using it. 2013-01-21 23:34:44 +01:00
Simon
aed0566824 Merge pull request #9 from yuce/master 2013-01-13 00:05:34 +01:00
Yuce Tekol
01d6d5fe33 Use EXIF info to fix orientation. 2013-01-13 00:01:09 +01:00
Simon
4a0010aec5 Update the changelog. 2013-01-03 00:59:37 +01:00
Simon
311abed97f Update year in the copyright strings. 2013-01-03 00:55:52 +01:00
Simon
99ef37879b Add a setting to specify a list of links and adapt the themes to show the links. 2013-01-03 00:51:18 +01:00
Simon
14224154f1 Add a setting to optionally add index.html to the URLs (fix #8). 2012-12-21 23:41:32 +01:00
Simon
da60b03f74 Fix packaging issues:
- remove sass-cache directories
- include the test/sample files
2012-12-21 23:19:09 +01:00
Simon
06bdbec6d4 Version 0.2 2012-12-20 00:31:55 +01:00
Simon
becce4facc Update release notes. 2012-12-20 00:29:07 +01:00
Simon
e39582ce5e doc - add a theme and demo section 2012-12-20 00:17:25 +01:00
Simon
f1d9afa534 Homogeneize templates. 2012-12-18 01:01:27 +01:00
Simon
2d5fa81e05 Add theme inheritance with a default theme that will contain base templates. 2012-12-18 00:50:42 +01:00
Simon
3638b0b02c Update the docs. 2012-12-18 00:34:14 +01:00
Simon
d47a347748 Make the output_dir cli argument optional, and cleanup the messages. 2012-12-17 01:00:04 +01:00
Simon
f5ea6709ef Add a cli option to set the settings file. 2012-12-17 00:49:54 +01:00
Simon
4e23a2e8da Jinja setting: trim blocks. 2012-12-15 00:54:53 +01:00
Simon
60e16f1a43 Add a setting for Google Analytics. 2012-12-15 00:47:50 +01:00
Simon
488da4c497 Rename the copy exif setting. 2012-12-15 00:17:33 +01:00
Simon
7d3e7bb207 Move the configuration to a python file.
After a long hesitation ... but this will allow to use tuple, etc.
2012-12-15 00:13:08 +01:00
Simon
aa26253d0a Fix the image paths for the galleria theme. 2012-12-14 23:33:34 +01:00
Simon
4d2c24f29d Remove the index link from the breadcumb. 2012-12-14 23:22:17 +01:00
Simon
e19ad7585a Rename the do_link function to link. 2012-12-14 22:23:47 +01:00
Simon
68a315ce64 Rename template vars from path to url. 2012-12-14 22:21:31 +01:00