Compare commits

..

No commits in common. "12e6465264aef2273e84c119a89246b62e8304c3" and "8be31fda122ae4007fc50498bb558bb67c90cd89" have entirely different histories.

2 changed files with 20 additions and 6 deletions

View file

@ -1,18 +1,31 @@
# Makefile # Makefile
# build target should be built even if no files depend on it
.PHONY: build .PHONY: build
# run locally # if a file .local exists run site locally
site: 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 uv run python makesite.py --params params-local.json
cd _site && python -m SimpleHTTPServer 2> /dev/null || python3 -m http.server cd _site && python -m SimpleHTTPServer 2> /dev/null || python3 -m http.server
# docker build image # docker build
build: build:
docker build -t source.madyanne.fr/yax/blog . docker build -t source.madyanne.fr/yax/blog .
# docker publish image # docker publish
publish: publish:
docker push source.madyanne.fr/yax/blog docker push source.madyanne.fr/yax/blog

View file

@ -1,9 +1,10 @@
# Blog du Yax # Blog du Yax
This blog is built on top of the great work performed by fspaolo on [Makesite.py](https://github.com/fspaolo/makesite). 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. 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) "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.