Contributing¶
This site lives at github.com/FrSkyRC/ethos-lua-doc. Corrections, examples and new guides are welcome.
How the site is built¶
flowchart LR
Z[lua-doc.zip<br/>FrSky release asset] -->|parse_lua_doc.py| J[data/api.json]
E[FrSky lua/examples] -->|sync_examples.py| X[docs/examples/official]
R[Public Ethos Lua repos] -->|scan_usage.py| U[data/usage.json]
O[overlays/api/*.md<br/>hand-written] --> G
J --> G[gen_api_pages.py]
U --> G
X --> G
G --> A[docs/api/**]
H[Hand-written guides] --> M[mkdocs build]
A --> M
M --> S[GitHub Pages]
- Generated (don't edit):
docs/api/,docs/examples/official/,data/api.json,data/usage.json. - Hand-written: everything else under
docs/, the cookbook scripts inexamples/cookbook/, and the API example overlays inoverlays/api/.
Ways to help¶
| You want to | Do this |
|---|---|
| Fix a typo in a guide | Use the ✏️ edit button on the page |
| Add an example to an API page | Use the ✏️ edit button on that API page. It opens (or creates) the right overlay file. See Writing examples |
| Report wrong API information | If FrSky's lua-doc is wrong, report it on ETHOS-Feedback-Community. Meanwhile, add a note in an overlay |
| Add your project to Real-world usage | See Real-world usage |
| Refresh the API docs | See Updating the API docs |
Local preview¶
git clone https://github.com/FrSkyRC/ethos-lua-doc
cd ethos-lua-doc
python -m venv .venv
.venv/bin/pip install -r requirements.txt # Windows: .venv\Scripts\pip
.venv/bin/mkdocs serve # http://127.0.0.1:8000
Maintainers and AI agents: AGENTS.md in the repo root has the full workflow and rules.