another question in documenting infix in the prefix world of scribble
@defform[#:id \: {T[begin : end]}]{
Slicing of vectors or strings.
}
@codeblock|{
{"elephant"[2 : 5]}
"eph"
}|
@defform[#:id :: {T[begin : end : step]}]{
begin,end,step are optional, see the Python language documentation for informations and use.
}
in the above code i wanted to make appear the : slice symbol in the left frame of the doc and it is ok but i do not want to see it anymore in the next defform, so i find a way to get rid of it: if i put a non existing symbol in my syntax ,that is :: as #:id :: ,effectively i get rid of it in the left column, i suppose scribble do some check and find it anormal.
but this is completely a hack not be sure to work in the next release of scribble
so my question is , is there a way to hide it in a more normal way?
@defform*[#:id :
({T[begin : end]}
{T[begin : end : step]})]{
Slicing of vectors or strings.
@racket[begin], @racket[end], @racket[step] are optional, see the Python language documentation for informations and use.
}
@codeblock|{
{"elephant"[2 : 5]}
"eph"
}|
thank for your help,grouping the doc lines in defform* seems the conventional presentation for racket doc, and perheaps i should do it like that,but the advantage,with my non conventional solution is i can present each options with his separate set of examples (and without presenting the : multiple times in the left frame):
Unless link-target?-expr is specified and produces #f, the id (or result of id-expr) is indexed, and it is also registered so that racket-typeset uses of the identifier (with the same for-label binding) are hyperlinked to this documentation.
yes this works, and it must be written before #:id which can then also be removed without causing the previous error:
@defform[#:link-target? #f #:id \: {T[begin : end : step]}]{
@racket[begin], @racket[end], @racket[step] are optional, see the Python language documentation for informations and use.
}