File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Expand file tree Collapse file tree 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 @@ -45,6 +45,7 @@ extracting docs for src/DocExtractionRes.res
45
45
"id": "DocExtractionRes.SomeInnerModule",
46
46
"name": "SomeInnerModule",
47
47
"kind": "module",
48
+ "docstrings": ["Another module level docstring here."],
48
49
"items": [
49
50
{
50
51
"id": "DocExtractionRes.SomeInnerModule.status",
@@ -92,6 +93,7 @@ extracting docs for src/DocExtractionRes.res
92
93
"id": "DocExtractionRes.AnotherModule",
93
94
"name": "AnotherModule",
94
95
"kind": "module",
96
+ "docstrings": ["Mighty fine module here too!"],
95
97
"items": [
96
98
{
97
99
"id": "DocExtractionRes.LinkedModule",
@@ -154,6 +156,7 @@ extracting docs for src/DocExtractionRes.res
154
156
"id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported",
155
157
"name": "ModuleWithThingsThatShouldNotBeExported",
156
158
"kind": "module",
159
+ "docstrings": [],
157
160
"items": [
158
161
{
159
162
"id": "DocExtractionRes.ModuleWithThingsThatShouldNotBeExported.t",
You can’t perform that action at this time.
0 commit comments