Compare commits
2 commits
8be31fda12
...
12e6465264
| Author | SHA1 | Date | |
|---|---|---|---|
| 12e6465264 | |||
| 78ef5cef23 |
2 changed files with 6 additions and 20 deletions
23
Makefile
23
Makefile
|
|
@ -1,31 +1,18 @@
|
||||||
# Makefile
|
# Makefile
|
||||||
|
|
||||||
|
# build target should be built even if no files depend on it
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
|
|
||||||
# if a file .local exists run site locally
|
# run locally
|
||||||
ifeq ($(wildcard .local),)
|
site:
|
||||||
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
|
# docker build image
|
||||||
build:
|
build:
|
||||||
docker build -t source.madyanne.fr/yax/blog .
|
docker build -t source.madyanne.fr/yax/blog .
|
||||||
|
|
||||||
# docker publish
|
# docker publish image
|
||||||
publish:
|
publish:
|
||||||
docker push source.madyanne.fr/yax/blog
|
docker push source.madyanne.fr/yax/blog
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,9 @@
|
||||||
# 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://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.
|
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.
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue