Skip to content

Commit cd7ddd1

Browse files
authored
Merge pull request #7 from neilboyd/single-word
minor updates
2 parents 0823631 + ed15ef3 commit cd7ddd1

10 files changed

+33
-19
lines changed

.devcontainer/devcontainer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
// Features to add to the dev container. More info: https://containers.dev/features.
99
"features": {
10-
"ghcr.io/devcontainers-contrib/features/node-asdf:0": {}
10+
"ghcr.io/devcontainers-contrib/features/node-asdf:0": {},
11+
"ghcr.io/schlich/devcontainer-features/cypress:1": {}
1112
}
1213

1314
// Use 'forwardPorts' to make a list of ports inside the container available locally.

.github/workflows/main.yml

-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ jobs:
2222
# record: false
2323
# # cache-key: node-v${{ matrix.node }}-on-${{ runner.os }}-hash-${{ hashFiles('package-lock.json') }}
2424

25-
# TODO delete this step in the next release
26-
- name: Branch Name
27-
run: echo ${GITHUB_REF}
28-
2925
- name: publish
3026
if: contains(github.ref, 'refs/tags/')
3127
env:

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
A JavaScript library to add search functionality to any Jekyll blog.
44

5+
## Fork
6+
7+
This is a fork of
8+
[the original](https://github.com/christian-fei/Simple-Jekyll-Search)
9+
because all the
10+
[releases](https://github.com/christian-fei/Simple-Jekyll-Search/tags)
11+
after `1.9.0` were actually the same as `1.9.0` because the build step was not executed.
12+
13+
I then made the following changes:
14+
- add [dev container](https://code.visualstudio.com/docs/devcontainers/containers) configuration
15+
- exact search using quotes instead of trailing space
16+
- add query parameter to middleware
17+
- split search criteria on words instead of space
18+
- add package version to header
19+
520
## Use case
621

722
You have a blog, built with Jekyll, and want a **lightweight search functionality** on your blog, purely client-side?
@@ -299,6 +314,7 @@ layout: none
299314

300315
- `npm install`
301316
- `npm test`
317+
- `npm run dist`
302318

303319
#### Acceptance tests
304320

dest/simple-jekyll-search.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* Simple-Jekyll-Search 1.12.0
3-
* Copyright 2015-2024, Christian Fei
2+
* Simple-Jekyll-Search 1.12.1
3+
* Copyright 2015-2024, Christian Fei, Neil Boyd
44
* Licensed under the MIT License.
55
*/
66

dest/simple-jekyll-search.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/js/simple-jekyll-search.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* Simple-Jekyll-Search 1.12.0
3-
* Copyright 2015-2024, Christian Fei
2+
* Simple-Jekyll-Search 1.12.1
3+
* Copyright 2015-2024, Christian Fei, Neil Boyd
44
* Licensed under the MIT License.
55
*/
66

example/js/simple-jekyll-search.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+4-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "simple-jekyll-search",
3-
"version": "1.12.0",
3+
"version": "1.12.1",
44
"description": "Simple Jekyll site search using javascript and json",
55
"main": "dest/simple-jekyll-search.js",
66
"scripts": {
@@ -38,7 +38,7 @@
3838
"ava": "^3.14.0",
3939
"browser-pack-flat": "^3.4.2",
4040
"browserify": "^17.0.0",
41-
"cypress": "^6.2.0",
41+
"cypress": "^6.9.1",
4242
"standard": "^16.0.3",
4343
"uglify-js": "^3.12.3"
4444
},

scripts/stamp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const year = new Date().getFullYear()
1111
const stampTop =
1212
`/*!
1313
* Simple-Jekyll-Search ${version}
14-
* Copyright 2015-${year}, Christian Fei
14+
* Copyright 2015-${year}, Christian Fei, Neil Boyd
1515
* Licensed under the MIT License.
1616
*/
1717

0 commit comments

Comments
 (0)