aboutsummaryrefslogtreecommitdiff
path: root/viewer/ldgallery-viewer.7.md
diff options
context:
space:
mode:
authorpacien2020-09-25 16:01:49 +0200
committerpacien2020-09-25 16:01:49 +0200
commite93f7b1eb84c083d67567115284c0002a3a7d5fc (patch)
tree8d373e8f7f571485e1330928f43b090ed004c525 /viewer/ldgallery-viewer.7.md
parent8e3ac8fe44bebb38e1882ca7f06b8100078ad88d (diff)
parentfd542f75a1d94ee5f804d0925823276b97f38581 (diff)
downloadldgallery-e93f7b1eb84c083d67567115284c0002a3a7d5fc.tar.gz
Merge branch 'develop' for release v2.0v2.0
Diffstat (limited to 'viewer/ldgallery-viewer.7.md')
-rw-r--r--viewer/ldgallery-viewer.7.md51
1 files changed, 45 insertions, 6 deletions
diff --git a/viewer/ldgallery-viewer.7.md b/viewer/ldgallery-viewer.7.md
index 41f5003..96070dc 100644
--- a/viewer/ldgallery-viewer.7.md
+++ b/viewer/ldgallery-viewer.7.md
@@ -2,7 +2,7 @@
2pagetitle: Viewer user manual - ldgallery 2pagetitle: Viewer user manual - ldgallery
3title: LDGALLERY-VIEWER(7) ldgallery 3title: LDGALLERY-VIEWER(7) ldgallery
4author: Pacien TRAN-GIRARD, Guillaume FOUET 4author: Pacien TRAN-GIRARD, Guillaume FOUET
5date: 2020-04-30 (v1.0) 5date: 2020-09-24 (v2.0)
6--- 6---
7 7
8 8
@@ -24,12 +24,23 @@ Its responsiveness allows it to be used from either a desktop browser or some mo
24The viewer's user interface is split into a main item view and a side search panel, which can be opened by using the appropriate button in the toolbar at the top-left corner. 24The viewer's user interface is split into a main item view and a side search panel, which can be opened by using the appropriate button in the toolbar at the top-left corner.
25 25
26The main view displays the gallery's directories and items as a thumbnail grid. 26The main view displays the gallery's directories and items as a thumbnail grid.
27The order in which items are displayed can be chosen from the sort menu at the top-left corner.
27 28
28The side panel allows the user to interactively enter filtering queries to search through the gallery's content. 29The side panel allows the user to interactively enter filtering queries to search through the gallery's content.
29This panel features a list of relevant tags, grouped by categories, that can be used to build the search query. 30This panel features a list of relevant tags, grouped by categories, that can be used to build the search query.
30 31
31Picture items can be opened and visualised within the application. 32The information panel at the bottom of the sidebar displays various metadata about the currently viewed item.
32Other types of elements are either downloaded or displayed in the same window depending on the user's web browser supported media types. 33Those include the title, date and description of the file or directory.
34
35Items of the following formats can be opened and visualised within the web application:
36
37* Pictures (Bitmap, JPEG, PNG, TIFF, HDR, GIF)
38* Videos (OGV, WebM, Matroska, MPEG-4)
39* Audio files (WAV, Opus, FLAC, MP3, MPEG-4)
40* Plain text files (`.txt`)
41* PDFs
42
43Formats which are not listed above or which are not supported by the user's web browser are offered for download instead of being directly displayed in the same window.
33 44
34 45
35# SEARCH QUERIES 46# SEARCH QUERIES
@@ -46,17 +57,45 @@ The following modifiers can be used in queries as prefixes of tags:
46`-` 57`-`
47: Exclude all items having the associated tag, independently of simple tag restrictions and inclusions. 58: Exclude all items having the associated tag, independently of simple tag restrictions and inclusions.
48 59
49Autocompletion suggestions are shown as filters are being typed in the query field. 60Auto-completion suggestions are shown as filters are being typed in the query field.
50In the case of disambiguated tags, both the category and the tag components are allowed to be partially entered, allowing "loc:fra" to expand into "location:france" for example. 61In the case of disambiguated tags, both the category and the tag components are allowed to be partially entered, allowing "loc:fra" to expand into "location:france" for example.
51 62
52 63
53# VIEWER CONFIGURATION 64# VIEWER CONFIGURATION
54 65
55The viewer itself can be configured through a JSON file named "config.json" and placed in the web viewer's directory. 66The viewer itself can be configured through a JSON file named __config.json__ and placed in the web viewer's directory.
67
68Viewer configuration options are:
56 69
57galleryRoot 70galleryRoot
58: Absolute or relative path to the root of the gallery to display. 71: Absolute or relative path to the root of the gallery to display.
59 72
73galleryIndex
74: Optional index file to use under the value specified for "galleryRoot".
75 Defaults to "index.json".
76
77initialItemSort
78: Order in which gallery items are originally to be displayed.
79 Possible values are "title_asc", "date_asc", "date_desc".
80 Defaults to "date_asc".
81 Titles are sorted using a human-friendly _natural sort order_ which treats multi-digit numbers atomically.
82 The item path is used as a tie-breaker for all the defined orders.
83
84<!-- https://github.com/pacien/ldgallery/issues/27
85initialSearchQuery
86: Optional initial search query to set when opening the gallery.
87-->
88
89initialTagDisplayLimit
90: Limit on the number of tags to suggest in each tag category.
91 Causes only the specified amount of most used tags to be displayed until the user expands the list.
92 Set to -1 to disable the limit on suggestions.
93 Defaults to 10.
94
95An alternative viewer configuration file located in the viewer's directory can be loaded by specifying its name,
96without the ".json" extension, as a query parameter given before the page anchor;
97for example, some alternative configuration named "config_2.json" can be loaded with "http://gallery/?config_2#".
98
60 99
61# PROGRESSIVE WEB APPLICATION 100# PROGRESSIVE WEB APPLICATION
62 101
@@ -68,7 +107,7 @@ An example of such manifest and an associated icon are available in the example
68 107
69# SEE ALSO 108# SEE ALSO
70 109
71Related manual pages: __ldgallery__(1), __ldgallery-quickstart__(7) 110Related manual pages: __ldgallery__(1), __ldgallery-quickstart__(7).
72 111
73The ldgallery source code is available on <https://ldgallery.pacien.org>. 112The ldgallery source code is available on <https://ldgallery.pacien.org>.
74 113