File tree 4 files changed +6
-0
lines changed
4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ let rec stringifyDocItem ?(indentation = 0) ~originalEnv (item : docItem) =
156
156
(" id" , Some (wrapInQuotes m.id));
157
157
(" name" , Some (wrapInQuotes m.name));
158
158
(" kind" , Some (wrapInQuotes " module" ));
159
+ (" docstrings" , Some (stringifyDocstrings m.docstring));
159
160
( " items" ,
160
161
Some
161
162
(m.items
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ preferring found resi file for impl: src/DocExtraction2.resi
24
24
"id": "DocExtraction2.InnerModule",
25
25
"name": "InnerModule",
26
26
"kind": "module",
27
+ "docstrings": [],
27
28
"items": [
28
29
{
29
30
"id": "DocExtraction2.InnerModule.t",
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ extracting docs for src/DocExtraction2.resi
23
23
"id": "DocExtraction2.InnerModule",
24
24
"name": "InnerModule",
25
25
"kind": "module",
26
+ "docstrings": [],
26
27
"items": [
27
28
{
28
29
"id": "DocExtraction2.InnerModule.t",
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ extracting docs for src/DocExtractionRes.res
52
52
"id": "DocExtractionRes.SomeInnerModule",
53
53
"name": "SomeInnerModule",
54
54
"kind": "module",
55
+ "docstrings": ["Another module level docstring here."],
55
56
"items": [
56
57
{
57
58
"id": "DocExtractionRes.SomeInnerModule.status",
@@ -99,6 +100,7 @@ extracting docs for src/DocExtractionRes.res
99
100
"id": "DocExtractionRes.AnotherModule",
100
101
"name": "AnotherModule",
101
102
"kind": "module",
103
+ "docstrings": ["Mighty fine module here too!"],
102
104
"items": [
103
105
{
104
106
"id": "DocExtractionRes.LinkedModule",
@@ -161,6 +163,7 @@ extracting docs for src/DocExtractionRes.res
161
163
"id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported",
162
164
"name": "ModuleWithThingsThatShouldNotBeExported",
163
165
"kind": "module",
166
+ "docstrings": [],
164
167
"items": [
165
168
{
166
169
"id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported.t",
You can’t perform that action at this time.
0 commit comments