[racket] planet question
Looking at the code, it appears that make-planet-archive is sensitive to
the current directory. I'll try to sort out how and update the docs.
Robby
On Fri, Mar 1, 2013 at 1:04 PM, Jos Koot <jos.koot at gmail.com> wrote:
> **
> Found a solution:
>
> (parameterize ((current-directory "example"))
> (make-planet-archive "../example")
>
> Weird though that make-planet-archive does not look in the specified
> directory. It seems to look in the current directory. The plt-file is
> stored in directory "example". In this directory two other directories are
> made as well: "compiled" and "planet-docs/examples". Is this expected and
> correct? Forgive me my ignorance.
>
> Thanks for the help,
> Jos
>
> ------------------------------
> *From:* Jos Koot [mailto:jos.koot at gmail.com]
> *Sent:* viernes, 01 de marzo de 2013 19:15
> *To:* 'Robby Findler'
> *Cc:* 'Racket mailing list'
> *Subject:* RE: [racket] planet question
>
> Thanks for attention to my question. I tried your advice and some
> variations on this theme, but without luck.
> Jos
>
> ------------------------------
> *From:* Robby Findler [mailto:robby at eecs.northwestern.edu]
> *Sent:* viernes, 01 de marzo de 2013 14:05
> *To:* Jos Koot
> *Cc:* Racket mailing list
> *Subject:* Re: [racket] planet question
>
> I think you need your info.rkt file to be in the top-level directory
> (and then use a relative path to point to your scribble files).
>
> Robby
>
>
> On Fri, Mar 1, 2013 at 2:53 AM, Jos Koot <jos.koot at gmail.com> wrote:
>
>> **
>> I finally made scribble doc for my planet-fmt package. However, when
>> trying to build the package I receive a warning like:
>>
>> Welcome to DrRacket, version 5.3.3.3--2013-02-18(1c2432e/a) [3m].
>> Language: racket [custom]; memory limit: 2000 MB.
>> (#<path:example.rkt> #<path:example.scrbl> #<path:info.rkt>)
>> MzTarring .\...
>>
>> WARNING:
>> Package has no info.rkt file. This means it will not have a description
>> or documentation on the PLaneT web site.
>> #<path:c:\racket-jos\example\example.plt>
>>
>> The following is a very stripped example that gives me this warning:
>>
>> In directory example:
>> file make-package.rkt
>> subdirectory example
>>
>> In the subdirectory:
>> file example.rkt
>> file example.scrbl
>> file info.rkt
>>
>> make-package.rkt
>> #lang racket
>> (require planet/util)
>> (force-package-building? #t)
>> (build-scribble-docs? #t)
>> (directory-list "example") ; gives correct list of files.
>> (make-planet-archive (string->path "example"))
>>
>> example.rkt
>> #lang racket
>> (provide example)
>> (define (example) 'example)
>>
>> example.scrbl
>> #lang scribble/manual
>> @(require "example.rkt" scribble/eval (for-label "example.rkt" racket))
>> @title{A simple example}
>> @author{Jacob J. A. Koot}
>> @(defmodule "example.rkt")
>> @section{Example}
>> This is @code{example}.
>> @defproc[(example) 'example]
>>
>> info.rkt
>> #lang setup/infotab
>> (define scribblings (list (list "example.scrbl")))
>> (define name "example")
>> (define blurb (list "A simple example"))
>> (define primary-file "example.rkt")
>> (define categories (list 'misc))
>>
>> I run make-package.rkt from DrRacket. File example.plt is prepared, but
>> the warning appears. What do I wrong? Furthermore, when trying to updatemy planet-fmt package after logging in into planet, I get an error message,
>> something like
>>
>> Oops, something went wrong ...
>>
>> No new version is installed.
>> Help please.
>> Thanks, Jos
>>
>>
>> ____________________
>> Racket Users list:
>> http://lists.racket-lang.org/users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130301/0ac5735e/attachment.html>