aboutsummaryrefslogtreecommitdiff
path: root/local.sh
diff options
context:
space:
mode:
Diffstat (limited to 'local.sh')
-rwxr-xr-xlocal.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/local.sh b/local.sh
index c26ff20..dac9829 100755
--- a/local.sh
+++ b/local.sh
@@ -1,9 +1,8 @@
#!/bin/bash
-read -p "Enter the ROAM_PATH: " ROAM_PATH
-read -p "Enter the ROAM_DB_FILE: " ROAM_DB_FILE
-ROAM_DB_PATH=$ROAM_PATH/$ROAM_DB_FILE
-ROAM_IMG_PATH=$ROAM_PATH/img
+ROAM_DB_PATH=~/.emacs.d/org-roam.db
+ROAM_IMG_PATH=~/.emacs.d/img
+ROAM_PATH=~/org/website/mindmap
# If org-roam-ui directory does not exists, clone the org-roam-ui repository.
if [ ! -d "org-roam-ui" ]; then
@@ -20,7 +19,7 @@ popd
# Generate data for org-roam-ui
npm install
npm run generate:graphdata --script_params=$ROAM_DB_PATH
-./create_notes.sh $ROAM_PATH
+bash create_notes.sh $ROAM_PATH
npm run generate:search
npm install fuse.js
node build-index.js
@@ -36,7 +35,7 @@ fi
pushd org-roam-ui
yarn install
pushd standalone
-./build-standalone-server.sh ../..
+bash build-standalone-server.sh ../..
if [ -d "../../out" ]; then
rm -rf ../../out
fi