Scribble: how to remove "WARNING not declared exporting libraries"

I am trying to use defprocfunction definitions to format ( not to document a library), The code below formats correctly, but displays an ugly warning to the console when Scribble starts:

#lang scribble/manual
@require[(for-label racket/contract)]

@defproc[(f [x integer?]) integer?]{
  The best @racket[f].
}

Performing scribble --html example.scrblprint:

example.scrbl:4:10: WARNING: no declared exporting libraries for definition
  in: f

Can I use defprocto format and delete the error message?

+4
source share
1 answer

Yes. Add an optional argument #:link-target? #fto communicate your purpose.

#lang scribble/manual
@require[(for-label racket/contract)]

@defproc[#:link-target? #f
         (f [x integer?]) integer?]{
  The best @racket[f].
}
+4
source

Source: https://habr.com/ru/post/1658488/


All Articles