File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 129
129
let stringifyDocstrings docstrings =
130
130
let open Protocol in
131
131
docstrings
132
- |> List. map (fun docstring ->
133
- docstring |> String. trim |> Json. escape |> wrapInQuotes)
132
+ |> List. map (fun docstring -> docstring |> String. trim |> wrapInQuotes)
134
133
|> array
135
134
136
135
let stringifyLinkables ?(indentation = 0 )
@@ -181,7 +180,7 @@ let stringifyDetail ?(indentation = 0) ~originalEnv (detail : docItemDetail) =
181
180
stringifyObject ~start OnNewline:true ~indentation
182
181
[
183
182
(" kind" , Some (wrapInQuotes " variant" ));
184
- ( " fieldDocs " ,
183
+ ( " constructorDocs " ,
185
184
Some
186
185
(constructorDocs
187
186
|> List. map (fun constructorDoc ->
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ extracting docs for src/DocExtractionRes.res
33
33
"kind": "value",
34
34
"name": "make",
35
35
"signature": "let make: string => t",
36
- "docstrings": ["Create stuff.\\n\\ n```rescript example\\ nlet stuff = make(\\\ "My name\\\")\ \n```"],
36
+ "docstrings": ["Create stuff.\n\ n```rescript example\nlet stuff = make(\"My name\") \n```"],
37
37
"linkables": [{
38
38
"linkId": "DocExtractionRes.t",
39
39
"name": "t",
@@ -74,7 +74,7 @@ extracting docs for src/DocExtractionRes.res
74
74
"detail":
75
75
{
76
76
"kind": "variant",
77
- "fieldDocs ": [
77
+ "constructorDocs ": [
78
78
{
79
79
"constructorName": "Started",
80
80
"docstrings": ["If this is started or not"],
@@ -167,7 +167,7 @@ extracting docs for src/DocExtractionRes.res
167
167
"detail":
168
168
{
169
169
"kind": "variant",
170
- "fieldDocs ": [
170
+ "constructorDocs ": [
171
171
{
172
172
"constructorName": "SomeStuff",
173
173
"docstrings": ["This has inline records..."],
You can’t perform that action at this time.
0 commit comments