Skip to content

fix(2.11): playFile prepends the language path, fix volume example - #37

Merged
pfeerick merged 1 commit into
edgetx_2.11from
fix-2.11-playfile
Oct 23, 2026
Merged

pfeerick merged 1 commit into
edgetx_2.11from
fix-2.11-playfile

Conversation

@pfeerick

Copy link
Copy Markdown
Member

Summary

Ports @arkarkark's fix from #10 to the MkDocs 2.11 docs (api-reference/audio-sound/playfile.md):

  • The current language's sound directory is prepended to a relative filename, not appended.
  • The playFile("armed.wav", 5) example comment said "use Wav volume 2". It now says 5.

The same fix is in #36 for 2.12, and in EdgeTX/edgetx#7936 for the firmware luadoc the 2.12+ pages are generated from. 2.4–2.10 are left as they are.

mkdocs build passes with no warnings.

Supersedes #10, credited as co-author.

🤖 Generated with Claude Code

A relative filename gets the current language's sound directory put in
front of it, so the language is prepended, not appended. The first
example passes volume 5 but its comment said 2.

Supersedes #10.

Co-Authored-By: Alex K <arkarkark@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs preview: https://pr-37-edgetx-lua-reference-guide.edgetx.workers.dev/2.11/

Built from 2e5196c as the 2.11 version, on top of the currently published site.

@pfeerick
pfeerick merged commit fd39044 into edgetx_2.11 Oct 23, 2026
4 checks passed
@pfeerick
pfeerick deleted the fix-2.11-playfile branch October 23, 2026 09:59
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