> I want to package my library for https://pkgs.racket-lang.org but I can't > figure out how to do the info.rkt file. > > I would like my repo to be like this: > > * repo/peg/codehere.rkt like main.rkt peg.rkt etc. > * repo/tests/ my tests > * repo/scribblings/peg.scrbl the documentation > > is this directory structure OK?
That structure is OK if you have a `repo/info.rkt` file that points to the documentation. You'll probably also want a file `repo/main.rkt` to reprovide things from `repo/peg/main.rkt`, because `(require peg)` will import the `repo/main.rkt` file. To import `repo/peg/main.rkt`, a user needs to write `(require peg/peg/main)`. > I have not been able to make it work so I have moved everything from > repo/peg/ into repo/. but I am getting "dependency problems" and > documentation is not built: > http://pkg-build.racket-lang.org/server/built/deps/peg.txt > > I can't figure out how to make the correct info.rkt file either way, and it > is difficult to test because I have to update the pkgs page and wait. So > some advice would be very helpful. Running `raco setup --check-pkg-deps peg` will check that the: - `info.rkt` file makes sense - code compiles - documentation renders - dependencies are correct There's also a `--fix-pkg-deps` flag that will edit your info.rkt -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

