Skip to content

Commit

Permalink
remove @publicapi from GroupedData class to omit its constructor from
Browse files Browse the repository at this point in the history
documentation

Signed-off-by: can <[email protected]>
  • Loading branch information
can-anyscale committed Aug 6, 2024
1 parent 3ec34e9 commit 86c850a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/source/_templates/autosummary/class_v2.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{ name }}
{{ '-' * name | length }}

.. currentmodule:: {{ module }}

{% if name | has_public_constructor(module) %}
{{ name }}
{{ '-' * name | length }}

.. autoclass:: {{ objname }}
{% endif %}

Expand Down
1 change: 1 addition & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ def _is_api_group(obj, group):
FILTERS["filter_out_undoc_class_members"] = filter_out_undoc_class_members
FILTERS["get_api_groups"] = get_api_groups
FILTERS["select_api_group"] = select_api_group
FILTERS["has_public_constructor"] = has_public_constructor


def add_custom_assets(
Expand Down

0 comments on commit 86c850a

Please sign in to comment.