Skip to main content

presets_js

Function presets_js 

Source
pub fn presets_js() -> String
Expand description

Render every answer combination as a JavaScript asset for the documentation site.

The docs used to carry their own copy of this template in docs/assets/docs.js. Two implementations of the same config format drift silently — and a docs page that emits config the binary would reject is worse than a page with no builder at all. So Rust owns the format and the site consumes what Rust produced; docs_presets_are_current fails CI if this output and the committed asset disagree.