@@ -32,60 +32,3 @@ def reorder_keys(parent, target, order):
32
32
reorder_keys (trace , "attributes" , orders ["trace_attr_order" ])
33
33
34
34
json .dump (schema , open ('plotschema.json' , 'w' ), indent = 2 )
35
-
36
-
37
- for upperlang in ["Python" , "JavaScript" , "MATLAB" , "R" ]:
38
- lang = upperlang .lower ()
39
- for attr in [
40
- "xaxis" , "yaxis" , "coloraxis" , "scene" , "polar" , "ternary" , "geo" , "mapbox" ,
41
- "sliders" , "updatemenus" , "annotations" , "shapes" , "images" , "global"
42
- ]:
43
- fullattr = "layout" + ("." + attr if attr != "global" else "" )
44
- with open (f"../_posts/reference_pages/{ lang } /2020-07-20-{ attr } .html" , 'w' ) as f :
45
- f .write (
46
- f"""---
47
- permalink: /{ lang } /reference/{ fullattr .replace ("." , "/" )} /
48
- layout: langindex
49
- page_type: reference
50
- language: { lang }
51
- name: { fullattr }
52
- description: Figure attribute reference for Plotly's { upperlang } open-source graphing library.
53
- ---
54
-
55
- <h2>{ upperlang } Figure Reference: <code>{ fullattr } </code></h2>
56
- <br />
57
- <div class="row">
58
- <div class="eight columns">
59
-
60
- {{% assign attribute=site.data.plotschema.layout.layoutAttributes %}}
61
- {{% include posts/reference-block.html parentlink="layout" block="layout" parentpath="layout" mustmatch="{ attr } " %}}
62
-
63
- </div>
64
- </div>
65
- """
66
- )
67
-
68
-
69
- for trace in schema ["traces" ]:
70
- with open (f"../_posts/reference_pages/{ lang } /2020-07-20-{ trace } .html" , 'w' ) as f :
71
- f .write (
72
- f"""---
73
- permalink: /{ lang } /reference/{ trace } /
74
- layout: langindex
75
- page_type: reference
76
- language: { lang }
77
- name: { trace } Traces
78
- description: Figure attribute reference for Plotly's { upperlang } open-source graphing library.
79
- ---
80
-
81
- <h2>{ upperlang } Figure Reference: <code>{ trace } </code> Traces</h2>
82
- <br /><br />
83
- <div class="row">
84
- <div class="eight columns">
85
-
86
- {{% include posts/reference-trace.html trace_name="{ trace } " trace_data=site.data.plotschema.traces.{ trace } %}}
87
-
88
- </div>
89
- </div>
90
- """
91
- )
0 commit comments