This commit is contained in:
2026-03-06 18:45:01 +01:00
parent 7f402cd69b
commit f4f109f75d
2 changed files with 13 additions and 13 deletions

View File

@@ -2,26 +2,26 @@ ENV = export $(shell cat .env | grep -v '^\#' | grep -v '^$$' | xargs)
.PHONY: fetch write translate upload clean all
## Letölt egy wiki oldalt SOURCE.md-be
## Használat: make fetch URL=/path/to/page
## Downloads a wiki page into SOURCE.md
## Usage: make fetch URL=/path/to/page
fetch:
$(ENV) && python3 generator.py fetch $(URL)
@$(ENV) && python3 generator.py fetch $(URL)
## Blogposztot ír SOURCE.md-ből → BLOGPOST.md
## Writes a blog post from SOURCE.md → BLOGPOST.md
write:
$(ENV) && python3 generator.py write
@$(ENV) && python3 generator.py write
## Lefordítja BLOGPOST.md → TRANSLATED_BLOGPOST.md
## Translates BLOGPOST.md → TRANSLATED_BLOGPOST.md
translate:
$(ENV) && python3 generator.py translate
@$(ENV) && python3 generator.py translate
## Feltölti TRANSLATED_BLOGPOST.md-t a wikire
## Uploads TRANSLATED_BLOGPOST.md to the wiki
upload:
$(ENV) && python3 generator.py upload
@$(ENV) && python3 generator.py upload
## Törli az output mappából az .md fájlokat
## Deletes .md files from the output directory
clean:
$(ENV) && python3 generator.py clean
@$(ENV) && python3 generator.py clean
## Teljes pipeline: write → translate → upload
## Full pipeline: write → translate → upload
all: write translate upload

View File

@@ -324,7 +324,7 @@ class BlogWriter:
print(f"→ Cleaning {OUTPUT_DIR}/...")
count = 0
for filename in os.listdir(OUTPUT_DIR):
if filename.endswith(".md"):
if filename.endswith(".md") or filename.endswith(".txt"):
os.remove(os.path.join(OUTPUT_DIR, filename))
count += 1
print(f"✓ Removed {count} Markdown files.")