-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ DS_Store | |
graphdata.json | ||
searchdata.json | ||
notes/ | ||
org-roam-ui/ | ||
out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
ROAM_PATH='/Users/aokisusumutarou/zettelkasten' | ||
ROAM_DB_FILE='org-roam.db' | ||
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 | ||
|
||
# # 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/ | ||
if [ -d $ROAM_IMG_PATH ]; then | ||
cp -r $ROAM_IMG_PATH org-roam-ui/public | ||
fi | ||
|
||
pushd org-roam-ui | ||
yarn install | ||
pushd standalone | ||
./build-standalone-server.sh ../.. | ||
mv out ../../ | ||
popd | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters