Re: [pollen] Source files in multiple directories and generating an index

2019-02-19 Thread Evžen Wybitul
Darn, you're right! I'd swear I ran `raco pkg update --all`. There must've 
been an error I haven't noticed which prevented pollen from updating (ah, 
it's getting late here in Europe). I'm really sorry for bothering you. 
Everything works fine now :-) You're the best!

Dne středa 20. února 2019 1:03:12 UTC+1 Matthew Butterick napsal(a):
>
> (FWIW I cannot reproduce your bug with 1.5.2028.835)
>
>
> On Feb 19, 2019, at 4:02 PM, Matthew Butterick  > wrote:
>
> The revision with the bugfix is 1.5.2028.835.
>
>
> On Feb 19, 2019, at 4:01 PM, Evžen Wybitul  > wrote:
>
> It says 1.5.1987.839
>
> Dne středa 20. února 2019 1:00:33 UTC+1 Matthew Butterick napsal(a):
>>
>> What is your `raco pollen version`?
>>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [pollen] Source files in multiple directories and generating an index

2019-02-19 Thread Matthew Butterick
(FWIW I cannot reproduce your bug with 1.5.2028.835)


> On Feb 19, 2019, at 4:02 PM, Matthew Butterick  wrote:
> 
> The revision with the bugfix is 1.5.2028.835.
> 
> 
>> On Feb 19, 2019, at 4:01 PM, Evžen Wybitul > > wrote:
>> 
>> It says 1.5.1987.839
>> 
>> Dne středa 20. února 2019 1:00:33 UTC+1 Matthew Butterick napsal(a):
>> What is your `raco pollen version`?
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [pollen] Re: Source files in multiple directories and generating an index

2019-02-19 Thread Matthew Butterick
The revision with the bugfix is 1.5.2028.835.


> On Feb 19, 2019, at 4:01 PM, Evžen Wybitul  wrote:
> 
> It says 1.5.1987.839
> 
> Dne středa 20. února 2019 1:00:33 UTC+1 Matthew Butterick napsal(a):
> What is your `raco pollen version`?

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [pollen] Re: Source files in multiple directories and generating an index

2019-02-19 Thread Evžen Wybitul
It says 1.5.1987.839

Dne středa 20. února 2019 1:00:33 UTC+1 Matthew Butterick napsal(a):
>
> What is your `raco pollen version`?
>
>
> On Feb 19, 2019, at 3:56 PM, Evžen Wybitul  > wrote:
>
> Even with the new fix the relative paths don't work. I'm getting the 
> following error:
>
> find-relative-path: contract violation
>   expected: (and/c path-for-some-system? simple-form?)
>   given: 
> #
>
> My file looks like this:
>
> #lang pollen
>
> ◊define-meta[template]{../../lecture-page-template.html}
> ◊define-meta[title]{Analýza II}
>
> And is in *doc/analyza/*, while the template is located in the same 
> directory as *doc*.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [pollen] Re: Source files in multiple directories and generating an index

2019-02-19 Thread Matthew Butterick
What is your `raco pollen version`?


> On Feb 19, 2019, at 3:56 PM, Evžen Wybitul  wrote:
> 
> Even with the new fix the relative paths don't work. I'm getting the 
> following error:
> 
> find-relative-path: contract violation
>   expected: (and/c path-for-some-system? simple-form?)
>   given: 
> #
> 
> My file looks like this:
> 
> #lang pollen
> 
> ◊define-meta[template]{../../lecture-page-template.html}
> ◊define-meta[title]{Analýza II}
> 
> And is in doc/analyza/, while the template is located in the same directory 
> as doc.

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[pollen] Using generated pagetree as an index pagetree

2019-02-19 Thread Evžen Wybitul
I have a generated pagetree in the following form, which is an output from 
(generate-ptree) in pagetree.rkt:

'((./doc/analyza/lecture-page.html
   ./doc/analyza/analyza-1.html
   ./doc/analyza/analyza-2.html)
  (./doc/neproceduralko/lecture-page.html))

And I'd like to somehow include it in the index.ptree file (i.e. use it 
both to render the files and on the webserver as the default ptree). How do 
I go about this?

The final index.ptree should have the form of

./doc/analyza/lecture-page.html{
./doc/analyza/analyza-1.html
./doc/analyza/analyza-2.html
}
./doc/neproceduralko/lecture-page.html

Thanks a lot for any help.

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [pollen] Source files in multiple directories and generating an index

2019-02-19 Thread Evžen Wybitul
Good idea, I'm now converting them to relative path names. I'm still having 
trouble with getting custom templates to work, though; I have a file 
*analysis/document.html.pm 
*and I'd like it to be render with a *special-template.html*, which is in 
the root directory* (*outside of the *anaylsis *folder*). *I can't find any 
way to do that.

I tried to set the template file using define-metas, but neither of these 
worked: *special-template.html, /**special-template.html, 
/full/system/path/to/file/**special-template.html.*

Got any more tips?

Dne pondělí 21. ledna 2019 17:12:28 UTC+1 Matthew Butterick napsal(a):
>
>
>
> On Jan 20, 2019, at 11:33 PM, Evžen Wybitul  > wrote:
>
> And it works, partially. However, when I call `(next here)` on order to do 
> page navigation, the value for file1 is `analysis/file2.html`, but I'd need 
> it to be only `file2.html`. Of course, I could just strip the `[...]/` part 
> programatically, but that feels really hack-ish. Especially if there's a 
> better way.
>
>
> In essence, you are tracking absolute path names in the pagetree, but you 
> want them to behave like relative path names. You can either 1) convert 
> them to relative path names, or 2) use them as absolute URLs (that is, 
> prefix them with "/") though that assumes you only need the links to work 
> when served via HTTP.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Pollen" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pollenpub+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.