Re: [racket-users] Scribble and main.rkt

2020-12-22 Thread unlimitedscolobb
Thanks a lot, that's perfectly clear and worked for me!

I'll go with main.rkt though, because requiring the package is simpler this 
way.

-
Sergiu

On Tuesday, December 22, 2020 at 3:46:03 PM UTC+1 Ben Greenman wrote:

> > Is it correct that calling the main file of the package something else 
> than
> > main.rkt is bad style, unsupported by Scribble?
>
> It's okay to call the main file something else, but you'll have to
> tell Scribble about it.
>
> Right now, I guess you have a @defmodule[typed-compose]{}
> somewhere. That would tell Scribble that the defprocs below come from
> typed-compose/main.rkt
>
> If the main module is typed-compose.rkt, then a
> @defmodule[typed-compose/typed-compose]{} should fix the broken
> links.
> (And, it'll tell readers how to require the things below.)
>

-- 
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/36f2a486-432b-41c7-b395-37f30f7a3d27n%40googlegroups.com.


Re: [racket-users] Scribble and main.rkt

2020-12-22 Thread Ben Greenman
> Is it correct that calling the main file of the package something else than
> main.rkt is bad style, unsupported by Scribble?

It's okay to call the main file something else, but you'll have to
tell Scribble about it.

Right now, I guess you have a @defmodule[typed-compose]{}
somewhere. That would tell Scribble that the defprocs below come from
typed-compose/main.rkt

If the main module is typed-compose.rkt, then a
@defmodule[typed-compose/typed-compose]{} should fix the broken
links.
(And, it'll tell readers how to require the things below.)

-- 
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/CAFUu9R5xEQcR8qdtHOQnKYLbZa%3D4WE0T9uxdEv0zNiKQFvd8-A%40mail.gmail.com.


Re: [racket-users] Web Server Tutorial Tries to Write to Library Directory

2020-12-22 Thread Sam Tobin-Hochstadt
I believe this is a bug in `web-server/insta`, but here's a workaround:

Add the following to the beginning of the `app` module:

(require racket/runtime-path)
(define-runtime-path here ".")

Then use `here` instead of `(current-directory)` in the `start` function.

Sam

On Tue, Dec 22, 2020 at 4:56 AM Adam Golding  wrote:
>
> I'm a little confused by this tutorial--when I run the 'persistent model' in 
> section 14 it tries to write a file to the read-only directory the web-server 
> library itself is in...
>
> https://docs.racket-lang.org/continue/
>
> but grabbing the current directory before it loads the web server doesn't 
> seem to work--how do I modify it to make it write to the same folder as the 
> .rkt file?
>
> --
> 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/241d7cd7-8427-40c6-80fe-24f1d910bf76n%40googlegroups.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%2BZwvQs6%2B%3D%3DL%3Db5pPqs5Z3v%2BXsN83jqQrBsL0iNrgbrTzw%40mail.gmail.com.


[racket-users] Web Server Tutorial Tries to Write to Library Directory

2020-12-22 Thread Adam Golding
I'm a little confused by this tutorial--when I run the 'persistent model' 
in section 14 it tries to write a file to the read-only directory the 
web-server library itself is in...

https://docs.racket-lang.org/continue/

but grabbing the current directory before it loads the web server doesn't 
seem to work--how do I modify it to make it write to the same folder as the 
.rkt file?

-- 
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/241d7cd7-8427-40c6-80fe-24f1d910bf76n%40googlegroups.com.