Skip to content

Generate the operator reference pages from the operator source code #9031

Description

@xuang7

Feature Summary

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.

Affected Area

No response

Activity

  1. added theissue type on Oct 19, 2026
  2. added a commit that references this issue on Nov 19, 2026
    f1a6bed
  3. added a commit that references this issue on Nov 21, 2026
    c0e7a0a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions