From e27f9a220fd8597266d52934bcb06dbe1681b338 Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 16 Jun 2020 23:30:32 +0200 Subject: compiler: allow setting thumbnails for all items Not only for directories. GitHub: closes #224 --- compiler/ldgallery.1.md | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'compiler/ldgallery.1.md') diff --git a/compiler/ldgallery.1.md b/compiler/ldgallery.1.md index a60a3b1..2fbddc5 100644 --- a/compiler/ldgallery.1.md +++ b/compiler/ldgallery.1.md @@ -67,22 +67,24 @@ Available options are: A gallery source directory contains the gallery items and their sidecar metadata files, optionally grouped inside sub-directories. -Directory thumbnails can be set by placing a picture file named "_directory", with any image file extension, inside of directories. +Thumbnails can be associated to items by suffixing their name with "_thumbnail", followed by an image file extension. +Directory thumbnails can be placed within their repsective directories themselves, without any prefix. An example input gallery directory structure could be as follows: ``` ./example-gallery -├── DSC0001.jpg --------- a picture -├── DSC0001.jpg.yaml ---- its associated sidecar metadata file -├── Some directory ------ a directory grouping gallery items -│ ├── _directory.jpg -- a thumbnail for its parent directory -│ ├── _directory.yaml - directory sidecar metadata file +├── DSC0001.jpg ----------------- a picture +├── DSC0001.jpg.yaml ------------ its associated sidecar metadata file +├── Some directory -------------- a directory grouping gallery items +│ ├── _directory.yaml --------- directory sidecar metadata file +│ ├── _thumbnail.jpg ---------- a thumbnail for its parent directory │ ├── DSC0002.jpg │ ├── DSC0002.jpg.yaml -│ ├── DSC0003.jpg -│ └── DSC0003.jpg.yaml -└── gallery.yaml -------- gallery settings file +│ ├── song.ogg +│ ├── song.ogg.yaml +│ └── song.ogg_thumbnail.jpg -- a thumbnail for song.ogg +└── gallery.yaml -888------------ gallery settings file ``` -- cgit v1.2.3 From 9a90abaeff9943118022e4cb71429db147ce7188 Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 19 Sep 2020 06:26:19 +0200 Subject: docs: document new features and options --- compiler/ldgallery.1.md | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'compiler/ldgallery.1.md') diff --git a/compiler/ldgallery.1.md b/compiler/ldgallery.1.md index 2fbddc5..eda6cc2 100644 --- a/compiler/ldgallery.1.md +++ b/compiler/ldgallery.1.md @@ -2,7 +2,7 @@ pagetitle: Compiler user manual - ldgallery title: LDGALLERY(1) ldgallery author: Pacien TRAN-GIRARD, Guillaume FOUET -date: 2020-04-30 (v1.0) +date: 2020-09-19 (v2.0) --- @@ -13,7 +13,7 @@ ldgallery - a static web gallery generator with tags # DESCRIPTION -ldgallery is a static gallery generator which turns a collection of tagged pictures into a searchable web gallery. +ldgallery is a static gallery generator which turns a collection of tagged media files into a searchable web gallery. The ldgallery compiler program processes pictures and aggregates metadata from plain text sidecar files to generate an indexed version of the gallery. It can optionally output a static web viewer along, which allows the content to be presented and searched through from a JavaScript-enabled web browser. @@ -45,6 +45,7 @@ Available options are: -r, \--rebuild-all : Invalidate cache and recompile everything. + By default, the compiler skips items which haven't changed based on their modification time. -c, \--clean-output : Remove unnecessary files from the output directory. @@ -67,8 +68,8 @@ Available options are: A gallery source directory contains the gallery items and their sidecar metadata files, optionally grouped inside sub-directories. -Thumbnails can be associated to items by suffixing their name with "_thumbnail", followed by an image file extension. -Directory thumbnails can be placed within their repsective directories themselves, without any prefix. +Thumbnails can be associated to items by suffixing their name with "\_thumbnail", followed by an image file extension. +Directory thumbnails can be placed within their respective directories themselves, without any prefix. An example input gallery directory structure could be as follows: @@ -84,7 +85,7 @@ An example input gallery directory structure could be as follows: │ ├── song.ogg │ ├── song.ogg.yaml │ └── song.ogg_thumbnail.jpg -- a thumbnail for song.ogg -└── gallery.yaml -888------------ gallery settings file +└── gallery.yaml ---------------- gallery settings file ``` @@ -93,7 +94,7 @@ An example input gallery directory structure could be as follows: File metadata are read from sidecar files of the same name, with the ".yaml" extension appended. Metadata contained within item files themselves (e.g. Exif fields for pictures) are ignored. -Directory metadata are read from sidecar files named "_directory.yaml" located within the directory. +Directory metadata are read from sidecar files named "\_directory.yaml" located within the directory. When a sidecar file is absent or a particular key omitted, values are set as empty or to their fallback value specified below. @@ -101,17 +102,16 @@ title : Title of the item. Defaults to the name of the file or directory. - - +: Optional description for the item. + Rich text formatting is possible through the use of the [GitHub Flavoured Markdown syntax][GFM]. + + [GFM]: https://github.github.com/gfm/ tags : List of tags for the item. @@ -121,7 +121,9 @@ tags # GALLERY CONFIGURATION -The gallery settings reside in a file named "gallery.yaml" located at the root of the gallery's source directory. +The gallery settings reside in a file named __gallery.yaml__ located at the root of the gallery's source directory. + +Gallery configurations options are: galleryTitle : Title of the gallery. @@ -129,7 +131,7 @@ galleryTitle includedDirectories[] : Glob patterns of directory names to include in the gallery. - Defaults to ["*"] (matches all directory names). + Defaults to ["\*"] (matches all directory names). excludedDirectories[] : Glob patterns of directory names to exclude from the gallery. @@ -137,7 +139,7 @@ excludedDirectories[] includedFiles[] : Glob patterns of file names to include in the gallery. - Defaults to ["*"] (matches all file names). + Defaults to ["\*"] (matches all file names). excludedFiles[] : Glob patterns of file names to exclude from the gallery. @@ -146,7 +148,7 @@ excludedFiles[] includedTags[] : Glob patterns of tags to include in the gallery. Items with no tags can be matched with the empty pattern. - Defaults to ["*"] (matches all tags, includes untagged items). + Defaults to ["\*"] (matches all tags, includes untagged items). excludedTags[] : Glob patterns of tags to exclude from the gallery. @@ -178,7 +180,7 @@ pictureMaxResolution.height # SEE ALSO -Related manual pages: __ldgallery-quickstart__(7), __ldgallery-viewer__(7) +Related manual pages: __ldgallery-quickstart__(7), __ldgallery-viewer__(7). The ldgallery source code is available on . -- cgit v1.2.3