Compare commits

...

2 commits

Author SHA1 Message Date
Yax
12e6465264 Remove deprecated site_remote target 2025-09-28 11:40:03 +02:00
Yax
78ef5cef23 Update README 2025-09-28 11:39:54 +02:00
2 changed files with 6 additions and 20 deletions

View file

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

View file

@ -1,10 +1,9 @@
# 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://github.com/kianby/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://gitea.zaclys.com/yannic/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.