Skip to content

Commit

Permalink
modify local script
Browse files Browse the repository at this point in the history
  • Loading branch information
ikoamu committed Jun 14, 2024
1 parent 84ecace commit 1aa632d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions local.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/bin/bash

ROAM_PATH='TEST'
ROAM_DB_FILE='org-roam.db'
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

# # If org-roam-ui directory does not exists, clone the org-roam-ui repository.
# if [ ! -d "org-roam-ui" ]; then
# git clone -b publish-org-roam-ui https://github.com/ikoamu/org-roam-ui
# fi
# If org-roam-ui directory does not exists, clone the org-roam-ui repository.
if [ ! -d "org-roam-ui" ]; then
git clone -b publish-org-roam-ui https://github.com/ikoamu/org-roam-ui
fi

# # Generate data for org-roam-ui
# npm install
# npm run generate:graphdata --script_params=$ROAM_DB_PATH
# ./create_notes.sh $ROAM_PATH
# npm run generate:search
# Generate data for org-roam-ui
npm install
npm run generate:graphdata --script_params=$ROAM_DB_PATH
./create_notes.sh $ROAM_PATH
npm run generate:search

# Copy files to the org-roam-ui directory
cp -f searchdata.json org-roam-ui/components/Search/
Expand Down

0 comments on commit 1aa632d

Please sign in to comment.