@@ -45,134 +45,119 @@ extracting docs for src/DocExtractionRes.res
45
45
"id": "SomeInnerModule.DocExtractionRes",
46
46
"name": "SomeInnerModule",
47
47
"kind": "module",
48
- "items":
48
+ "items": [
49
49
{
50
- "name": "SomeInnerModule",
51
- "docstrings": ["Another module level docstring here."],
52
- "items": [
50
+ "id": "DocExtractionRes.SomeInnerModule.status",
51
+ "kind": "type",
52
+ "name": "status",
53
+ "signature": "type status = Started(t) | Stopped | Idle",
54
+ "docstrings": [],
55
+ "detail":
53
56
{
54
- "id": "DocExtractionRes.SomeInnerModule.status",
55
- "kind": "type",
56
- "name": "status",
57
- "signature": "type status = Started(t) | Stopped | Idle",
58
- "docstrings": [],
59
- "detail":
57
+ "kind": "variant",
58
+ "constructorDocs": [
60
59
{
61
- "kind": "variant",
62
- "constructorDocs": [
63
- {
64
- "constructorName": "Started",
65
- "docstrings": ["If this is started or not"],
66
- "signature": "Started(t)"
67
- },
68
- {
69
- "constructorName": "Stopped",
70
- "docstrings": ["Stopped?"],
71
- "signature": "Stopped"
72
- },
73
- {
74
- "constructorName": "Idle",
75
- "docstrings": ["Now idle."],
76
- "signature": "Idle"
77
- }]
78
- }
79
- },
80
- {
81
- "id": "DocExtractionRes.SomeInnerModule.validInputs",
82
- "kind": "type",
83
- "name": "validInputs",
84
- "signature": "type validInputs = [\\n | #\\\"needs-escaping\\\"\\n | #something\\n | #status(status)\\n | #withPayload(int)\\n]",
85
- "docstrings": ["These are all the valid inputs."]
86
- },
87
- {
88
- "id": "DocExtractionRes.SomeInnerModule.callback",
89
- "kind": "type",
90
- "name": "callback",
91
- "signature": "type callback = (t, ~status: status) => unit",
92
- "docstrings": []
93
- }]
94
- }
60
+ "constructorName": "Started",
61
+ "docstrings": ["If this is started or not"],
62
+ "signature": "Started(t)"
63
+ },
64
+ {
65
+ "constructorName": "Stopped",
66
+ "docstrings": ["Stopped?"],
67
+ "signature": "Stopped"
68
+ },
69
+ {
70
+ "constructorName": "Idle",
71
+ "docstrings": ["Now idle."],
72
+ "signature": "Idle"
73
+ }]
74
+ }
75
+ },
76
+ {
77
+ "id": "DocExtractionRes.SomeInnerModule.validInputs",
78
+ "kind": "type",
79
+ "name": "validInputs",
80
+ "signature": "type validInputs = [\\n | #\\\"needs-escaping\\\"\\n | #something\\n | #status(status)\\n | #withPayload(int)\\n]",
81
+ "docstrings": ["These are all the valid inputs."]
82
+ },
83
+ {
84
+ "id": "DocExtractionRes.SomeInnerModule.callback",
85
+ "kind": "type",
86
+ "name": "callback",
87
+ "signature": "type callback = (t, ~status: status) => unit",
88
+ "docstrings": []
89
+ }]
95
90
},
96
91
{
97
92
"id": "AnotherModule.DocExtractionRes",
98
93
"name": "AnotherModule",
99
94
"kind": "module",
100
- "items":
95
+ "items": [
101
96
{
102
- "name": "AnotherModule",
103
- "docstrings": ["Mighty fine module here too!"],
104
- "items": [
105
- {
106
- "id": "DocExtractionRes.AnotherModule.SomeInnerModule",
107
- "kind": "moduleAlias",
108
- "name": "LinkedModule",
109
- "docstrings": ["This links another module. Neat."],
110
- "signature": "module LinkedModule = SomeInnerModule"
111
- },
112
- {
113
- "id": "DocExtractionRes.AnotherModule.callback",
114
- "kind": "type",
115
- "name": "callback",
116
- "signature": "type callback = SomeInnerModule.status => unit",
117
- "docstrings": ["Testing what this looks like."]
118
- },
119
- {
120
- "id": "DocExtractionRes.AnotherModule.isGoodStatus",
121
- "kind": "value",
122
- "name": "isGoodStatus",
123
- "signature": "let isGoodStatus: SomeInnerModule.status => bool",
124
- "docstrings": []
125
- },
97
+ "id": "DocExtractionRes.AnotherModule.SomeInnerModule",
98
+ "kind": "moduleAlias",
99
+ "name": "LinkedModule",
100
+ "docstrings": ["This links another module. Neat."],
101
+ "signature": "module LinkedModule = SomeInnerModule"
102
+ },
103
+ {
104
+ "id": "DocExtractionRes.AnotherModule.callback",
105
+ "kind": "type",
106
+ "name": "callback",
107
+ "signature": "type callback = SomeInnerModule.status => unit",
108
+ "docstrings": ["Testing what this looks like."]
109
+ },
110
+ {
111
+ "id": "DocExtractionRes.AnotherModule.isGoodStatus",
112
+ "kind": "value",
113
+ "name": "isGoodStatus",
114
+ "signature": "let isGoodStatus: SomeInnerModule.status => bool",
115
+ "docstrings": []
116
+ },
117
+ {
118
+ "id": "DocExtractionRes.AnotherModule.someVariantWithInlineRecords",
119
+ "kind": "type",
120
+ "name": "someVariantWithInlineRecords",
121
+ "signature": "type someVariantWithInlineRecords = SomeStuff({offline: bool})",
122
+ "docstrings": ["Trying how it looks with an inline record in a variant."],
123
+ "detail":
126
124
{
127
- "id": "DocExtractionRes.AnotherModule.someVariantWithInlineRecords",
128
- "kind": "type",
129
- "name": "someVariantWithInlineRecords",
130
- "signature": "type someVariantWithInlineRecords = SomeStuff({offline: bool})",
131
- "docstrings": ["Trying how it looks with an inline record in a variant."],
132
- "detail":
125
+ "kind": "variant",
126
+ "constructorDocs": [
133
127
{
134
- "kind": "variant",
135
- "constructorDocs": [
136
- {
137
- "constructorName": "SomeStuff",
138
- "docstrings": ["This has inline records..."],
139
- "signature": "SomeStuff"
140
- }]
141
- }
142
- },
143
- {
144
- "id": "DocExtractionRes.AnotherModule.domRoot",
145
- "kind": "type",
146
- "name": "domRoot",
147
- "signature": "type domRoot = unit => ReactDOM.Client.Root.t",
148
- "docstrings": ["Callback to get the DOM root..."]
149
- }]
150
- }
128
+ "constructorName": "SomeStuff",
129
+ "docstrings": ["This has inline records..."],
130
+ "signature": "SomeStuff"
131
+ }]
132
+ }
133
+ },
134
+ {
135
+ "id": "DocExtractionRes.AnotherModule.domRoot",
136
+ "kind": "type",
137
+ "name": "domRoot",
138
+ "signature": "type domRoot = unit => ReactDOM.Client.Root.t",
139
+ "docstrings": ["Callback to get the DOM root..."]
140
+ }]
151
141
},
152
142
{
153
143
"id": "ModuleWithThingsThatShouldNotBeExported.DocExtractionRes",
154
144
"name": "ModuleWithThingsThatShouldNotBeExported",
155
145
"kind": "module",
156
- "items":
146
+ "items": [
157
147
{
158
- "name": "ModuleWithThingsThatShouldNotBeExported",
159
- "docstrings": [],
160
- "items": [
161
- {
162
- "id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported.t",
163
- "kind": "type",
164
- "name": "t",
165
- "signature": "type t",
166
- "docstrings": ["The type t is stuff."]
167
- },
168
- {
169
- "id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported.make",
170
- "kind": "value",
171
- "name": "make",
172
- "signature": "let make: unit => t",
173
- "docstrings": ["The maker of stuff!"]
174
- }]
175
- }
148
+ "id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported.t",
149
+ "kind": "type",
150
+ "name": "t",
151
+ "signature": "type t",
152
+ "docstrings": ["The type t is stuff."]
153
+ },
154
+ {
155
+ "id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported.make",
156
+ "kind": "value",
157
+ "name": "make",
158
+ "signature": "let make: unit => t",
159
+ "docstrings": ["The maker of stuff!"]
160
+ }]
176
161
}]
177
162
}
178
163
0 commit comments