Files
sigal/docs/getting_started.rst

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

95 lines
2.5 KiB
ReStructuredText
Raw Normal View History

2013-08-03 17:04:23 +02:00
=================
Getting started
=================
How to Use
~~~~~~~~~~
2014-08-26 23:55:24 +02:00
Initialize
2013-08-03 17:04:23 +02:00
To get started, just run ``sigal init`` which will copy an example
2014-08-26 23:55:24 +02:00
:doc:`configuration file <configuration>` 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.
2013-08-03 17:04:23 +02:00
Build
2013-09-06 00:33:47 +02:00
After adapting the configuration to your needs, put your images in
2014-08-26 23:55:24 +02:00
a sub-directory and run ``sigal build <your images directory>``.
The next time you run ``sigal build``, only the new images will be processed.
You can use the ``-f`` flag to force the reprocessing of all the images.
Images (resp. videos) that are smaller than the size specified by the
``img_size`` (resp. ``video_size``) setting will not be resized.
You may also want to know how to specify information about :doc:`albums
<album_information>` and :doc:`images <image_information>`.
2013-08-03 17:04:23 +02:00
Serve
To visualize your gallery, you can use ``sigal serve`` which runs a basic
web server. This server should only be used for local browsing, not in
2014-08-26 23:55:24 +02:00
production.
Another option is to use the ``index_in_url = True`` setting, which will add
``index.html`` to the urls to allow browsing without a server.
2013-08-03 17:04:23 +02:00
Help on the ``sigal build`` command
2013-08-03 17:04:23 +02:00
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
2013-12-26 17:59:57 +01:00
$ sigal build [-h] [-d] [-v] [-f] [-c CONFIG] [-t THEME] [-n NCPU]
2013-08-03 17:04:23 +02:00
[source] [destination]
Required arguments:
``source``
Input directory
``destination``
Output directory (default: ``_build/``)
Optional arguments:
``-h, --help``
Show this help message and exit
``-f, --force``
Force the reprocessing of existing images and thumbnails
``-v, --verbose``
Show all messages
``-d, --debug``
Show all message, including debug messages
``-c CONFIG, --config CONFIG``
Configuration file (default: ``sigal.conf.py`` in the current working
directory)
``-t THEME, --theme THEME``
Specify a theme directory, or a theme name for the themes included with Sigal
2013-12-26 17:59:57 +01:00
``-n NCPU, --ncpu NCPU``
Number of cpu to use (default: all)
Help on the ``sigal serve`` command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
$ sigal serve [-c CONFIG] [-p PORT] [destination]
Optional arguments:
``-c CONFIG, --config CONFIG``
Configuration file (default: ``sigal.conf.py`` in the current working
directory)
``-p PORT, --port PORT``
Port number to start the server on (default: 8000)
``destination``
Destination directory where the output of build is located (default: _build)