docs(site): overhaul the docs against current code #1438

Merged
enricobuehler merged 17 commits from docs/overhaul into main 2026-09-24 10:52:11 +00:00
Owner

The docs had drifted from the code, the sidebar was one flat list of about 70 entries, and there were no developer docs.

Structure

  • Three sidebar tabs (Fumadocs root folders): Guide, Reference, Developers. The Guide's top level is 9 entries: Introduction, Quick Start and 7 collapsible groups.
  • The groups are (group) folders, which add no URL segment, so every /docs/<slug> link from the setup wizard, the console, the clients and the website still resolves. Only build-from-source, multi-seat-contract (both now under /docs/developers/) and the status stub moved; their old slugs 301.
  • The landing page links each tab.

Content

  • Every page was checked against the code at f99e61fe8 and rewritten. User docs went from 12,655 to 7,484 lines. Examples of the drift fixed:
    • the console page is Devices, not "Pairing";
    • Windows has no software encoder (Media Foundation is the fallback);
    • Android's clipboard defaults off;
    • the gamescope takeover no longer stops the display manager;
    • C ABI 37 and driver protocol 9;
    • --gamestream defaults off.
  • The troubleshooting hub is a one-line-per-symptom index instead of a second copy of every fix.
  • New Developers tab: architecture, build, testing, contributing, releasing, management API, writing plugins, embedding the C ABI, multi-seat contract. README and CONTRIBUTING link it; CONTRIBUTING keeps the licensing terms verbatim. The unlinked docs/embedding-the-c-abi.md is replaced by the embedding page.
  • docs/writing.md §4c: house rules for docs pages.

CI

  • check-docs-links.sh now also fails a /docs/<slug>#<anchor> link, from docs or code, whose heading is gone (scripts/ci/check-docs-anchors.py). On main it found two already-dead anchors, including the host's Cinnamon warning.
  • 16 PUNKTFUNK_* names are now documented, so the drift baseline drops them.

Small code-side fixes

  • punktfunk-setup --help states the real --gamestream default.
  • The plugin-kit Lutris example exports plugin.def.
  • READMEs: no Windows software encoder; the host compiles on macOS.

Verified

bun run build and bun run lint in docs-site; all 71 pages serve 200 with no raw JSX; the old slugs redirect; check-docs-links.sh (incl. anchors), check-docs-drift.sh, check-writing.sh; cargo test -p pf-host-config docs_table_is_current; cargo test -p punktfunk-setup; cargo fmt --check.

Found, not fixed here

  • The Apple console is created as Platform::Android (clients/apple/native/src/console.rs:175), so Apple users see Android-only rows.
  • tvOS Copy link reports success but copies nothing.
  • A Windows-service prep do step may hold the launch for the full 30 s (hooks.rs:735).
  • The host still warns that a missing punktfunk group means a black screen (gamescope.rs:2150, diagnostics catalog). The takeover no longer needs it.
  • The Omarchy script and the diagnostics recommend Hyprland's plugin permission; the host needs screencopy.

Follow-ups

  • The console screenshots in /img may predate the Devices page.
  • Five Guide pages are still over 200 lines (input, automation, plugins, virtual-displays, uninstall).
  • The website repo's deep links aren't CI-checked.
The docs had drifted from the code, the sidebar was one flat list of about 70 entries, and there were no developer docs. ## Structure - Three sidebar tabs (Fumadocs root folders): **Guide**, **Reference**, **Developers**. The Guide's top level is 9 entries: Introduction, Quick Start and 7 collapsible groups. - The groups are `(group)` folders, which add no URL segment, so every `/docs/<slug>` link from the setup wizard, the console, the clients and the website still resolves. Only `build-from-source`, `multi-seat-contract` (both now under `/docs/developers/`) and the `status` stub moved; their old slugs 301. - The landing page links each tab. ## Content - Every page was checked against the code at `f99e61fe8` and rewritten. User docs went from 12,655 to 7,484 lines. Examples of the drift fixed: - the console page is **Devices**, not "Pairing"; - Windows has no software encoder (Media Foundation is the fallback); - Android's clipboard defaults off; - the gamescope takeover no longer stops the display manager; - C ABI 37 and driver protocol 9; - `--gamestream` defaults off. - The troubleshooting hub is a one-line-per-symptom index instead of a second copy of every fix. - New Developers tab: architecture, build, testing, contributing, releasing, management API, writing plugins, embedding the C ABI, multi-seat contract. README and CONTRIBUTING link it; CONTRIBUTING keeps the licensing terms verbatim. The unlinked `docs/embedding-the-c-abi.md` is replaced by the embedding page. - `docs/writing.md` §4c: house rules for docs pages. ## CI - `check-docs-links.sh` now also fails a `/docs/<slug>#<anchor>` link, from docs or code, whose heading is gone (`scripts/ci/check-docs-anchors.py`). On main it found two already-dead anchors, including the host's Cinnamon warning. - 16 `PUNKTFUNK_*` names are now documented, so the drift baseline drops them. ## Small code-side fixes - `punktfunk-setup --help` states the real `--gamestream` default. - The plugin-kit Lutris example exports `plugin.def`. - READMEs: no Windows software encoder; the host compiles on macOS. ## Verified `bun run build` and `bun run lint` in docs-site; all 71 pages serve 200 with no raw JSX; the old slugs redirect; `check-docs-links.sh` (incl. anchors), `check-docs-drift.sh`, `check-writing.sh`; `cargo test -p pf-host-config docs_table_is_current`; `cargo test -p punktfunk-setup`; `cargo fmt --check`. ## Found, not fixed here - The Apple console is created as `Platform::Android` (`clients/apple/native/src/console.rs:175`), so Apple users see Android-only rows. - tvOS **Copy link** reports success but copies nothing. - A Windows-service prep `do` step may hold the launch for the full 30 s (`hooks.rs:735`). - The host still warns that a missing `punktfunk` group means a black screen (`gamescope.rs:2150`, diagnostics catalog). The takeover no longer needs it. - The Omarchy script and the diagnostics recommend Hyprland's `plugin` permission; the host needs `screencopy`. ## Follow-ups - The console screenshots in `/img` may predate the Devices page. - Five Guide pages are still over 200 lines (input, automation, plugins, virtual-displays, uninstall). - The website repo's deep links aren't CI-checked.
enricobuehler added 17 commits 2026-09-24 10:26:52 +00:00
The flat sidebar listed seventy entries. Root folders now split it into
Guide, Reference and Developers tabs, and folder groups collapse the
Guide into install, clients, streaming, host, service, desktops and
troubleshooting.

A group folder adds no URL segment, so every /docs/<slug> link from the
console, the setup wizard, the clients and the website still resolves.
build-from-source and multi-seat-contract move under /docs/developers/
and the status stub is gone; their old slugs redirect.
The host log, the console and the setup wizard deep-link docs headings.
A reworded heading broke them with no signal: the host's Cinnamon
warning pointed at a Debian heading that no longer existed.

check-docs-links.sh now also checks every /docs/<slug>#<anchor> in the
docs and in code against the page's headings, slugged the way Fumadocs
slugs them. The two dead anchors it found are fixed.
Three tabs, three readers, one voice: what each page opens with, what
it leaves out, and where a fact lives.
The landing, quickstart, requirements and every host install page now
read as short, parallel step lists, checked against the setup crate,
the packaging and the console.

Among the fixes: the console page is Devices, not Pairing;
--gamestream defaults to off; Bazzite's ujust recipe needs its action;
KDE hosts below 6.5.6 stream at up to 60 Hz rather than not at all; the
Windows installer is the punktfunk-setup engine and has no software
encoder fallback. SteamOS uninstall steps live on the uninstall page.
install-client owns installing, updating and removing each app; clients
owns which app to pick and what it does. client-settings is one table
per section, read from each app's own settings screen.

Among the fixes: Android canary is Play open testing; `--pin` is
refused; the console's settings tabs and dozens of missing settings;
Devices and Unpair in the pairing flow; GameStream is a console
setting; the punktfunk:// grammar matches deeplink.rs.
Input, controller audio, clipboard, HDR, PyroWave, the game library and
the stats overlay, checked against the clients, the host and hud.rs.

Among the fixes: Android's clipboard defaults off and needs the
Clipboard grant; Linux HDR with 4:4:4 drops to 4:2:0; attached
gamescope streams SDR; the Linux pad sink is a real-pad split; the
Apple TV Back press opens the dial.
The console, virtual displays, access levels, remote friends,
Wake-on-LAN, power, plugins and automation, named the way the
redesigned console names them.

Among the fixes: Automatic topology turns monitors off everywhere;
sway keeps screens after a disconnect; couch co-op needs Shares the
screen; the WoL MAC comes from discovery; plugins add restarts the
runner; four access events were missing. Plugin authoring moves to the
developer guide.
Among the fixes: layered rpm-ostree boxes update through
update-punktfunk.sh; Omarchy needs punktfunk-omarchy remove before
pacman; Windows cleanup removes the audio devices; the runner is off by
default on Arch and SteamOS. uninstall.md is the one home for the
SteamOS removal steps. Cutting a release moves to the developer guide.
KDE, GNOME, gamescope, Hyprland and sway share one shape now.

Among the fixes: the gamescope takeover idles the autologin session
instead of stopping the display manager, so the linger and polkit steps
are gone; Hyprland's permission grant is screencopy (virtual-pointer is
not a permission type); KDE and GNOME need nothing in host.env.
The hub repeated every entry's cause and fix, and each sub-page
repeated it again. It is now one line per symptom, linking the entry
that owns the fix; only the three entries shipped code links keep
their text on the hub.

Entries whose symptom can't happen on a current host are gone. Among
the fixes: the Windows audio log line, the capture-stall stage names,
the console's lockout message, and where Apple sends its log from.
The support matrix, configuration, security, how-it-works and roadmap
keep their tables and lose most of their prose.

Among the fixes: C ABI 37 and driver protocol 9 in Mixing versions;
Windows encodes in the driver with Media Foundation as the fallback;
14 first-party plugins; the Windows installer is publicly signed;
shipped items leave the roadmap. Sixteen PUNKTFUNK_* names are now
documented, so the drift baseline drops them.
Contributor knowledge lived in README, CONTRIBUTING, crate READMEs and
an unlinked 854-line C ABI doc. The Developers tab now holds it:
architecture, building every component, testing, contributing,
releasing, the management API, writing plugins, embedding the C ABI
and the multi-seat contract.

README and CONTRIBUTING keep the overview and the licensing terms and
link here. The SDK and plugin-kit READMEs keep install and one snippet.
The landing page offered one button into the Guide. Quick Start,
Troubleshooting, Reference and Developers now sit under it, so a
developer doesn't have to find the sidebar's tab switcher.
The help said the default depends on the box. The installer defaults
GameStream off everywhere, next to Sunshine too. The build-from-source
links now point at its new home under /docs/developers.
The runner discovers a plugin through `export default plugin.def`. The
example exported the whole defineLibraryPlugin result, which the runner
can't load, so anyone copying it got a plugin that never ran.
Windows has no software encoder: Media Foundation is the fallback,
within 8-bit 4:2:0. The host compiles on macOS; CI checks it. The route
classification test and the multi-seat contract moved; the pointers to
them follow.
ci(docs): keep the anchor check from matching its own comment
apple / gate (pull_request) Successful in 10s
android / gate (pull_request) Successful in 12s
apple / swift (pull_request) Skipped
android / android (pull_request) Skipped
apple / distribute (pull_request) Skipped
apple / screenshots (pull_request) Skipped
ci / changes (pull_request) Successful in 11s
ci / bun-nix (pull_request) Successful in 18s
setup-windows / gate (pull_request) Successful in 11s
setup-windows / test (pull_request) Skipped
secret-scan / gitleaks (pull_request) Successful in 18s
windows-client / gate (pull_request) Successful in 12s
windows-client / client (arm64, --no-default-features, aarch64-pc-windows-msvc, C:\t-a64) (pull_request) Skipped
windows-client / client (x64, , x86_64-pc-windows-msvc, C:\t) (pull_request) Skipped
macos-host / check (pull_request) Successful in 29s
ci / docs-drift (pull_request) Successful in 35s
ci / web (pull_request) Successful in 49s
ci / docs-site (pull_request) Successful in 52s
ci / decky-typecheck (pull_request) Successful in 11s
ci / sdk-plugin-kit (pull_request) Successful in 57s
ci / rust-arm64 (pull_request) Successful in 2m1s
setup-binary / build (x86_64) (pull_request) Successful in 4m14s
setup-binary / build (aarch64) (pull_request) Successful in 5m10s
setup-binary / probe the published channel (pull_request) Skipped
setup-binary / publish to the generic registry (pull_request) Skipped
ci / rust (pull_request) Successful in 6m30s
windows-host / pr-lint (pull_request) Successful in 7m24s
windows-host / package (arm64, a7a16b876a305fd1029c66dbd27007b4f6112ae896532f675878731a21e50cfd, bun-windows-aarch64.zip, , --no-default-features --features gamestream, _arm64, aarch64-pc-windows-msvc, C:\t-a64) (pull_request) Skipped
windows-host / package (x64, 78c221c2376f79731ccf4e4af0b3bb46d81fefa3296c5abee09ad8a1b21e68c6, bun-windows-x64-baseline.zip, --features nvenc,qsv, --features nvenc,qsv, , x86_64-pc-windows-msvc, C:\t) (pull_request) Skipped
windows-host / canary-manifest (pull_request) Skipped
windows-host / winget-source (pull_request) Skipped
installer-smoke / omarchy integration self-check (pull_request) Successful in 7s
installer-smoke / build punktfunk-setup (musl) (pull_request) Successful in 4m13s
installer-smoke / omarchy (armed update guard) (pull_request) Successful in 45s
installer-smoke / smoke (arch) (pull_request) Successful in 1m0s
installer-smoke / smoke (debian-13) (pull_request) Successful in 1m9s
installer-smoke / smoke (fedora-44) (pull_request) Successful in 1m30s
049b648bf4
enricobuehler merged commit 008035bbed into main 2026-09-24 10:52:11 +00:00
enricobuehler deleted branch docs/overhaul 2026-09-24 10:52:12 +00:00
Sign in to join this conversation.