Skip to content

Add MAV_CMD usage filter (mission/command/fence/rally) - #775

Draft
hamishwillee wants to merge 1 commit into
mavlink:masterfrom
hamishwillee:mav-cmd-usage-filter
Draft

hamishwillee wants to merge 1 commit into
mavlink:masterfrom
hamishwillee:mav-cmd-usage-filter

Conversation

@hamishwillee

Copy link
Copy Markdown
Collaborator

Adds a sticky All/Mission/Command/Fence/Rally filter to the generated MAV_CMD sections (.vitepress/theme/components/MavCmdFilter.vue), and regenerates en/messages/*.md to match.

Depends on mavlink/mavlink#2618, which adds the mav-cmd wrapper divs and <MavCmdFilter /> tag to the generator. Not for merge until that lands and re-generates through the normal auto-push job (this PR's en/messages/*.md is a manual copy for review).

Alternative to the static-badges variant: mavlink/mavlink#2617 (no devguide change needed for that one).

🤖 Generated with Claude Code

Regenerate en/messages/*.md from mavlink/mavlink#doc-mav_cmd-usage-filter
(commands wrapped in <div class="mav-cmd" data-mission ...>, sections
open with <MavCmdFilter />) and add the matching theme component.

MavCmdFilter is a sticky All/Mission/Command/Fence/Rally toggle that:
- renders only after mount (no dead control while JS is loading)
- hides matching sections via a single data attribute + CSS
- hides the corresponding entries in the right-hand outline
- resets to All if the current URL hash targets a hidden command

Companion PR: mavlink/mavlink#TBD

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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