Skip to content

✨ Render the command reference with version badges#177

Merged
bdsoha merged 1 commit into
mainfrom
feature/command-reference-badges
Jul 2, 2026
Merged

✨ Render the command reference with version badges#177
bdsoha merged 1 commit into
mainfrom
feature/command-reference-badges

Conversation

@bdsoha

@bdsoha bdsoha commented Jul 2, 2026

Copy link
Copy Markdown
Member

Generate the ws-cli command reference as a markdown partial directly (like the other generated content), replacing the <CommandSection> component + commands.data.ts data loader.

Each command now renders inline (heading, description, usage, options table) with a version badge in its title:

  • a tip v<since> badge, or
  • once a command is deprecated, a warning deprecated v<version> badge instead.

The since/deprecated data comes from the ws-cli command annotations (kloudkit/ws-cli#21) via the auto-distributed commands.yaml; deprecated supersedes since at the data level, so the generator renders whichever is present. The badge is dormant until a real deprecation lands and distributes.

Removes CommandSection.vue and commands.data.ts.

Generate the ws-cli command reference as a markdown partial directly, instead
of emitting <CommandSection> tags backed by a data loader. Each command renders
its heading, description, usage, and options table inline, with a version badge
in the title — a tip "v<since>" or, once a command is deprecated, a warning
"deprecated v<version>". Drops CommandSection.vue and commands.data.ts.
@bdsoha bdsoha merged commit d486306 into main Jul 2, 2026
4 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