algoliasearch-jekyll 0.8.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/Gemfile +1 -1
- data/README.md +15 -3
- data/algoliasearch-jekyll.gemspec +7 -7
- data/lib/push.rb +3 -0
- data/lib/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ec5eedd6df1fff528552d378eec2b27780e80c2
|
4
|
+
data.tar.gz: bf1ed0c45da66eec802ca7615d8e004f510f73c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b475a0072c6655cb502df46d715503643d96e354a4bb1a152984752f4578402f1e89b1e6028352b6c0a0920dbb817c818dadfb926295157b118c525eb0e96914
|
7
|
+
data.tar.gz: 9f9431cc4067aa97558cd7b8b6447bed5d56fc8e13633399654b3bebf0263067b4c2d68fe5556215c785b2b46a39baea4db870ab15dd6bb5473963acb6e22731
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -32,7 +32,7 @@ source 'https://rubygems.org'
|
|
32
32
|
gem 'jekyll', '~> 2.5.3'
|
33
33
|
|
34
34
|
group :jekyll_plugins do
|
35
|
-
gem 'algoliasearch-jekyll', '~> 0.
|
35
|
+
gem 'algoliasearch-jekyll', '~> 0.9.0'
|
36
36
|
end
|
37
37
|
```
|
38
38
|
|
@@ -42,7 +42,7 @@ Then, add `algoliasearch-jekyll` to your `_config.yml` file, under the `gems`
|
|
42
42
|
section, like this:
|
43
43
|
|
44
44
|
```yaml
|
45
|
-
|
45
|
+
plugins:
|
46
46
|
- algoliasearch-jekyll
|
47
47
|
```
|
48
48
|
|
@@ -64,7 +64,7 @@ You can also define the `ALGOLIA_APPLICATION_ID` and `ALGOLIA_INDEX_NAME`
|
|
64
64
|
environment variables. If present, they will be used instead of the options in
|
65
65
|
`_config.yml`.
|
66
66
|
|
67
|
-
|
67
|
+
Your write api key will be read from the `ALGOLIA_API_KEY` environment variable.
|
68
68
|
You can define it on the same line as your command, allowing you to type
|
69
69
|
`ALGOLIA_API_KEY='your_write_api_key' jekyll algolia push`.
|
70
70
|
|
@@ -109,6 +109,18 @@ algolia:
|
|
109
109
|
record_css_selector: 'p,ul'
|
110
110
|
```
|
111
111
|
|
112
|
+
#### `allowed_extensions`
|
113
|
+
|
114
|
+
Define additional extensions to be indexed. The default behaviour is to index
|
115
|
+
only markdown and HTML files.
|
116
|
+
|
117
|
+
```yml
|
118
|
+
algolia:
|
119
|
+
allowed_extensions:
|
120
|
+
- adoc
|
121
|
+
- ad
|
122
|
+
```
|
123
|
+
|
112
124
|
#### `settings`
|
113
125
|
|
114
126
|
Here you can pass any specific [index settings][5] to your Algolia index. All
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: algoliasearch-jekyll 0.
|
5
|
+
# stub: algoliasearch-jekyll 0.9.0 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "algoliasearch-jekyll".freeze
|
9
|
-
s.version = "0.
|
9
|
+
s.version = "0.9.0"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Tim Carry".freeze]
|
14
|
-
s.date = "2017-
|
14
|
+
s.date = "2017-10-15"
|
15
15
|
s.description = "Index all your pages and posts to an Algolia index with `jekyll algolia push`".freeze
|
16
16
|
s.email = "tim@pixelastic.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
@@ -100,14 +100,14 @@ Gem::Specification.new do |s|
|
|
100
100
|
]
|
101
101
|
s.homepage = "https://github.com/algolia/algoliasearch-jekyll".freeze
|
102
102
|
s.licenses = ["MIT".freeze]
|
103
|
-
s.rubygems_version = "2.6.
|
103
|
+
s.rubygems_version = "2.6.13".freeze
|
104
104
|
s.summary = "AlgoliaSearch for Jekyll".freeze
|
105
105
|
|
106
106
|
if s.respond_to? :specification_version then
|
107
107
|
s.specification_version = 4
|
108
108
|
|
109
109
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
110
|
-
s.add_runtime_dependency(%q<algoliasearch>.freeze, ["~> 1.
|
110
|
+
s.add_runtime_dependency(%q<algoliasearch>.freeze, ["~> 1.12"])
|
111
111
|
s.add_runtime_dependency(%q<appraisal>.freeze, ["~> 2.1.0"])
|
112
112
|
s.add_runtime_dependency(%q<awesome_print>.freeze, ["~> 1.6"])
|
113
113
|
s.add_runtime_dependency(%q<json>.freeze, [">= 1.8.6"])
|
@@ -124,7 +124,7 @@ Gem::Specification.new do |s|
|
|
124
124
|
s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.10"])
|
125
125
|
s.add_development_dependency(%q<rack>.freeze, ["< 2"])
|
126
126
|
else
|
127
|
-
s.add_dependency(%q<algoliasearch>.freeze, ["~> 1.
|
127
|
+
s.add_dependency(%q<algoliasearch>.freeze, ["~> 1.12"])
|
128
128
|
s.add_dependency(%q<appraisal>.freeze, ["~> 2.1.0"])
|
129
129
|
s.add_dependency(%q<awesome_print>.freeze, ["~> 1.6"])
|
130
130
|
s.add_dependency(%q<json>.freeze, [">= 1.8.6"])
|
@@ -142,7 +142,7 @@ Gem::Specification.new do |s|
|
|
142
142
|
s.add_dependency(%q<rack>.freeze, ["< 2"])
|
143
143
|
end
|
144
144
|
else
|
145
|
-
s.add_dependency(%q<algoliasearch>.freeze, ["~> 1.
|
145
|
+
s.add_dependency(%q<algoliasearch>.freeze, ["~> 1.12"])
|
146
146
|
s.add_dependency(%q<appraisal>.freeze, ["~> 2.1.0"])
|
147
147
|
s.add_dependency(%q<awesome_print>.freeze, ["~> 1.6"])
|
148
148
|
s.add_dependency(%q<json>.freeze, [">= 1.8.6"])
|
data/lib/push.rb
CHANGED
@@ -41,6 +41,9 @@ class AlgoliaSearchJekyllPush < Jekyll::Command
|
|
41
41
|
if @config['markdown_ext']
|
42
42
|
allowed_extensions += @config['markdown_ext'].split(',')
|
43
43
|
end
|
44
|
+
if @config['algolia']
|
45
|
+
allowed_extensions += (@config['algolia']['allowed_extensions'] || [])
|
46
|
+
end
|
44
47
|
return false unless allowed_extensions.include?(extname)
|
45
48
|
|
46
49
|
return false if excluded_file?(file)
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: algoliasearch-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Carry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: algoliasearch
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.12'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.12'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: appraisal
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -347,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
347
347
|
version: '0'
|
348
348
|
requirements: []
|
349
349
|
rubyforge_project:
|
350
|
-
rubygems_version: 2.6.
|
350
|
+
rubygems_version: 2.6.13
|
351
351
|
signing_key:
|
352
352
|
specification_version: 4
|
353
353
|
summary: AlgoliaSearch for Jekyll
|