Update makefile
This commit is contained in:
parent
736e12d643
commit
f0966984b6
20
Makefile
20
Makefile
|
@ -2,12 +2,20 @@
|
|||
|
||||
help:
|
||||
@echo "Available targets:"
|
||||
@echo " publish Restart Docker Compose."
|
||||
@echo " preview Run 'npx quartz build --serve'."
|
||||
@echo " publish Restart Docker Compose (or run 'npx quartz build --serve' with local=True)."
|
||||
@echo " preview Run 'npx quartz build --serve' with specific directories."
|
||||
|
||||
preview:
|
||||
@npx quartz build --serve
|
||||
# Default directories for the publish target
|
||||
SOURCE_DIR = $(HOME)/Documents/obsidian/gal/Gal
|
||||
DEST_DIR = $(HOME)/Workspace/heygal.space/content
|
||||
|
||||
# Target-specific variables for the publish target
|
||||
publish:
|
||||
@./scripts/publish.sh
|
||||
@docker compose restart
|
||||
@./scripts/publish.sh "$(SOURCE_DIR)" "$(DEST_DIR)"
|
||||
@if [ "$(local)" = "True" ]; then \
|
||||
echo "Running npx quartz build --serve"; \
|
||||
npx quartz build --serve; \
|
||||
else \
|
||||
echo "Restarting Docker Compose"; \
|
||||
docker compose restart; \
|
||||
fi
|
|
@ -1,5 +1,12 @@
|
|||
# Quartz v4
|
||||
|
||||
## Improvements
|
||||
- scripts/publish.sh:
|
||||
- [ ] Skip copying files that already exist
|
||||
- [ ] Resize image to 60% for faster load
|
||||
- add restart/publish to make
|
||||
---
|
||||
|
||||
> “[One] who works with the door open gets all kinds of interruptions, but [they] also occasionally gets clues as to what the world is and what might be important.” — Richard Hamming
|
||||
|
||||
Quartz is a set of tools that helps you publish your [digital garden](https://jzhao.xyz/posts/networked-thought) and notes as a website for free.
|
||||
|
|
Loading…
Reference in New Issue