jekyll-waxify 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +22 -5
- data/lib/jekyll/waxify/jekyll_config.rb +1 -1
- data/lib/jekyll/waxify/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8140544121d61a2df531010ff3259b246ecdb44efbde498e233fdbb077f9f76d
|
|
4
|
+
data.tar.gz: 8d1fa893b50f5f0a5b6e8b23c461923794d6dbd2b5f101f6f8a275234e977ee2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a20336f7dd049653ec1e7db0adad9fcedc164c73e360bcb091491cb1684050a3c5bc981fcd4f610d9adbfb9beb19e70b230cb8d55db8fa0f98df0c35ea5ecef5
|
|
7
|
+
data.tar.gz: c3daea5de81d6f4342658a22403183c05c273a98f8687100cb1301a935e348b27ab12331f64c1a8918bc0efabbf30bd90cd050eef5be1487f7c3861fa72e3788
|
data/README.md
CHANGED
|
@@ -7,13 +7,14 @@ This is a work in progress. If you try it on an existing Jekyll site, be sure yo
|
|
|
7
7
|
|
|
8
8
|
TODOs:
|
|
9
9
|
|
|
10
|
-
- [
|
|
10
|
+
- [x] deploy to RubyGems
|
|
11
11
|
- [x] provide scaffolding for Wax iiif images
|
|
12
12
|
- [ ] enable import of images on collection creation
|
|
13
13
|
- [x] refactoring
|
|
14
14
|
- [ ] provide scaffolding for Wax indexing
|
|
15
15
|
- [ ] test with mature Jekyll sites
|
|
16
16
|
- [x] add specs
|
|
17
|
+
- [ ] explain multi-image items
|
|
17
18
|
|
|
18
19
|
A minimal demo site can be seen at [https://pbinkley.github.io/jekyll-waxify](https://pbinkley.github.io/jekyll-waxify).
|
|
19
20
|
|
|
@@ -28,8 +29,8 @@ In order to make the site compatible with Github Pages, use the github pages gem
|
|
|
28
29
|
And add these lines to the ```jekyll_plugins``` group:
|
|
29
30
|
|
|
30
31
|
```ruby
|
|
31
|
-
gem 'github-pages', '~>
|
|
32
|
-
gem 'jekyll-waxify', '0.1
|
|
32
|
+
gem 'github-pages', '~> 214'
|
|
33
|
+
gem 'jekyll-waxify', '~> 0.1'
|
|
33
34
|
```
|
|
34
35
|
|
|
35
36
|
And add this section:
|
|
@@ -54,15 +55,31 @@ This creates all the scaffolding for your collection. To populate it, copy image
|
|
|
54
55
|
|
|
55
56
|
Now you can generate the Wax artefacts for your collection:
|
|
56
57
|
|
|
57
|
-
$ bundle exec rake wax:pages <collection name>
|
|
58
58
|
$ bundle exec rake wax:derivatives:iiif <collection name>
|
|
59
|
+
$ bundle exec rake wax:pages <collection name>
|
|
59
60
|
|
|
60
61
|
And view the site in the normal Jekyll way:
|
|
61
62
|
|
|
62
63
|
$ bundle exec jekyll serve
|
|
63
|
-
|
|
64
|
+
|
|
64
65
|
The "Collections" link in the tab bar will take you to your new collection.
|
|
65
66
|
|
|
67
|
+
## What the Scaffolding Provides
|
|
68
|
+
|
|
69
|
+
The scaffolding adds a [number of files](https://github.com/pbinkley/jekyll-waxify/tree/main/wax-framework) to your Jekyll site. These are copied from the Wax demo site. They include the Rakefile needed to run the Wax tasks, the various assets needed to provide Jekyll services (including OpenSeadragon etc.), a collections.markdown page to provide access to the IIIF collections, and the Jekyll includes and layouts needed to generate item-level pages.
|
|
70
|
+
|
|
71
|
+
The scaffolding assumes only two metadata fields: the required ```pid``` and a ```label```. You can add more fields by adding columns to your collection csv. The fields will be displayed by default on the item-level page under the image, and are available for use in the normal Jekyll way.
|
|
72
|
+
|
|
73
|
+
The ```_includes``` files you will most likely want to modify are:
|
|
74
|
+
|
|
75
|
+
- [osd\_iiif\_image\_viewer.html](https://github.com/pbinkley/jekyll-waxify/blob/main/wax-framework/_includes/osd_iiif_image_viewer.html): This provides the template for an OpenSeadragon display of a IIIF item. If you want to change the configuration of the OpenSeadragon display, this is where you do it.
|
|
76
|
+
- [collection\_gallery.html]https://github.com/pbinkley/jekyll-waxify/blob/main/wax-framework/_includes/collection_gallery.html): This provides the ```div``` containing an item on the collections page.
|
|
77
|
+
|
|
78
|
+
You might also want to tinker with these:
|
|
79
|
+
|
|
80
|
+
- [item\_metadata.html](https://github.com/pbinkley/jekyll-waxify/blob/main/wax-framework/_includes/item_metadata.html): Controls the display of metadata in a table under the OpenSeadragon image.
|
|
81
|
+
- [item\_pagination.html](https://github.com/pbinkley/jekyll-waxify/blob/main/wax-framework/_includes/item_metadata.html): Controls the pagination links to previous and next images in multi-image items.
|
|
82
|
+
|
|
66
83
|
## Development
|
|
67
84
|
|
|
68
85
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-waxify
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Binkley
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: deep_merge
|
|
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
274
274
|
- !ruby/object:Gem::Version
|
|
275
275
|
version: '0'
|
|
276
276
|
requirements: []
|
|
277
|
-
rubygems_version: 3.
|
|
277
|
+
rubygems_version: 3.1.2
|
|
278
278
|
signing_key:
|
|
279
279
|
specification_version: 4
|
|
280
280
|
summary: A Jekyll plugin that installs basic minicomp/wax components
|