jekyll-algolia 1.4.8 → 1.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/errors/record_too_big.txt +3 -0
- data/lib/jekyll/algolia/shrinker.rb +3 -1
- data/lib/jekyll/algolia/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b588a386a93a1d56d7fb38a112b0bb4dffc7c8c241be3c82ed521fd463337bdd
|
4
|
+
data.tar.gz: 0f0c6462e81c5206a9c55b96501c63e1d16a6b12c748ea3c1d99336746a06ba2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 836973576f66ec70396bfcf7f7d2e4b3935a340af50ab6b548a30450b42140a2f339b4e3d685390502c1191dd35fef1301efb53e506fd82792e24bea6671cd51
|
7
|
+
data.tar.gz: bbe8dc1b8792365d15ef39c518fa77b6aedc384435d6abfcd97ad29e57251198e384611bbd60d95977104ed4526d3b0646d69ba4aa66d3b695ad62094a00a914
|
@@ -14,9 +14,12 @@ W: {record_log_path}
|
|
14
14
|
W:
|
15
15
|
I:This issue can be caused by malformed HTML preventing the parser to correctly grab the content of the nodes. Double check that the page actually renders correctly with a regular `jekyll build`.
|
16
16
|
I:
|
17
|
+
I:You can also exclude the page generating this error from the indexing by editing the `files_to_exclude` key of your config.
|
18
|
+
I:
|
17
19
|
I:If you think this is an error and your current Algolia plan should allow you to push records bigger than {max_record_size}, you can change the `max_record_size` config option to increase the limit. Paid plans have a limit set to 20Kb, while free Community plans have it set to 10Kb.
|
18
20
|
I:
|
19
21
|
I:The following documentation might help you:
|
22
|
+
I: - https://community.algolia.com/jekyll-algolia/options.html#files-to-exclude
|
20
23
|
I: - https://community.algolia.com/jekyll-algolia/options.html#nodes-to-index
|
21
24
|
I: - https://community.algolia.com/jekyll-algolia/options.html#max-record-size
|
22
25
|
I:
|
@@ -25,7 +25,9 @@ module Jekyll
|
|
25
25
|
return raw_record if size(raw_record) <= max_size
|
26
26
|
|
27
27
|
# No excerpt, we can't shrink it
|
28
|
-
|
28
|
+
if !raw_record.key?(:excerpt_html) || !raw_record.key?(:excerpt_text)
|
29
|
+
return stop_with_error(raw_record)
|
30
|
+
end
|
29
31
|
|
30
32
|
record = raw_record.clone
|
31
33
|
|
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.
|
4
|
+
version: 1.4.9
|
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-12-
|
11
|
+
date: 2018-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: algolia_html_extractor
|