From 87d72abc68d77251f83fa13b72ddc1d14bf4a326 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 20 Feb 2013 23:45:41 +0100 Subject: [PATCH] Update the docs and changelog. --- docs/index.rst | 44 ++++++++++++++++++++++++----------- sigal/templates/sigal.conf.py | 5 ++-- 2 files changed, 34 insertions(+), 15 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index ff635cb..8ca3b43 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -59,41 +59,56 @@ Dependencies How to Use ---------- +To get started, just run ``sigal init`` which will copy an example +configuration file in the current directory. All configuration values have a +default; values that are commented out serve to show the default. Default +values are specified when modified in this example config file. + +After adapting the configuration to your needs, put your images in a +sub-directory and run ``sigal build ``. The next time +you run ``sigal build``, only the new images will be processed. Use the ``-f`` +flag to force the reprocessing of all the images. + +To visualize your gallery, you can either use ``sigal serve`` which runs a +basic web server, or you can use the ``index_in_url = True`` setting which +will add ``index.html`` to the urls to allow browsing without the server. + + +Help of the ``sigal build`` command +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + :: - $ sigal [-h] [--version] [-f] [-v] [-d] [-c CONFIG] [-t THEME] + $ sigal build [-h] [-d] [-v] [-f] [-c CONFIG] [-t THEME] input_dir [output_dir] Required arguments: ``input_dir`` - input directory + Input directory Optional arguments: ``output_dir`` - output directory (default: ``_build/``) + Output directory (default: ``_build/``) ``-h|--help`` - show this help message and exit - -``--version`` - show program's version number and exit + Show this help message and exit ``-f|--force`` - force the reprocessing of existing images and thumbnails + Force the reprocessing of existing images and thumbnails ``-v, --verbose`` - show all messages + Show all messages ``-d, --debug`` - show all message, including debug messages + Show all message, including debug messages ``-c CONFIG, --config CONFIG`` - configuration file (default: ``/sigal.conf.py``) + Configuration file (default: ``/sigal.conf.py``) ``-t THEME, --theme THEME`` - specify a theme directory, or a theme name for the themes included with Sigal + Specify a theme directory, or a theme name for the themes included with Sigal Configuration @@ -137,7 +152,10 @@ Released on 2013-xx-xx. - Add a setting to specify a list of links and adapt the themes to show the links. - Use EXIF info to fix orientation. -- Replace the jpg_quality setting with a dict of options. +- Replace the ``jpg_quality`` setting with a dict of options. +- Manage directories with only sub-directories and add some checks. +- Change the command-line interface to use sub-commands: ``init``, ``build`` + and ``serve``. Version 0.2 ~~~~~~~~~~~ diff --git a/sigal/templates/sigal.conf.py b/sigal/templates/sigal.conf.py index e85b9ad..3f2cbda 100644 --- a/sigal/templates/sigal.conf.py +++ b/sigal/templates/sigal.conf.py @@ -9,7 +9,7 @@ theme = 'galleria' # Size of resized image -img_size = (640, 480) +img_size = (800, 600) # Generate thumbnails # make_thumbs = True @@ -22,7 +22,8 @@ img_size = (640, 480) # thumb_suffix = '.tn' # Thumbnail size (default: (150, 112)) -thumb_size = (200, 150) +# For the galleria theme, use (280, 210) +thumb_size = (280, 210) # Crop the image to fill the box # thumb_fit = True