Hi. I wrote the first draft patch of the documentation. it's under the section: Planner Method Configuration (runtime-config-query.html) but this feature's main meat is in src/backend/parser/parse_expr.c so it may be slightly inconsistent, as mentioned by others.
You can further furnish it.
v1-0001-Add-enable_or_transformation-doc-entry.no-cfbot
Description: Binary data