Skip to content

Commit 2122e17

Browse files
committed
Update generate_graph_objects_docs.py
1 parent 442b863 commit 2122e17

File tree

1 file changed

+29
-5
lines changed

1 file changed

+29
-5
lines changed

scripts/generate_graph_objects_docs.py

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,35 @@ def get_all_classes_and_packages():
1414
classes = {}
1515
packages = {}
1616

17-
# Excluded classes (deprecated lowercase version of Histogram2dContour)
18-
excluded_classes = {"plotly.graph_objects.Histogram2dcontour"}
17+
# Excluded classes - deprecated classes from _deprecations.py (except mapbox ones)
18+
excluded_classes = {
19+
"plotly.graph_objects.Histogram2dcontour", # original exclusion
20+
# Deprecated classes from _deprecations.py (excluding mapbox-related ones)
21+
"plotly.graph_objects.Data",
22+
"plotly.graph_objects.Annotations",
23+
"plotly.graph_objects.Frames",
24+
"plotly.graph_objects.AngularAxis",
25+
"plotly.graph_objects.Annotation",
26+
"plotly.graph_objects.ColorBar",
27+
"plotly.graph_objects.Contours",
28+
"plotly.graph_objects.ErrorX",
29+
"plotly.graph_objects.ErrorY",
30+
"plotly.graph_objects.ErrorZ",
31+
"plotly.graph_objects.Font",
32+
"plotly.graph_objects.Legend",
33+
"plotly.graph_objects.Line",
34+
"plotly.graph_objects.Margin",
35+
"plotly.graph_objects.Marker",
36+
"plotly.graph_objects.RadialAxis",
37+
"plotly.graph_objects.Scene",
38+
"plotly.graph_objects.Stream",
39+
"plotly.graph_objects.XAxis",
40+
"plotly.graph_objects.YAxis",
41+
"plotly.graph_objects.ZAxis",
42+
"plotly.graph_objects.XBins",
43+
"plotly.graph_objects.YBins",
44+
"plotly.graph_objects.Trace",
45+
}
1946

2047
def inspect_module(module, prefix=""):
2148
for name in dir(module):
@@ -155,9 +182,6 @@ def generate_main_index(classes, packages, output_dir):
155182
uncategorized = []
156183

157184
for short_name, full_name in top_level:
158-
is_deprecated, _ = get_deprecation_info(classes[full_name])
159-
if is_deprecated:
160-
continue
161185
found = False
162186
for cat, cat_classes in categories.items():
163187
if short_name in cat_classes:

0 commit comments

Comments
 (0)