jekyll-algolia 1.4.1 → 1.4.2

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
  SHA1:
3
- metadata.gz: 481b7a00fb77312b22d28dd2f36c1451716016ca
4
- data.tar.gz: c9d0db5c134418357f510fd30085031b28a6ffca
3
+ metadata.gz: 83d5d5dc0855c5a04fec685aa2538f65cfa0d9d9
4
+ data.tar.gz: a995dd304d0b12b9e122a2729f36d55dc60ee663
5
5
  SHA512:
6
- metadata.gz: 4cb7407675f31cdd3f11a4584df1f110934fab993fd60d98fe591dbfa82fd56a2773d3d7721dcc7a488c0c1977e67429226bdd500520a85c995f1c60936bfb36
7
- data.tar.gz: 061740db0b6b2061eb0b16116f1b5c9a0425b191096030b5d99967cccd1b4fa611c78c5e9e4fb903d6ed067b558c623fdacf75dc0426694d3b8bbb15357bb1f6
6
+ metadata.gz: 2a5de7446c8ede933ded49f9a8fb819559b097d947529535404b79ecbeef6ca89ef293498929da4a77fa6da74b46ad81fe78e457423b5f01b8aaacbbf8425f05
7
+ data.tar.gz: 646b7126e761ddaced88053693d4c86f32ec1ca5ee772b13351345eaa006ab761d560578c504613e1845adc16953d15616459c302c95f5500bdce626e876df63
@@ -55,6 +55,7 @@ module Jekyll
55
55
  require 'jekyll/algolia/overwrites/githubpages-configuration'
56
56
  require 'jekyll/algolia/overwrites/jekyll-algolia-site'
57
57
  require 'jekyll/algolia/overwrites/jekyll-document'
58
+ require 'jekyll/algolia/overwrites/jekyll-paginate-pager'
58
59
  require 'jekyll/algolia/overwrites/jekyll-tags-link'
59
60
 
60
61
  # Register our own tags to overwrite the default tags
@@ -234,12 +234,6 @@ module Jekyll
234
234
  # Public: Disable features from other Jekyll plugins that might interfere
235
235
  # with the indexing
236
236
  def self.disable_other_plugins(config)
237
- # Disable pagination from jekyll-paginate
238
- # It creates a lot of /page2/index.html files that are not relevant to
239
- # indexing
240
- # https://github.com/jekyll/jekyll-paginate/blob/master/lib/jekyll-paginate/pager.rb#L23
241
- config['paginate'] = nil
242
-
243
237
  # Disable archive pages from jekyll-archives
244
238
  config['jekyll-archives'] = nil
245
239
 
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Jekyll
4
+ module Paginate
5
+ # Disable pagination from jekyll-paginate
6
+ #
7
+ # This plugin will create pages that contain a list of all items to
8
+ # paginate. Those pages won't contain any interesting data to be indexed
9
+ # (as it will be duplicated content of the real pages), but will still
10
+ # take time to generate.
11
+ #
12
+ # By monkey-patching the plugin, we force it to be disabled
13
+ # https://github.com/jekyll/jekyll-paginate/blob/master/lib/jekyll-paginate/pager.rb#L22
14
+ class Pager
15
+ def self.pagination_enabled?(_site)
16
+ false
17
+ end
18
+ end
19
+ end
20
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Algolia
5
- VERSION = '1.4.1'
5
+ VERSION = '1.4.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-algolia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Carry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-07 00:00:00.000000000 Z
11
+ date: 2018-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: algolia_html_extractor
@@ -307,6 +307,7 @@ files:
307
307
  - lib/jekyll/algolia/overwrites/githubpages-configuration.rb
308
308
  - lib/jekyll/algolia/overwrites/jekyll-algolia-site.rb
309
309
  - lib/jekyll/algolia/overwrites/jekyll-document.rb
310
+ - lib/jekyll/algolia/overwrites/jekyll-paginate-pager.rb
310
311
  - lib/jekyll/algolia/overwrites/jekyll-tags-link.rb
311
312
  - lib/jekyll/algolia/progress_bar.rb
312
313
  - lib/jekyll/algolia/shrinker.rb