-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
17 lines (15 loc) · 904 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
build: # Retrieve the note from obsidian
tail -n +2 Obsidian/Obsidian/combat-sports,\ hobby,\ personal,\ project,\ tips.md >> obsidian-html/index.md # When appending omit the first line of tags
cp -R Obsidian/Obsidian/.obsidian obsidian-html
cd obsidian-html && chmod +x transform.sh && ./transform.sh
cd obsidian-html && python -m obsidianhtml convert -i config.yml
tail -n +4 obsidian-html/output/md/index.md >> index.md
cp Obsidian/Obsidian/Screenshot\ 2024-03-21\ at\ 16.44.14.png . # Also add local images
cp Obsidian/Obsidian/Screen\ Shot\ 2024-06-07\ at\ 22.35.57.png .
cp Obsidian/Obsidian/Screen\ Shot\ 2024-06-07\ at\ 22.37.43.png .
update: # update obsidian to have latest judo note
git submodule update --remote # Git knows what to update thanks to the .gitmodules file
git add .
git commit -m "Automatically update submodule to latest versions"
git push
.PHONY: build update