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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06235b80d0b3b3c71a6cd10496561a8823bad187f02465bf4d68f0b738d7c365
4
- data.tar.gz: d4c1e2990721bdd4745ca6b9390174f00f6c388ab613c7258bd9642a8cafc2aa
3
+ metadata.gz: 8140544121d61a2df531010ff3259b246ecdb44efbde498e233fdbb077f9f76d
4
+ data.tar.gz: 8d1fa893b50f5f0a5b6e8b23c461923794d6dbd2b5f101f6f8a275234e977ee2
5
5
  SHA512:
6
- metadata.gz: e86964907ec3836709da76b96896cbea01bfa9c48e544ca006efd9bf7fbdbf213094463a41510f0a0aee46528e59253d407fd115ff22e6295263dab0ccf3e5a1
7
- data.tar.gz: c7360294b078d908bba5d8e82b13f3385f07940d0d5f0bc4cc689923720103bce766c588aab0ac7c1763f7512f05049af2a499830d7fbec947a9f44d360b4cd3
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
- - [ ] deploy to RubyGems
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', '~> 213'
32
- gem 'jekyll-waxify', '0.1.0'
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.
@@ -38,7 +38,7 @@ module Jekyll
38
38
  add(
39
39
  {
40
40
  "webrick" => {
41
- "header" => {
41
+ "headers" => {
42
42
  "Access-Control-Allow-Origin" => "*"
43
43
  }
44
44
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Waxify
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
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.0
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-04-19 00:00:00.000000000 Z
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.0.8
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