initial commit

This commit is contained in:
2026-03-04 21:17:36 +01:00
commit 5b5949c059
6 changed files with 446 additions and 0 deletions

23
Makefile Normal file
View File

@@ -0,0 +1,23 @@
ENV = export $(shell cat .env | grep -v '^\#' | grep -v '^$$' | xargs)
.PHONY: fetch write translate upload all
## Letölt egy wiki oldalt SOURCE.md-be
## Használat: make fetch URL=/path/to/page
fetch:
$(ENV) && python3 generator.py fetch $(URL)
## Blogposztot ír SOURCE.md-ből → BLOGPOST.md
write:
$(ENV) && python3 generator.py write
## Lefordítja BLOGPOST.md → TRANSLATED_BLOGPOST.md
translate:
$(ENV) && python3 generator.py translate
## Feltölti TRANSLATED_BLOGPOST.md-t a wikire
upload:
$(ENV) && python3 generator.py upload
## Teljes pipeline: write → translate → upload
all: write translate upload