https://github.com/jieiku/abridge-tinysearch-dev
dev repo for zola site demo with tinysearch
https://github.com/jieiku/abridge-tinysearch-dev
Last synced: 7 months ago
JSON representation
dev repo for zola site demo with tinysearch
- Host: GitHub
- URL: https://github.com/jieiku/abridge-tinysearch-dev
- Owner: Jieiku
- License: mit
- Created: 2024-07-29T05:40:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-29T18:26:35.000Z (about 1 year ago)
- Last Synced: 2025-01-12T02:47:12.969Z (9 months ago)
- Language: HTML
- Size: 547 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# abridge-tinysearch-dev
This repo was setup to demonstrate the current issue with building and using tinysearch.
This will allow others to quickly and easily reproduce the issue.## Install dependencies and build tinysearch from source:
```bash
sudo apt install build-essential
sudo apt install make gcc cmake binaryen curl git
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
sudo rebootcargo install wasm-pack
git clone https://github.com/tinysearch/tinysearch
cd tinysearch
cargo build --release --features=bin
```## Download Zola site that uses tinysearch:
```bash
cd ..git clone https://github.com/Jieiku/abridge-tinysearch-dev
cd abridge-tinysearch-dev
```## Build tinysearch wasm and copy to static directory:
```bash
~/.dev/tinysearch/target/release/tinysearch -e "path=\"$HOME/.dev/tinysearch\"" --optimize public/data_tinysearch/index.html
rsync -avz wasm_output/* static/
```## Use Zola serve to serve the site locally:
You will need zola installed, or you can download the executable directly from the release page: https://github.com/getzola/zola/releases/tag/v0.19.1
```bash
zola serve
```Here is the resulting error in the firefox developer console:
![]()