diff --git a/Makefile b/Makefile index 0ba09c6..82489fa 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,31 @@ # Makefile -# build target should be built even if no files depend on it .PHONY: build -# run locally -site: +# if a file .local exists run site locally +ifeq ($(wildcard .local),) + TARGET = site_remote +else + TARGET = site_local +endif + +site: site_local + echo $(TARGET) + +site_remote: + git pull + makesite + systemctl reload nginx + +site_local: uv run python makesite.py --params params-local.json cd _site && python -m SimpleHTTPServer 2> /dev/null || python3 -m http.server -# docker build image +# docker build build: docker build -t source.madyanne.fr/yax/blog . -# docker publish image +# docker publish publish: docker push source.madyanne.fr/yax/blog diff --git a/README.md b/README.md index 37796d4..c143f1c 100755 --- a/README.md +++ b/README.md @@ -1,9 +1,10 @@ # Blog du Yax This blog is built on top of the great work performed by fspaolo on [Makesite.py](https://github.com/fspaolo/makesite). -I cut some features and wristed the code to focus on blog posts and support my [commenting system](https://gitea.zaclys.com/yannic/stacosys). You should check fspaolo's repository to really understand Makesite.py's philosophy and find technical details. +I cut some features and wristed the code to focus on blog posts and support my [commenting system](https://github.com/kianby/stacosys). You should check fspaolo's repository to really understand Makesite.py's philosophy and find technical details. This static blog generator code is under MIT license. "Blog du Yax" content is under [CC-BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/3.0) +Moved as private repository to gitea.zaclys.net on 2025-03-29.