diff --git a/assets/styles.css b/assets/styles.css index c985cb6..e3f64e8 100644 --- a/assets/styles.css +++ b/assets/styles.css @@ -301,6 +301,30 @@ margin-block-start: var(--space-m); } +/* API endpoints list */ +.youtube-api-list { + font-size: var(--step--1); + list-style: none; + margin: 0; + padding: 0; +} + +.youtube-api-list li { + border-block-end: 1px solid var(--color-border); + padding: var(--space-2xs) 0; +} + +.youtube-api-list li:last-child { + border-block-end: none; +} + +.youtube-api-list code { + background: var(--color-offset); + border-radius: var(--radius-s); + font-size: var(--step--2); + padding: var(--space-3xs) var(--space-2xs); +} + /* Public link banner */ .youtube-public-link { align-items: center; diff --git a/locales/de.json b/locales/de.json index bd7f286..198733a 100644 --- a/locales/de.json +++ b/locales/de.json @@ -22,6 +22,14 @@ "description": "Vollständigen Kanal auf YouTube anzeigen", "view": "YouTube-Kanal öffnen" }, + "api": { + "title": "API-Endpunkte", + "videos": "Neueste Videos (JSON)", + "channel": "Kanalinfo (JSON)", + "live": "Live-Status (JSON)", + "likes": "Synchronisierte Likes (JSON)", + "likesDashboard": "Likes-Dashboard" + }, "likes": { "title": "YouTube Likes", "description": "Verbinde dein YouTube-Konto, um deine gelikten Videos als Like-Beiträge auf deinem Blog zu synchronisieren. Nur neue Likes (nach dem Verbinden) erzeugen Beiträge.", diff --git a/locales/en.json b/locales/en.json index 4ee8e89..0e0ecf2 100644 --- a/locales/en.json +++ b/locales/en.json @@ -22,6 +22,14 @@ "description": "View full channel on YouTube", "view": "Open YouTube Channel" }, + "api": { + "title": "API Endpoints", + "videos": "Latest videos (JSON)", + "channel": "Channel info (JSON)", + "live": "Live status (JSON)", + "likes": "Synced likes (JSON)", + "likesDashboard": "Likes dashboard" + }, "likes": { "title": "YouTube Likes", "description": "Connect your YouTube account to sync your liked videos as like posts on your blog. Only new likes (added after connecting) will create posts.", diff --git a/views/youtube.njk b/views/youtube.njk index 84e8346..4fa9217 100644 --- a/views/youtube.njk +++ b/views/youtube.njk @@ -209,4 +209,15 @@ {% endif %} {% endif %} + + {# ── API Endpoints reference ── #} + {% call section({ title: __("youtube.api.title") }) %} +
{{ mountPath }}/api/videos — {{ __("youtube.api.videos") }}{{ mountPath }}/api/channel — {{ __("youtube.api.channel") }}{{ mountPath }}/api/live — {{ __("youtube.api.live") }}{{ mountPath }}/api/likes — {{ __("youtube.api.likes") }}{{ mountPath }}/likes — {{ __("youtube.api.likesDashboard") }}