aboutsummaryrefslogtreecommitdiff
path: root/local.sh
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-01-02 17:09:48 -0800
committerPreston Pan <ret2pop@gmail.com>2025-01-02 17:09:48 -0800
commit7d1de4f46e219884402b037d0a24a44d423b3db7 (patch)
tree11f2ed1bd8badbfeb1f1ec7eb3ade3039f5338ee /local.sh
parent23fbb1f5cb84c3c403c259d045dc60d3b116bc4f (diff)
make it possible to build this project with NixOSHEADmain
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