-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ Powering static site search with InfiSearch is extremely easy, and requires just | |
|
||
There are a couple of options for installing the indexer: | ||
- Install the global npm package with `npm install -g @infisearch/cli`. | ||
- If you have the rust / cargo toolchains setup, run `cargo install infisearch --vers 0.10.0`. | ||
- If you have the rust / cargo toolchains setup, run `cargo install infisearch --vers 0.10.1`. | ||
- You can also grab the cli binaries [here](https://github.com/ang-zeyu/infisearch/releases). | ||
|
||
### 2. Running the indexer | ||
|
@@ -49,9 +49,9 @@ Add the following resources to your pages: | |
|
||
```html | ||
<!-- Search UI script --> | ||
<script src="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].0/packages/search-ui/dist/search-ui.ascii.bundle.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].1/packages/search-ui/dist/search-ui.ascii.bundle.js"></script> | ||
<!-- Search UI css, this provides some basic styling for the search dropdown, and can be omitted if desired --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].0/packages/search-ui/dist/search-ui-light.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].1/packages/search-ui/dist/search-ui-light.css" /> | ||
``` | ||
|
||
If you wish to host the files, you can find them in the `<output-folder-path>/assets` directory generated by the indexer, or in the [releases](https://github.com/ang-zeyu/infisearch/releases) page. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ This page assumes the use case of a **static site**, that is: | |
|
||
There are a couple of options for installing the indexer: | ||
- Install the global npm package with `npm install -g @infisearch/cli`. | ||
- If you have the rust / cargo toolchains setup, run `cargo install infisearch --vers 0.10.0`. | ||
- If you have the rust / cargo toolchains setup, run `cargo install infisearch --vers 0.10.1`. | ||
- You can also grab the cli binaries [here](https://github.com/ang-zeyu/infisearch/releases). | ||
|
||
## Running the indexer | ||
|
@@ -46,12 +46,12 @@ If you are using the binaries, replace `infisearch` with the appropriate executa | |
### Installation via CDN | ||
|
||
```html | ||
<!-- Replace "v0.10.0" as appropriate --> | ||
<!-- Replace "v0.10.1" as appropriate --> | ||
|
||
<!-- Search UI script --> | ||
<script src="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].0/packages/search-ui/dist/search-ui.ascii.bundle.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].1/packages/search-ui/dist/search-ui.ascii.bundle.js"></script> | ||
<!-- Search UI css, this provides some basic styling for the search dropdown, and can be omitted if desired --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].0/packages/search-ui/dist/search-ui-light.css" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].1/packages/search-ui/dist/search-ui-light.css" /> | ||
``` | ||
|
||
> ⚠️ Ensure the linked versions **match the indexer version** used exactly. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ The text is first split into on sentences, then whitespaces to obtain tokens. An | |
**CDN Link** | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].0/packages/search-ui/dist/search-ui.ascii.bundle.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].1/packages/search-ui/dist/search-ui.ascii.bundle.js"></script> | ||
``` | ||
|
||
## Ascii Tokenizer with Stemmer | ||
|
@@ -66,7 +66,7 @@ If you do not need stemming, use the `ascii` tokenizer, which has a smaller wasm | |
**CDN Link** | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].0/packages/search-ui/dist/search-ui.ascii-stemmer.bundle.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].1/packages/search-ui/dist/search-ui.ascii-stemmer.bundle.js"></script> | ||
``` | ||
|
||
## Chinese Tokenizer | ||
|
@@ -89,7 +89,7 @@ You are highly recommended to keep positions indexed and query term proximity ra | |
**CDN Link** | ||
|
||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].0/packages/search-ui/dist/search-ui.chinese.bundle.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].1/packages/search-ui/dist/search-ui.chinese.bundle.js"></script> | ||
``` | ||
|
||
## Stop Words | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,8 +29,8 @@ Head on over to the demo site [here](https://infi-search.com) to try them out! | |
#### CDN link | ||
|
||
```html | ||
<!-- Replace "v0.10.0" as appropriate --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].0/packages/search-ui/dist/search-ui-light.css" /> | ||
<!-- Replace "v0.10.1" as appropriate --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].1/packages/search-ui/dist/search-ui-light.css" /> | ||
``` | ||
|
||
#### Preview | ||
|
@@ -46,8 +46,8 @@ Head on over to the demo site [here](https://infi-search.com) to try them out! | |
#### CDN link | ||
|
||
```html | ||
<!-- Replace "v0.10.0" as appropriate --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].0/packages/search-ui/dist/search-ui-basic.css" /> | ||
<!-- Replace "v0.10.1" as appropriate --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].1/packages/search-ui/dist/search-ui-basic.css" /> | ||
``` | ||
|
||
<div class="image-container"> | ||
|
@@ -59,8 +59,8 @@ Head on over to the demo site [here](https://infi-search.com) to try them out! | |
#### CDN link | ||
|
||
```html | ||
<!-- Replace "v0.10.0" as appropriate --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].0/packages/search-ui/dist/search-ui-dark.css" /> | ||
<!-- Replace "v0.10.1" as appropriate --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/ang-zeyu/[email protected].1/packages/search-ui/dist/search-ui-dark.css" /> | ||
``` | ||
|
||
#### Preview | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
"packages/search-ui", | ||
"packages/infisearch_search/pkg/*" | ||
], | ||
"version": "0.10.0" | ||
"version": "0.10.1" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "infisearch" | ||
version = "0.10.0" | ||
version = "0.10.1" | ||
authors = ["Ze Yu <[email protected]>"] | ||
edition = "2018" | ||
description = "A complete and more scalable pre-built index approach to client-side search." | ||
|
@@ -33,10 +33,10 @@ glob = "0.3" | |
lazy_static = "1.4" | ||
log = { version = "0.4", features = ["max_level_info", "release_max_level_info"] } | ||
log4rs = "1.0" | ||
infisearch_common = { path = "../infisearch_common", version="=0.10.0", features = ["indexer"] } | ||
infisearch_lang_ascii = { path = "../infisearch_languages/infisearch_lang_ascii", version="=0.10.0", features = ["indexer"] } | ||
infisearch_lang_ascii_stemmer = { path = "../infisearch_languages/infisearch_lang_ascii_stemmer", version="=0.10.0", features = ["indexer"] } | ||
infisearch_lang_chinese = { path = "../infisearch_languages/infisearch_lang_chinese", version="=0.10.0", features = ["indexer"] } | ||
infisearch_common = { path = "../infisearch_common", version="=0.10.1", features = ["indexer"] } | ||
infisearch_lang_ascii = { path = "../infisearch_languages/infisearch_lang_ascii", version="=0.10.1", features = ["indexer"] } | ||
infisearch_lang_ascii_stemmer = { path = "../infisearch_languages/infisearch_lang_ascii_stemmer", version="=0.10.1", features = ["indexer"] } | ||
infisearch_lang_chinese = { path = "../infisearch_languages/infisearch_lang_chinese", version="=0.10.1", features = ["indexer"] } | ||
num_cpus = "1" | ||
path-absolutize = { version = "3.0", features = ["lazy_static_cache"] } | ||
pathdiff = "0.2" | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "infisearch_common" | ||
version = "0.10.0" | ||
version = "0.10.1" | ||
authors = ["Ze Yu <[email protected]>"] | ||
edition = "2018" | ||
description = "Internal library for other InfiSearch packages." | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "infisearch_lang_ascii" | ||
version = "0.10.0" | ||
version = "0.10.1" | ||
authors = ["Ze Yu <[email protected]>"] | ||
edition = "2018" | ||
description = "Basic ascii tokenizer for InfiSearch." | ||
|
@@ -14,6 +14,6 @@ indexer = ["lazy_static", "regex"] | |
|
||
[dependencies] | ||
lazy_static = { version = "1.4", optional = true } | ||
infisearch_common = { path = "../../infisearch_common", version="=0.10.0" } | ||
infisearch_common = { path = "../../infisearch_common", version="=0.10.1" } | ||
regex = { version = "1", optional = true } | ||
smartstring = "0.2.7" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "infisearch_lang_ascii_stemmer" | ||
version = "0.10.0" | ||
version = "0.10.1" | ||
authors = ["Ze Yu <[email protected]>"] | ||
edition = "2018" | ||
description = "Ascii tokenizer with stemmers for InfiSearch." | ||
|
@@ -13,7 +13,7 @@ license = "MIT" | |
indexer = [] | ||
|
||
[dependencies] | ||
infisearch_common = { path = "../../infisearch_common", version="=0.10.0" } | ||
infisearch_lang_ascii = { path = "../infisearch_lang_ascii", version="=0.10.0" } | ||
infisearch_common = { path = "../../infisearch_common", version="=0.10.1" } | ||
infisearch_lang_ascii = { path = "../infisearch_lang_ascii", version="=0.10.1" } | ||
rust-stemmers = "^1.0" | ||
smartstring = "0.2.7" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "infisearch_lang_chinese" | ||
version = "0.10.0" | ||
version = "0.10.1" | ||
authors = ["Ze Yu <[email protected]>"] | ||
edition = "2018" | ||
description = "Chinese tokenizer for InfiSearch." | ||
|
@@ -13,8 +13,8 @@ license = "MIT" | |
indexer = ["regex"] | ||
|
||
[dependencies] | ||
infisearch_common = { path = "../../infisearch_common", version="=0.10.0" } | ||
infisearch_lang_ascii = { path = "../infisearch_lang_ascii", version="=0.10.0" } | ||
infisearch_common = { path = "../../infisearch_common", version="=0.10.1" } | ||
infisearch_lang_ascii = { path = "../infisearch_lang_ascii", version="=0.10.1" } | ||
lazy_static = { version = "1.4" } | ||
regex = { version = "1", optional = true } | ||
smartstring = "0.2.7" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "infisearch_search" | ||
version = "0.10.0" | ||
version = "0.10.1" | ||
authors = ["Ze Yu <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"collaborators": [ | ||
"Ze Yu <[email protected]>" | ||
], | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"files": [ | ||
"index_bg.wasm", | ||
"index.js", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"collaborators": [ | ||
"Ze Yu <[email protected]>" | ||
], | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"files": [ | ||
"index_bg.wasm", | ||
"index.js", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"collaborators": [ | ||
"Ze Yu <[email protected]>" | ||
], | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"files": [ | ||
"index_bg.wasm", | ||
"index.js", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "mdbook-infisearch" | ||
version = "0.10.0" | ||
version = "0.10.1" | ||
authors = ["Ze Yu <[email protected]>"] | ||
edition = "2018" | ||
description = "InfiSearch plugin for Mdbook." | ||
|
@@ -16,7 +16,7 @@ include = ["/src", "mark.min.js", "default_infi_search.json"] | |
anyhow = "1.0" | ||
clap = "2.0" | ||
mdbook = "0.4.21" | ||
infisearch = { path = "../infisearch", version="=0.10.0" } | ||
infisearch = { path = "../infisearch", version="=0.10.1" } | ||
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = "1.0" | ||
toml = "0.5" | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.