doccords: dprint chapter and overview print tweak
printing an overview only gives the summary now, not the details. also
fixed chapter printing so that it doesn't print the details twice
--
:> # %dprint
|%
+:> contains arms used for looking for docs inside of a type
+:>
+:> the entrypoint for finding docs within a type is +find-item-in-type.
+| %searching
:> returns the item to print while searching through topic
:>
++ print-chapter
|= [name=tape doc=what sut=type con=coil chapter-id=term]
^- tang
+ ~? > debug %print-chapter
;: weld
(print-header name doc)
::
- ?~ doc
- ~
- (print-sections q.u.doc)
+ ::?~ doc
+ :: ~
+ ::(print-sections q.u.doc)
::
=+ arms=(arms-in-chapter sut con chapter-id)
?~ arms
out
?~ doc.oitem ~
`tang`[[%leaf ""] [%leaf "{(trip p.u.doc.oitem)}"] ~]
- ?~ doc.oitem ~
- (print-sections q.u.doc.oitem)
+ ::?~ doc.oitem ~
+ ::(print-sections q.u.doc.oitem)
^$(overview children.oitem)
==
==
`tang`[[%leaf ""] [%leaf name.oitem] ~]
?~ doc.oitem ~
`tang`[[%leaf ""] [%leaf "{(trip p.u.doc.oitem)}"] ~]
- ?~ doc.oitem ~
- (print-sections q.u.doc.oitem)
+ ::?~ doc.oitem ~
+ ::(print-sections q.u.doc.oitem)
==
==
==
