aboutsummaryrefslogtreecommitdiff
path: root/local.sh
diff options
context:
space:
mode:
authorShotaro Aoki <ikoamu@gmail.com>2024-09-16 00:10:50 +0900
committerGitHub <noreply@github.com>2024-09-16 00:10:50 +0900
commitce8a263fa24644083ba7be508b6f6916b5f2b9a5 (patch)
treeeebd6291b1416916cac3c13e76a99646358f4f82 /local.sh
parent3a618f8defb382a76e19c9255bb60262e12421f1 (diff)
parent2c6f5c08beaa73b9d166370a605f9b505f29b480 (diff)
Merge pull request #26 from thargosu/fuse_index
Fuse index
Diffstat (limited to 'local.sh')
-rwxr-xr-xlocal.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/local.sh b/local.sh
index 0d1cda4..d1be019 100755
--- a/local.sh
+++ b/local.sh
@@ -15,9 +15,13 @@ npm install
npm run generate:graphdata --script_params=$ROAM_DB_PATH
./create_notes.sh $ROAM_PATH
npm run generate:search
+npm install fuse.js
+node build-index.js
# Copy files to the org-roam-ui directory
cp -f searchdata.json org-roam-ui/components/Search/
+cp -f fuse-index.json org-roam-ui/components/Search/
+
if [ -d $ROAM_IMG_PATH ]; then
cp -r $ROAM_IMG_PATH org-roam-ui/public
fi
@@ -31,4 +35,4 @@ if [ -d "../../out" ]; then
fi
mv out ../../
popd
-popd \ No newline at end of file
+popd