Skip to content

docs: add Message of the Day page#24

Merged
Alexgodoroja merged 2 commits into
mainfrom
docs/motd-message-of-the-day
Jun 16, 2026
Merged

docs: add Message of the Day page#24
Alexgodoroja merged 2 commits into
mainfrom
docs/motd-message-of-the-day

Conversation

@Alexgodoroja

Copy link
Copy Markdown
Collaborator

What

Adds a docs page for the message-of-the-day (MOTD) feature — an operator-published banner shown ahead of every pilotctl command for one UTC calendar day at a time.

Companion to the implementation PRs:

  • TeoSlayer/pilotprotocol #253 (daemon + CLI)
  • pilot-protocol/pilot-motd #1 (the feed/DB)

Pages

  • src/pages/docs/motd.astro — full page: what it is, the poll-and-mirror design (daemon fetches the feed; pilotctl reads the local mirror, so there's no per-command network/IPC call), text vs --json output (important_update envelope field), publishing/clearing via the pilot-motd repo, the --motd-feed-url / --motd-interval flags + PILOT_MOTD_URL, and UTC semantics.
  • src/pages/plain/docs/motd.astro — plain-text mirror, matching the existing plain/docs/* style.

Wiring

  • src/data/docsNav.ts — sidebar entry "Message of the Day" under Operations (after Configuration).
  • configuration.astro / integration.astro — prev/next chain spliced to include the new page.
  • Sitemap picks the page up automatically via the existing docs/*.astro glob.

Test

npm run build succeeds locally (301 pages, clean). Verified the built dist/docs/motd.html + dist/plain/docs/motd.html render, the sidebar link appears on other doc pages, and the page is in dist/sitemap.xml.

Document the message-of-the-day (MOTD) feature: an operator-published
banner shown ahead of every pilotctl command for one UTC day at a time.

Covers what it is, the poll-and-mirror design (daemon fetches the feed,
pilotctl reads the local mirror — no per-command network call), text vs
--json output (the important_update envelope field), publishing/clearing
via the pilot-motd repo, the --motd-feed-url / --motd-interval flags, and
UTC semantics.

- src/pages/docs/motd.astro: full docs page
- src/pages/plain/docs/motd.astro: plain-text mirror
- src/data/docsNav.ts: sidebar entry under Operations
- configuration.astro / integration.astro: splice prev/next chain

Built locally with `npm run build` (301 pages, clean).
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

🚀 Preview deployed to Cloudflare Pages

  • Commit deploy URL: https://75fd25b4.pilotprotocol.pages.dev
  • Branch alias: https://docs/motd-message-of-the-day.pilotprotocol.pages.dev (may take ~30s to propagate)
  • Commit: 51b147d9c397500a550bd3ef482467c78a8ab225

Publishing is restricted to maintainers with push access to the feed;
the public docs no longer describe how to post/clear a message. The page
still covers what MOTD is, the poll-and-mirror design, text vs --json
output, daemon configuration, and UTC/self-clearing semantics.
@Alexgodoroja Alexgodoroja merged commit aaaba48 into main Jun 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant