Update makefile

This commit is contained in:
Gal 2023-12-27 22:04:12 +01:00 committed by Galuh Sahid
parent ee6bbaa156
commit 8c4963ba93
2 changed files with 21 additions and 6 deletions

View File

@ -2,12 +2,20 @@
help: help:
@echo "Available targets:" @echo "Available targets:"
@echo " publish Restart Docker Compose." @echo " publish Restart Docker Compose (or run 'npx quartz build --serve' with local=True)."
@echo " preview Run 'npx quartz build --serve'." @echo " preview Run 'npx quartz build --serve' with specific directories."
preview: # Default directories for the publish target
@npx quartz build --serve SOURCE_DIR = $(HOME)/Documents/obsidian/gal/Gal
DEST_DIR = $(HOME)/Workspace/heygal.space/content
# Target-specific variables for the publish target
publish: publish:
@./scripts/publish.sh @./scripts/publish.sh "$(SOURCE_DIR)" "$(DEST_DIR)"
@docker compose restart @if [ "$(local)" = "True" ]; then \
echo "Running npx quartz build --serve"; \
npx quartz build --serve; \
else \
echo "Restarting Docker Compose"; \
docker compose restart; \
fi

View File

@ -1,5 +1,12 @@
# Quartz v4 # 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 > “[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. 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.