diff options
author | pacien | 2020-05-02 04:11:24 +0200 |
---|---|---|
committer | pacien | 2020-05-02 04:11:24 +0200 |
commit | 8e3ac8fe44bebb38e1882ca7f06b8100078ad88d (patch) | |
tree | a748fa1e639cb3b5e1f24a8150e89dbb28c980cb /example | |
parent | 7042ffc06326fa8ffe70f5a59747709250166c16 (diff) | |
parent | 0e0b5b0ae44da7c1d67983dedd8f8d8d3516236f (diff) | |
download | ldgallery-1.0.tar.gz |
Merge branch 'develop': release v1.0v1.0
Diffstat (limited to 'example')
-rw-r--r-- | example/.gitignore | 2 | ||||
-rw-r--r-- | example/Glacier 3000/_DSC5475.jpg.yaml | 15 | ||||
-rw-r--r-- | example/Glacier 3000/_DSC5542.jpg.yaml | 15 | ||||
-rw-r--r-- | example/config.json | 3 | ||||
-rw-r--r-- | example/gallery.yaml | 21 | ||||
-rw-r--r-- | example/readme.md | 23 | ||||
-rw-r--r-- | example/src/DSC0001.jpg (renamed from example/_DSC8808-1.jpg) | bin | 1010643 -> 1010643 bytes | |||
-rw-r--r-- | example/src/DSC0001.jpg.yaml (renamed from example/_DSC8808-1.jpg.yaml) | 4 | ||||
-rw-r--r-- | example/src/Ormont-Dessus/DSC0002.jpg (renamed from example/Glacier 3000/_DSC5542.jpg) | bin | 457873 -> 457873 bytes | |||
-rw-r--r-- | example/src/Ormont-Dessus/DSC0002.jpg.yaml | 13 | ||||
-rw-r--r-- | example/src/Ormont-Dessus/DSC0003.jpg (renamed from example/Glacier 3000/_DSC5475.jpg) | bin | 363216 -> 363216 bytes | |||
-rw-r--r-- | example/src/Ormont-Dessus/DSC0003.jpg.yaml | 13 | ||||
-rw-r--r-- | example/src/Ormont-Dessus/_directory.jpg (renamed from example/Glacier 3000/thumbnail.jpg) | bin | 457873 -> 457873 bytes | |||
-rw-r--r-- | example/src/Ormont-Dessus/_directory.yaml | 3 | ||||
-rw-r--r-- | example/src/_directory.yaml | 1 | ||||
-rw-r--r-- | example/src/gallery.yaml | 31 |
16 files changed, 78 insertions, 66 deletions
diff --git a/example/.gitignore b/example/.gitignore index c5ae58b..1fcb152 100644 --- a/example/.gitignore +++ b/example/.gitignore | |||
@@ -1,3 +1 @@ | |||
1 | out | out | |
2 | items | ||
3 | thumbnails \ No newline at end of file | ||
diff --git a/example/Glacier 3000/_DSC5475.jpg.yaml b/example/Glacier 3000/_DSC5475.jpg.yaml deleted file mode 100644 index 3454a68..0000000 --- a/example/Glacier 3000/_DSC5475.jpg.yaml +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | title: Fog 3000 | ||
2 | |||
3 | datetime: 2019-08-10T14:38:47+01:00 | ||
4 | |||
5 | description: > | ||
6 | © Philippe NGUYEN | ||
7 | |||
8 | tags: | ||
9 | - photographer.nphilou | ||
10 | - location.switzerland.ormont-dessus | ||
11 | - glacier3000 | ||
12 | - time.day | ||
13 | - weather.foggy | ||
14 | - forest | ||
15 | - trees | ||
diff --git a/example/Glacier 3000/_DSC5542.jpg.yaml b/example/Glacier 3000/_DSC5542.jpg.yaml deleted file mode 100644 index d174911..0000000 --- a/example/Glacier 3000/_DSC5542.jpg.yaml +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | title: Foggy catwalk | ||
2 | |||
3 | datetime: 2019-08-10T16:00:45+01:00 | ||
4 | |||
5 | description: > | ||
6 | © Philippe NGUYEN | ||
7 | |||
8 | tags: | ||
9 | - photographer.nphilou | ||
10 | - location.switzerland.ormont-dessus | ||
11 | - glacier3000 | ||
12 | - time.day | ||
13 | - weather.foggy | ||
14 | - catwalk | ||
15 | - mountain | ||
diff --git a/example/config.json b/example/config.json new file mode 100644 index 0000000..6483257 --- /dev/null +++ b/example/config.json | |||
@@ -0,0 +1,3 @@ | |||
1 | { | ||
2 | "galleryRoot": "out/" | ||
3 | } | ||
diff --git a/example/gallery.yaml b/example/gallery.yaml deleted file mode 100644 index ccdb16b..0000000 --- a/example/gallery.yaml +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | compiler: | ||
2 | galleryName: Example gallery | ||
3 | |||
4 | includeFiles: | ||
5 | - "*.jpg" | ||
6 | |||
7 | #excludeFiles: | ||
8 | #- "*.md" | ||
9 | |||
10 | tagsFromDirectories: 0 # default | ||
11 | |||
12 | thumbnailMaxResolution: | ||
13 | width: 400 # default | ||
14 | height: 400 # default | ||
15 | |||
16 | pictureMaxResolution: | ||
17 | width: 1024 | ||
18 | height: 768 | ||
19 | |||
20 | |||
21 | viewer: {} | ||
diff --git a/example/readme.md b/example/readme.md index d5a7563..2c03260 100644 --- a/example/readme.md +++ b/example/readme.md | |||
@@ -8,15 +8,16 @@ Content | |||
8 | ------- | 8 | ------- |
9 | 9 | ||
10 | ``` | 10 | ``` |
11 | ./example | 11 | ./example/out ----------- the output directory for the compiled version of the gallery |
12 | ├── _DSC8808-1.jpg -- a picture | 12 | ./example/src ----------- source directory with pictures, configuration, tags and metadata |
13 | ├── _DSC8808-1.jpg.yaml -- its associated sidecar metadata file | 13 | ├── DSC0001.jpg --------- a picture |
14 | ├── Glacier 3000 -- a directory grouping gallery items | 14 | ├── DSC0001.jpg.yaml ---- its associated sidecar metadata file |
15 | │ ├── thumbnail.jpg -- a thumbnail for the "Glacier 3000" directory | 15 | ├── Ormont-Dessus ------- a directory grouping gallery items |
16 | │ ├── _DSC5475.jpg | 16 | │ ├── _directory.jpg -- a thumbnail for its parent directory |
17 | │ ├── _DSC5475.jpg.yaml | 17 | │ ├── _directory.yaml - directory sidecar metadata file |
18 | │ ├── _DSC5542.jpg | 18 | │ ├── DSC0002.jpg |
19 | │ └── _DSC5542.jpg.yaml | 19 | │ ├── DSC0002.jpg.yaml |
20 | ├── gallery.yaml -- gallery settings file | 20 | │ ├── DSC0003.jpg |
21 | └── readme.md -- this README | 21 | │ └── DSC0003.jpg.yaml |
22 | └── gallery.yaml -------- gallery settings file | ||
22 | ``` | 23 | ``` |
diff --git a/example/_DSC8808-1.jpg b/example/src/DSC0001.jpg index 51b43b0..51b43b0 100644 --- a/example/_DSC8808-1.jpg +++ b/example/src/DSC0001.jpg | |||
Binary files differ | |||
diff --git a/example/_DSC8808-1.jpg.yaml b/example/src/DSC0001.jpg.yaml index b946ff7..cca1379 100644 --- a/example/_DSC8808-1.jpg.yaml +++ b/example/src/DSC0001.jpg.yaml | |||
@@ -6,7 +6,7 @@ description: > | |||
6 | © Philippe NGUYEN | 6 | © Philippe NGUYEN |
7 | 7 | ||
8 | tags: | 8 | tags: |
9 | - photographer.nphilou | 9 | - photographer:nphilou |
10 | - location.germany.berlin | 10 | - location:germany:berlin |
11 | - books | 11 | - books |
12 | - book-shop | 12 | - book-shop |
diff --git a/example/Glacier 3000/_DSC5542.jpg b/example/src/Ormont-Dessus/DSC0002.jpg index 19a716e..19a716e 100644 --- a/example/Glacier 3000/_DSC5542.jpg +++ b/example/src/Ormont-Dessus/DSC0002.jpg | |||
Binary files differ | |||
diff --git a/example/src/Ormont-Dessus/DSC0002.jpg.yaml b/example/src/Ormont-Dessus/DSC0002.jpg.yaml new file mode 100644 index 0000000..a69deb9 --- /dev/null +++ b/example/src/Ormont-Dessus/DSC0002.jpg.yaml | |||
@@ -0,0 +1,13 @@ | |||
1 | title: Walking towards the unknown | ||
2 | |||
3 | datetime: 2019-08-10T16:00:45+01:00 | ||
4 | |||
5 | description: > | ||
6 | © Philippe NGUYEN | ||
7 | |||
8 | tags: | ||
9 | - photographer:nphilou | ||
10 | - time:day | ||
11 | - weather:foggy | ||
12 | - catwalk | ||
13 | - mountain | ||
diff --git a/example/Glacier 3000/_DSC5475.jpg b/example/src/Ormont-Dessus/DSC0003.jpg index 9835447..9835447 100644 --- a/example/Glacier 3000/_DSC5475.jpg +++ b/example/src/Ormont-Dessus/DSC0003.jpg | |||
Binary files differ | |||
diff --git a/example/src/Ormont-Dessus/DSC0003.jpg.yaml b/example/src/Ormont-Dessus/DSC0003.jpg.yaml new file mode 100644 index 0000000..558f921 --- /dev/null +++ b/example/src/Ormont-Dessus/DSC0003.jpg.yaml | |||
@@ -0,0 +1,13 @@ | |||
1 | title: Diffusion | ||
2 | |||
3 | datetime: 2019-08-10T14:38:47+01:00 | ||
4 | |||
5 | description: > | ||
6 | © Philippe NGUYEN | ||
7 | |||
8 | tags: | ||
9 | - photographer:nphilou | ||
10 | - time:day | ||
11 | - weather:foggy | ||
12 | - forest | ||
13 | - trees | ||
diff --git a/example/Glacier 3000/thumbnail.jpg b/example/src/Ormont-Dessus/_directory.jpg index 19a716e..19a716e 100644 --- a/example/Glacier 3000/thumbnail.jpg +++ b/example/src/Ormont-Dessus/_directory.jpg | |||
Binary files differ | |||
diff --git a/example/src/Ormont-Dessus/_directory.yaml b/example/src/Ormont-Dessus/_directory.yaml new file mode 100644 index 0000000..5b3e0c7 --- /dev/null +++ b/example/src/Ormont-Dessus/_directory.yaml | |||
@@ -0,0 +1,3 @@ | |||
1 | # The following tags are applied to all items in the directory | ||
2 | tags: | ||
3 | - location:switzerland:ormont-dessus | ||
diff --git a/example/src/_directory.yaml b/example/src/_directory.yaml new file mode 100644 index 0000000..ab81bb2 --- /dev/null +++ b/example/src/_directory.yaml | |||
@@ -0,0 +1 @@ | |||
title: Example gallery | |||
diff --git a/example/src/gallery.yaml b/example/src/gallery.yaml new file mode 100644 index 0000000..b569910 --- /dev/null +++ b/example/src/gallery.yaml | |||
@@ -0,0 +1,31 @@ | |||
1 | # ldgallery example gallery configuration file | ||
2 | |||
3 | #galleryTitle: "ldgallery" | ||
4 | |||
5 | #includedDirectories: ["*"] | ||
6 | #excludedDirectories: [] | ||
7 | |||
8 | includedFiles: | ||
9 | - '*.jpg' | ||
10 | |||
11 | #excludedFiles: | ||
12 | # - "*.md" | ||
13 | |||
14 | #includedTags: ["*"] | ||
15 | #excludedTags: [] | ||
16 | |||
17 | tagCategories: | ||
18 | - photographer | ||
19 | - location | ||
20 | |||
21 | #tagsFromDirectories: | ||
22 | # fromParents: 0 | ||
23 | # prefix: '' | ||
24 | |||
25 | #thumbnailMaxResolution: | ||
26 | # width: 400 | ||
27 | # height: 300 | ||
28 | |||
29 | pictureMaxResolution: | ||
30 | width: 1024 | ||
31 | height: 768 | ||