Files
PX4-Autopilot/docs/.prettierignore
Hamish Willee e6d55568ae perf(docs): skip rendering off-screen parameters in parameter reference (#28814)
parameter_reference.md renders ~3100 parameters as ~111k elements, so
the browser spends seconds on style recalculation and layout before the
page responds (about 1.2 s of long tasks on a fast desktop and 6.8 s at
4x CPU throttling), and sidebar navigation to it takes 0.8-3.7 s.

Wrap each parameter group and each parameter in a div, and give them
content-visibility: auto so the browser skips off-screen content. The
per-parameter level keeps deep links into large groups such as Actuator
Outputs (701 parameters) fast. Group headings stay outside the wrappers
so the page outline still tracks them.

Exclude the generated page from Prettier: with the wrappers it needs
over 4 GB of heap, which would break the docs metadata auto-sync.

Assisted-by: Claude:claude-opus-5-5

Signed-off-by: Hamish Willee <hamishwillee@gmail.com>
2026-09-23 17:45:47 +10:00

4 lines
199 B
Plaintext

# Generated by src/lib/parameters/px4params/markdownout.py, whose output is
# already consistently formatted. Prettier needs over 4 GB of heap to format it.
en/advanced_config/parameter_reference.md