docs: update documentation to OKF v0.1 format
This commit is contained in:
@@ -29,9 +29,12 @@ scheduled tick.
|
||||
Before scanning, the process ensures the configured blog repository exists
|
||||
under `/app/data/blog` and is fast-forwarded from `BLOG_REPO_URL`. It then
|
||||
walks `_posts/blog/**/*.md`, finds posts whose date is exactly ten years
|
||||
before today, skips IDs already present in `posted.json`, and records new
|
||||
relative paths. The current implementation records matching IDs only;
|
||||
Mastodon publication is not yet wired.
|
||||
before today, skips IDs already present in `posted.json`, composes a
|
||||
single German-language Mastodon status (default prefix
|
||||
`Heute vor 10 Jahren:`) listing each new match's title and canonical URL
|
||||
followed by the configured hashtags, and — only after the Mastodon API
|
||||
call succeeds — records the relative paths of the published posts in
|
||||
`posted.json`.
|
||||
|
||||
# What You Should See
|
||||
|
||||
@@ -42,7 +45,7 @@ The bot uses a **JSON-per-line** logger that writes to
|
||||
should show output similar to:
|
||||
|
||||
```json
|
||||
{"ts": "2026-08-04T09:00:00+00:00", "level": "INFO", "logger": "tenbackward", "message": "startup", "event": "startup", "version": "0.1.0", "site_url": "https://blog.example.com", "run_at": "09:00", "tz": "Europe/Berlin", "hashtags": "#throwback,#10backward", "throwback_prefix": "Throwback:"}
|
||||
{"ts": "2026-08-04T09:00:00+00:00", "level": "INFO", "logger": "tenbackward", "message": "startup", "event": "startup", "version": "0.1.0", "site_url": "https://blog.example.com", "run_at": "09:00", "tz": "Europe/Berlin", "hashtags": "#throwback,#10backward", "throwback_prefix": "Heute vor 10 Jahren:"}
|
||||
```
|
||||
|
||||
On the current scaffold (`_iter_candidates` is intentionally empty),
|
||||
|
||||
Reference in New Issue
Block a user