Skip to content

Commit 42cd380

Browse files
committed
[#38]:svarga:build, adding live update flag to mkdocs invokation
1 parent df7ced1 commit 42cd380

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ venv: $(VENV)/bin/activate
2020

2121
# Start mkdocs dev server (after ensuring venv)
2222
serve: venv
23-
@echo "🚀 Starting mkdocs server at $(BASE_URL)"
24-
@. $(ACTIVATE); mkdocs serve --dev-addr=127.0.0.1:9000
23+
@echo "Starting mkdocs server at $(BASE_URL)"
24+
@. $(ACTIVATE); mkdocs serve --livereload --dev-addr=127.0.0.1:9000
2525

2626
# Build the site once
2727
build: venv
2828
@. $(ACTIVATE); mkdocs build
2929

3030
# Generate social cards (needs Node.js + Puppeteer)
3131
social:
32-
@echo "🖼️ Generating OG social cards..."
32+
@echo "Generating OG social cards..."
3333
cd .og-generator && npm install --no-fund --no-audit
3434
node .og-generator/generate-all-social-cards.mjs $(BLOG_DIR) $(SOCIAL_DIR) $(BASE_URL)
3535

3636
# Force regenerate all social cards
3737
social-force:
38-
@echo "♻️ Forcing full rebuild of OG social cards..."
38+
@echo "Forcing full rebuild of OG social cards..."
3939
cd .og-generator && npm install --no-fund --no-audit
4040
node .og-generator/generate-all-social-cards.mjs $(BLOG_DIR) $(SOCIAL_DIR) $(BASE_URL) --force
4141

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ pip freeze > requirements.txt
3131

3232
```bash
3333
source .venv/bin/activate
34-
reset && mkdocs serve --dev-addr=127.0.0.1:9000
34+
reset && mkdocs serve --livereload --dev-addr=127.0.0.1:9000
3535
python scripts/generate_og_default.py # generate images
3636
mkdocs build -v # generate website locally
3737
```
3838

3939

4040
## Test RSS
4141
```bash
42-
reset && mkdocs serve --dev-addr=127.0.0.1:9000 # start mkdocs
42+
reset && mkdocs serve --livereload --dev-addr=127.0.0.1:9000 # start mkdocs
4343
curl -s http://localhost:9000/rss.xml #
4444
```
4545

0 commit comments

Comments
 (0)