diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-02 17:09:48 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-02 17:09:48 -0800 |
commit | 7d1de4f46e219884402b037d0a24a44d423b3db7 (patch) | |
tree | 11f2ed1bd8badbfeb1f1ec7eb3ade3039f5338ee /local.sh | |
parent | 23fbb1f5cb84c3c403c259d045dc60d3b116bc4f (diff) |
Diffstat (limited to 'local.sh')
-rwxr-xr-x | local.sh | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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 |