Cool, I think that does it.  I think I had a bad directory structure.  It was

yaml/info.rkt
yaml/yaml/main.rkt
yaml/yaml/yaml.scrbl
etc.

If move everything in that yaml subdirectory up, then using

#lang info

(define collection "yaml")
(define deps '("base" "srfi-lite-lib" "typed-racket-lib"))
(define build-deps '("rackunit-lib" "scribble-lib" "racket-doc" "sandbox-lib"))
(define scribblings '(("yaml.scrbl" () (parsing-library))))

gets the link under “Parsing Libraries” with JSON and the rest.

(Using “Parsing Libraries” as the category creates a duplicate category with 
just YAML)

Anyway, thanks for your help!

> On Feb 9, 2016, at 3:07 AM, Benjamin Greenman <benjaminlgreen...@gmail.com> 
> wrote:
> 
> Hm. I'm not sure what's going on.
> 
> If I make a package with your info file, I get no links in the docs. But 
> changing the collection to "yaml" generates documentation under the "Parsing 
> Libraries" category.
> 
> Can you use "yaml" instead of 'multi ?
> 
> On Tue, Feb 9, 2016 at 3:33 AM, Erik Silkensen <eriksilken...@gmail.com 
> <mailto:eriksilken...@gmail.com>> wrote:
> Thanks, Ben.  I think I’m still missing something, still get the same result. 
>  In case it helps, here’s my complete info.rkt:
> 
> #lang info
> 
> (define collection 'multi)
> (define deps '("base" "srfi-lite-lib" "typed-racket-lib"))
> (define build-deps '("rackunit-lib" "scribble-lib" "racket-doc" 
> "sandbox-lib"))
> (define scribblings '(("yaml/yaml.scrbl" () ("Parsing Libraries"))))
> 
>> On Feb 9, 2016, at 1:03 AM, Benjamin Greenman <benjaminlgreen...@gmail.com 
>> <mailto:benjaminlgreen...@gmail.com>> wrote:
>> 
>> Yep, use a string instead of a symbol:
>> 
>> (define scribblings '(("yaml/yaml.scrbl" () ("Parsing Libraries"))))
>> 
>> The only valid symbols are the category names listed here [1].
>> 
>> [1] http://docs.racket-lang.org/raco/setup-info.html?q=info 
>> <http://docs.racket-lang.org/raco/setup-info.html?q=info>
>> 
>> On Tue, Feb 9, 2016 at 2:39 AM, Erik Silkensen <eriksilken...@gmail.com 
>> <mailto:eriksilken...@gmail.com>> wrote:
>> Hi Racket users,
>> 
>> I'm wondering how to control the documentation category for user-defined 
>> packages?  For example, I've created a YAML package and would like it to 
>> show up under "Parsing Libraries".  I tried setting
>> 
>> (define scribblings '(("yaml/yaml.scrbl" () (parsing-library))))
>> 
>> in info.rkt, but after installing the package the link is under 
>> "Miscellaneous Libraries".
>> 
>> Is there a way to do this?
>> 
>> 
>> Cheers,
>> 
>> Erik
>> 
>> --
>> 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 
>> <mailto:racket-users%2bunsubscr...@googlegroups.com>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to