docs: plugin dev/test process guide (#21)#24
Merged
Conversation
- docs/plugin-dev-guide.md + .fr.md: creation, Busted tests, DCS visual loop, CI - mkdocs.yml: guide added under 'For authors' nav section - template_spec.lua: pointer to the guide for new plugin authors Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Reviewer's GuideAdds a new bilingual plugin development and testing guide to the docs, wires it into site navigation and the plugin template tests, and documents the standard dev/test loop and repo layout for CTLD plugins. Sequence diagram for the CTLD plugin dev/test loopsequenceDiagram
actor Developer
participant CTLD_repo as CTLD_repo
participant CTLD_plugins_repo as CTLD_plugins_repo
participant dcs_bridge as dcs_bridge
participant DCS as DCS
Developer->>DCS: Load mission Test_CTLD-plugins.miz
Developer->>DCS: Take pilot slot uh1-1
Developer->>dcs_bridge: Inject CTLD.lua from CTLD_repo
dcs_bridge->>DCS: Execute CTLD.lua
Developer->>dcs_bridge: Inject CTLD_{name}.lua from CTLD_plugins_repo
dcs_bridge->>DCS: Execute CTLD_{name}.lua
loop Play scene (repeatable)
Developer->>dcs_bridge: Inject inject_scene.lua
dcs_bridge->>DCS: playSceneAtPos via inject_scene.lua
DCS-->>Developer: Visual observation of scene
end
alt Problem detected
Developer->>dcs_bridge: Inject cleanup.lua
dcs_bridge->>DCS: Execute cleanup.lua (destroy all but uh1)
Developer->>CTLD_plugins_repo: Fix plugin Lua scene
Developer->>dcs_bridge: Re-inject CTLD_{name}.lua
end
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- In
plugins/_template/tests/template_spec.lua, consider pointing directly to the specific rendered guide path (e.g.,/plugin-dev-guide/) rather than the docs root URL so new authors land on the exact page intended. - The English guide says the plugin README is "FR prose + YAML front-matter" while the French version calls it the source of truth for docs; to avoid confusion for authors, align this wording so it clearly reflects the expected language and structure of README files regardless of locale.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- In `plugins/_template/tests/template_spec.lua`, consider pointing directly to the specific rendered guide path (e.g., `/plugin-dev-guide/`) rather than the docs root URL so new authors land on the exact page intended.
- The English guide says the plugin README is "FR prose + YAML front-matter" while the French version calls it the source of truth for docs; to avoid confusion for authors, align this wording so it clearly reflects the expected language and structure of README files regardless of locale.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #21
Test plan
Generated with Claude Code
Summary by Sourcery
Add a comprehensive plugin development and testing guide to the documentation and surface it in navigation and template tests.
Enhancements:
Build:
Documentation: