* fixes #20132; fixes the broken jsondoc comand * add testcase
This commit is contained in:
parent
7af484da94
commit
2aeb0d516b
3 changed files with 30 additions and 1 deletions
|
|
@ -1360,9 +1360,10 @@ proc finishGenerateDoc*(d: var PDoc) =
|
|||
var str: string
|
||||
renderRstToOut(d[], resolved, str)
|
||||
entry.json[entry.rstField] = %str
|
||||
d.jEntriesFinal.add entry.json
|
||||
d.jEntriesPre[i].rst = nil
|
||||
|
||||
d.jEntriesFinal.add entry.json # generates docs
|
||||
|
||||
proc add(d: PDoc; j: JsonItem) =
|
||||
if j.json != nil or j.rst != nil: d.jEntriesPre.add j
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue