help: don't consider children of $markup-examples for cross-referencing
parent
e8fd85437b
commit
9d4df482c8
|
@ -1,6 +1,7 @@
|
|||
USING: help.crossref help.topics help.markup tools.test words
|
||||
definitions assocs sequences kernel namespaces parser arrays
|
||||
io.streams.string continuations debugger compiler.units eval ;
|
||||
io.streams.string continuations debugger compiler.units eval
|
||||
help.syntax ;
|
||||
IN: help.crossref.tests
|
||||
|
||||
[ ] [
|
||||
|
@ -54,3 +55,11 @@ IN: help.crossref.tests
|
|||
] unit-test
|
||||
|
||||
[ "xxx" ] [ "yyy" article-parent ] unit-test
|
||||
|
||||
ARTICLE: "crossref-test-1" "Crossref test 1"
|
||||
"Hello world" ;
|
||||
|
||||
ARTICLE: "crossref-test-2" "Crossref test 2"
|
||||
{ $markup-example { $subsection "crossref-test-1" } } ;
|
||||
|
||||
[ V{ } ] [ "crossref-test-2" >link article-children ] unit-test
|
||||
|
|
|
@ -430,8 +430,8 @@ M: simple-element elements*
|
|||
M: object elements* 2drop ;
|
||||
|
||||
M: array elements*
|
||||
[ [ elements* ] with each ] 2keep
|
||||
[ first eq? ] keep swap [ , ] [ drop ] if ;
|
||||
[ dup first \ $markup-example eq? [ 2drop ] [ [ elements* ] with each ] if ]
|
||||
[ [ first eq? ] keep swap [ , ] [ drop ] if ] 2bi ;
|
||||
|
||||
: elements ( elt-type element -- seq ) [ elements* ] { } make ;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
USING: help.vocabs tools.test help.markup help vocabs ;
|
||||
USING: help.vocabs tools.test help.markup help vocabs io ;
|
||||
IN: help.vocabs.tests
|
||||
|
||||
[ ] [ { $vocab "scratchpad" } print-content ] unit-test
|
||||
[ ] [ "classes" vocab print-topic ] unit-test
|
||||
[ ] [ nl ] unit-test
|
||||
|
|
Loading…
Reference in New Issue