You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generate the operator reference pages from the operator source code #9031
We have over 150 operators. To improve their accessibility we need an organized reference for them: a page for each operator that lists its properties. Maintaining this by hand is error-prone and the pages fall out of date, so the reference should be generated from the operator source code.
The current pages under docs/reference/operators/ were produced by an earlier version of this generator in April and have been maintained by hand since. This proposal lands the generator itself so the pages can be regenerated at any time.
Proposed Solution or Design
Add a generator under docs/ that maps each operator class to its reference page: it reads the annotations on the class and builds the whole docs/reference/operators/ tree from them. As discussed in #4380, the generator lives in this repository in the same sbt build as the operator classes, so it stays self-contained and in sync with the code it reflects over; the website repository remains only a publishing target.
For each operator it reads the title, description, requirement and default of every property, the property type (enum options, accepted column types, nested config classes), which properties are shown only when a switch is on, the UDF code template, the output port modes, and the sklearn hyperparameter enums.
It writes one page per operator in its group directory, an index per group, the root index, and the parameter pages. The groups come from OperatorGroupConstants, so a new operator or group shows up on the next run. Everything under the directory is regenerated except the hand-written output-modes.md, so a renamed or removed operator leaves no stale page. The generator is its own sbt module, excluded from the docs-to-website sync, with tests in CI.
As a follow-up, the generator can run automatically, for example as part of each release, to keep the published reference up to date.
Activity
feat(operator-reference): add a generator for the operator reference …
feat(operator-reference): add a generator for the operator reference …