Files
docs/Makefile

50 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

## image: Run mkdocs with live-reloading (localhost:3000)
2025-06-02 00:13:27 +08:00
live:
2025-10-07 15:06:54 +08:00
@echo "Wait until container starts and open http://localhost:3000 to see live preview"
@docker run \
--pull always \
--rm \
--interactive \
--tty \
--publish 3000:8000 \
--volume ${PWD}:/docs \
--name iptv-docs-dev \
squidfunk/mkdocs-material:9.6.20
2025-06-02 00:13:27 +08:00
2025-11-22 17:18:34 +08:00
## image: Build local static site
site:
@echo "Wait until mkdocs finish"
@docker run \
--pull always \
--rm \
--interactive \
--tty \
--volume ${PWD}:/docs \
--name iptv-docs-dev \
2025-11-22 17:18:34 +08:00
squidfunk/mkdocs-material:9.6.20 build
## image: Build docker image
image:
@docker build \
--tag iptv-docs:latest \
--tag git.axenov.dev/iptv/iptv-docs:latest \
2025-11-22 17:18:34 +08:00
.
## push: Push docker image to registry
push:
@docker push git.axenov.dev/iptv/iptv-docs:latest
2025-11-22 17:18:34 +08:00
## run: Run docker image (localhost:3001)
2025-11-22 17:18:34 +08:00
run:
@echo "Wait until container starts and open http://localhost:3001 to see ready static website"
@docker run \
--rm \
--publish 3001:80 \
--name iptv-docs \
git.axenov.dev/iptv/iptv-docs:latest
2025-11-22 17:18:34 +08:00
## help: Show this message and exit
help: Makefile
@echo "Available recipes:"
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'