Re: [racket-users] Functions not being linked in scribble
On Tue, Apr 28, 2020 at 11:41 AM Sam Tobin-Hochstadt wrote: > I believe you're missing a `defmodule` inside test.scrbl. > Aha. Okay, I: *) Added @defmodule[test] to the test.scrbl file *) Created a main.rkt that did (require "test.rkt") and (provide (all-from-out "test.rkt")) *) Did a raco pkg install to ensure that test was a recognized collection. *) scribble test.scrbl At that point it works correctly. Thank you! > Sam > > On Tue, Apr 28, 2020 at 11:32 AM David Storrs > wrote: > > > > Here's my test code. I get the test.html file out at the end and, as > expected, the explanation of bar says "Calls foo" with foo in blue with a > red line underneath. What am I missing? > > > > > > ; test.rkt > > #lang racket > > (provide (all-defined-out)) > > (define (foo) 7) > > (define (bar) (foo)) > > > > -- > > > > ; test.scrbl > > #lang scribble/manual > > @(require (for-label racket "test.rkt")) > > @title{My Library} > > @defproc[(foo) any]{Returns 7} > > @defproc[(bar) any]{Calls @racket[foo]} > > > > -- > > > > ; command line > > > > $ racket > > Welcome to Racket v7.6. > > > (require "test.rkt") > > > (bar) > > 7 > > > > > > $ scribble test.scrbl > > > > Output: > > test.scrbl:6:10: WARNING: no declared exporting libraries for definition > > in: foo > > test.scrbl:8:10: WARNING: no declared exporting libraries for definition > > in: bar > > [Output to test.html] > > Warning: some cross references may be broken due to undefined tags: > > (dep (# bar)) > > (dep ((lib "racket/contract/base.rkt") any)) > > (dep ((lib "racket/contract.rkt") any)) > > (dep ((lib "racket/contract/private/misc.rkt") any)) > > (dep (# foo)) > > (dep ((lib "racket/main.rkt") any)) > > > > > > On Tue, Apr 28, 2020 at 11:00 AM Ben Greenman < > benjaminlgreen...@gmail.com> wrote: > >> > >> On 4/28/20, David Storrs wrote: > >> > According to what I see in Scribble, both actual examples and in the > >> > documentation, I had thought that if I did @defproc[func-name] then > >> > func-name would become a link target and later uses of > @racket[func-name] > >> > would automatically link to that site. I'm clearly missing > something; my > >> > functions are being rendered in link style but they have red links > under > >> > them and are not actually links. Can someone point me in the right > >> > direction? > >> > >> Did you (require (for-label func-name)) ? > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups "Racket Users" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an email to racket-users+unsubscr...@googlegroups.com. > >> To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/CAFUu9R5%3Dk-WHJ87FHFbLFj-XWy9%2BhMrsVGXcGfeA834s25EfVg%40mail.gmail.com > . > > > > -- > > You received this message because you are subscribed to the Google > Groups "Racket Users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to racket-users+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/CAE8gKodfM9TON5T7hwjQ6XPUCKGHdv98Rx-cX%2BFDo6ALXLg36A%40mail.gmail.com > . > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAE8gKoeyYV_dx6QgLfXeqkD1JojOQSpN9ejQYO%3DMtcYYUL7Z5g%40mail.gmail.com.
Re: [racket-users] Functions not being linked in scribble
I believe you're missing a `defmodule` inside test.scrbl. Sam On Tue, Apr 28, 2020 at 11:32 AM David Storrs wrote: > > Here's my test code. I get the test.html file out at the end and, as > expected, the explanation of bar says "Calls foo" with foo in blue with a red > line underneath. What am I missing? > > > ; test.rkt > #lang racket > (provide (all-defined-out)) > (define (foo) 7) > (define (bar) (foo)) > > -- > > ; test.scrbl > #lang scribble/manual > @(require (for-label racket "test.rkt")) > @title{My Library} > @defproc[(foo) any]{Returns 7} > @defproc[(bar) any]{Calls @racket[foo]} > > -- > > ; command line > > $ racket > Welcome to Racket v7.6. > > (require "test.rkt") > > (bar) > 7 > > > $ scribble test.scrbl > > Output: > test.scrbl:6:10: WARNING: no declared exporting libraries for definition > in: foo > test.scrbl:8:10: WARNING: no declared exporting libraries for definition > in: bar > [Output to test.html] > Warning: some cross references may be broken due to undefined tags: > (dep (# bar)) > (dep ((lib "racket/contract/base.rkt") any)) > (dep ((lib "racket/contract.rkt") any)) > (dep ((lib "racket/contract/private/misc.rkt") any)) > (dep (# foo)) > (dep ((lib "racket/main.rkt") any)) > > > On Tue, Apr 28, 2020 at 11:00 AM Ben Greenman > wrote: >> >> On 4/28/20, David Storrs wrote: >> > According to what I see in Scribble, both actual examples and in the >> > documentation, I had thought that if I did @defproc[func-name] then >> > func-name would become a link target and later uses of @racket[func-name] >> > would automatically link to that site. I'm clearly missing something; my >> > functions are being rendered in link style but they have red links under >> > them and are not actually links. Can someone point me in the right >> > direction? >> >> Did you (require (for-label func-name)) ? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Racket Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to racket-users+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/racket-users/CAFUu9R5%3Dk-WHJ87FHFbLFj-XWy9%2BhMrsVGXcGfeA834s25EfVg%40mail.gmail.com. > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/CAE8gKodfM9TON5T7hwjQ6XPUCKGHdv98Rx-cX%2BFDo6ALXLg36A%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAK%3DHD%2BaxqHQ7276t5m8RRh_kQT8pTse%2B9bZ2Moxcbvw4xxRD_A%40mail.gmail.com.
Re: [racket-users] Functions not being linked in scribble
Here's my test code. I get the test.html file out at the end and, as expected, the explanation of bar says "Calls foo" with foo in blue with a red line underneath. What am I missing? ; test.rkt #lang racket (provide (all-defined-out)) (define (foo) 7) (define (bar) (foo)) -- ; test.scrbl #lang scribble/manual @(require (for-label racket "test.rkt")) @title{My Library} @defproc[(foo) any]{Returns 7} @defproc[(bar) any]{Calls @racket[foo]} -- ; command line $ racket Welcome to Racket v7.6. > (require "test.rkt") > (bar) 7 $ scribble test.scrbl Output: test.scrbl:6:10: WARNING: no declared exporting libraries for definition in: foo test.scrbl:8:10: WARNING: no declared exporting libraries for definition in: bar [Output to test.html] Warning: some cross references may be broken due to undefined tags: (dep (# bar)) (dep ((lib "racket/contract/base.rkt") any)) (dep ((lib "racket/contract.rkt") any)) (dep ((lib "racket/contract/private/misc.rkt") any)) (dep (# foo)) (dep ((lib "racket/main.rkt") any)) On Tue, Apr 28, 2020 at 11:00 AM Ben Greenman wrote: > On 4/28/20, David Storrs wrote: > > According to what I see in Scribble, both actual examples and in the > > documentation, I had thought that if I did @defproc[func-name] then > > func-name would become a link target and later uses of @racket[func-name] > > would automatically link to that site. I'm clearly missing something; my > > functions are being rendered in link style but they have red links under > > them and are not actually links. Can someone point me in the right > > direction? > > Did you (require (for-label func-name)) ? > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/racket-users/CAFUu9R5%3Dk-WHJ87FHFbLFj-XWy9%2BhMrsVGXcGfeA834s25EfVg%40mail.gmail.com > . > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAE8gKodfM9TON5T7hwjQ6XPUCKGHdv98Rx-cX%2BFDo6ALXLg36A%40mail.gmail.com.
Re: [racket-users] Functions not being linked in scribble
On 4/28/20, David Storrs wrote: > According to what I see in Scribble, both actual examples and in the > documentation, I had thought that if I did @defproc[func-name] then > func-name would become a link target and later uses of @racket[func-name] > would automatically link to that site. I'm clearly missing something; my > functions are being rendered in link style but they have red links under > them and are not actually links. Can someone point me in the right > direction? Did you (require (for-label func-name)) ? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAFUu9R5%3Dk-WHJ87FHFbLFj-XWy9%2BhMrsVGXcGfeA834s25EfVg%40mail.gmail.com.
[racket-users] Functions not being linked in scribble
According to what I see in Scribble, both actual examples and in the documentation, I had thought that if I did @defproc[func-name] then func-name would become a link target and later uses of @racket[func-name] would automatically link to that site. I'm clearly missing something; my functions are being rendered in link style but they have red links under them and are not actually links. Can someone point me in the right direction? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAE8gKodzFS9AEK%3Dj%3D3NvcckT9mZY3XO_5gxv%3DAe8G7Z0KoJ%2BPQ%40mail.gmail.com.