Repository navigation
docs(commands): generate command blocks for the navigation through desktop sections - #4843
Conversation
…, discovery, diagnostics, TV, and desktop sections
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
The PR is ready at 0a0b927. CI is green, with 8 checks and none failing, and there are no conflicts. Not verified here: the docs were not regenerated or built at this commit, and the capabilities anchors were not rebuilt; this relies on the guard test design and the green CI. Not blocking: the generated option tables copy registry text that names other commands, for example the tv-remote row for |
Summary
website/docs/docs/commands.mdrestates registry-owned CLI facts by hand in the sections I own, so those lines drift when a schema changes. This adds one generated block per public command documented in## Navigationthrough## Desktop targets, so the registry owns the summary, usage, options, aliases, capabilities links, and the per-command help pointer there.Blocks added for:
boot,shutdown,open,close,device,daemon,back,home,app-switcher,orientation,action-button,shake,hardware-button,fold,telephony,takeover,web,devices,capabilities,doctor,prepare,tv-remote.Sections that are workflow or prerequisite prose with no command of their own get no block:
## Device isolation scopes(flags only),### HarmonyOS command boundary(a support boundary forcapabilities, blocked once under Device discovery),## watchOS simulatorsand## Desktop targets(target guides that reuse commands blocked elsewhere).Removed as exact duplicates of a generated usage line:
agent-device open [app|url] [url],agent-device home,agent-device app-switcher,agent-device action-button,agent-device shake, andagent-device devicesin Device discovery. No other hand-written line changed; every heading and anchor is unchanged.Validation
Docs-only change, so runtime tests do not apply. At 0a0b927:
pnpm install --frozen-lockfile,pnpm build,pnpm generate:command-docs(page current),pnpm check:command-docs(27 pass, no waiver added),pnpm check:doc-prose,pnpm check:doc-linksincluding the website build,test/repo-guards/runner-refusal-reason-docs.test.ts(3 pass),pnpm check:quick,pnpm format. Gross diff 376 lines. CI validates the pushed head.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.