aboutsummaryrefslogtreecommitdiff
path: root/ldgallery.1.md
diff options
context:
space:
mode:
authorpacien2020-01-05 10:43:48 +0100
committerpacien2020-01-05 10:43:48 +0100
commit5367781f0c7fd1ce274492ba91895fef9d44dab3 (patch)
treee9607211188e1ab73cb057e72863297f004f5d53 /ldgallery.1.md
parent1a0f4b17fc77c4b330c43185a15230e67116a3aa (diff)
downloadldgallery-5367781f0c7fd1ce274492ba91895fef9d44dab3.tar.gz
add manual
Diffstat (limited to 'ldgallery.1.md')
-rw-r--r--ldgallery.1.md141
1 files changed, 141 insertions, 0 deletions
diff --git a/ldgallery.1.md b/ldgallery.1.md
new file mode 100644
index 0000000..99d6ccb
--- /dev/null
+++ b/ldgallery.1.md
@@ -0,0 +1,141 @@
1% LDGALLERY(1) ldgallery user manual
2% Pacien TRAN-GIRARD, Guillaume FOUET
3% 2020-01-05 (v0.1.0.0-SNAPSHOT)
4
5
6# NAME
7
8ldgallery - a static web gallery generator with tags
9
10
11# DESCRIPTION
12
13ldgallery is a static gallery generator which turns a collection of tagged pictures into a searchable web gallery.
14
15The 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. This client-side web application does not require any special software on the server's side.
16
17
18# COMMAND
19
20ldgallery [\--input-dir=_./_] [\--output-dir=_./out_] [\--with-viewer]
21
22Available options are:
23
24-i, \--input-dir=_DIR_
25: Gallery source directory. Defaults to the current directory.
26
27-o, \--output-dir=_DIR_
28: Generated gallery output path. Defaults to ./out.
29
30-r, \--rebuild-all
31: Invalidate cache and recompile everything.
32
33-w, \--with-viewer
34: Include the static web viewer in the output.
35
36-h, \--help
37: Display help message.
38
39\--version
40: Print version information.
41
42\--numeric-version
43: Print just the version number.
44
45
46# INPUT GALLERY STRUCTURE
47
48A gallery source directory contains the gallery items and their sidecar metadata files, optionally grouped inside sub-directories.
49Directory thumbnails can be set by placing a picture file named "thumbnail", with any image file extension, inside of it.
50
51An example input gallery directory structure could be as follows:
52
53```
54./example-gallery
55├── DSC0001.jpg --------- a picture
56├── DSC0001.jpg.yaml ---- its associated sidecar metadata file
57├── Some directory ------ a directory grouping gallery items
58│ ├── thumbnail.jpg --- a thumbnail for its parent directory
59│ ├── DSC0002.jpg
60│ ├── DSC0002.jpg.yaml
61│ ├── DSC0003.jpg
62│ └── DSC0003.jpg.yaml
63└── gallery.yaml -------- gallery settings file
64```
65
66
67# ITEM METADATA SIDECAR
68
69Item metadata are read from sidecar files of the same name, with the ".yaml" extension appended.
70When a sidecar file is absent or a particular key omitted, values are set as empty or to their fallback value specified below.
71Metadata contained within item files themselves (e.g. Exif fields for pictures) are ignored.
72
73title
74: Title of the item. Defaults to the name of the file.
75
76date
77: ISO 8601-formatted date and time.
78
79description
80: Description for the item.
81
82tags
83: List of tags for the item. Tag groups can be defined using prefixes separated by "." (dot).
84
85
86# GALLERY CONFIGURATION
87
88The gallery settings reside in a file named "gallery.yaml" located at the root of the gallery's source directory.
89
90compiler.galleryName
91: Name of the gallery. Defaults to "Gallery".
92
93compiler.ignoreFiles
94: Regular expression matching the name of files to ignore.
95
96compiler.implicitDirectoryTag
97: Whether to implicitely tag items with the name of their immediate parent directory.
98
99compiler.thumbnailMaxResolution.width
100: Maximum width in pixels of the item thumbnails, 400 by default.
101
102compiler.thumbnailMaxResolution.height
103: Maximum height in pixels of the item thumbnails, 400 by default.
104
105compiler.pictureMaxResolution.width
106: Maximum width in pixels of the picture items, unlimited by default.
107
108compiler.pictureMaxResolution.height
109: Maximum height in pixels of the picture items, unlimited by default.
110
111viewer.defaultSearchMode [TODO]
112: Default search view mode ("highlight" or "filter"). Defaults to "filter".
113
114viewer.defaultSearchQuery [TODO]
115: Default search query string.
116
117viewer.defaultSortOrder [TODO]
118: Default sort order ("alphanumeric", "reverse-alphanumeric", "date", "reverse-date"). Defaults to "date".
119
120viewer.tagGroups[].tag [TODO]
121: Tag prefix defining the tag group.
122
123viewer.tagGroups[].order [TODO]
124: Order in which to display tag groups.
125
126viewer.tagGroups[].colour [TODO]
127: Colour associated to the tag group.
128
129viewer.hiddenTags [TODO]
130: List of tags to hide by default. Items bearing one of those tags will not be displayed until they are being explicitly searched for.
131
132
133# SEE ALSO
134
135The ldgallery source code is available on <https://ldgallery.pacien.org>.
136
137Copyright (C) 2019-2020 Pacien TRAN-GIRARD and Guillaume FOUET.
138
139This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
140
141This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details <https://www.gnu.org/licenses/agpl-3.0.html>.