aboutsummaryrefslogtreecommitdiff
path: root/local.sh
diff options
context:
space:
mode:
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