<div dir="ltr">Thanks Carl, <br><br><br>Cheers, <br>Stephen<br><br><br><div class="gmail_quote">On Wed, Sep 17, 2008 at 5:11 PM, Carl Eastlund <span dir="ltr"><<a href="mailto:cce@ccs.neu.edu">cce@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Wed, Sep 17, 2008 at 12:03 PM, Stephen De Gabrielle<br>
<<a href="mailto:spdegabrielle@gmail.com">spdegabrielle@gmail.com</a>> wrote:<br>
> On Wed, Sep 17, 2008 at 4:35 PM, Carl Eastlund <<a href="mailto:cce@ccs.neu.edu">cce@ccs.neu.edu</a>> wrote:<br>
>><br>
>> > ; when ready to release; (use sake to automate this? )<br>
>> > planet unlink [dev-id] foo.plt 1 4 ;; remove the link<br>
>> > planet create foo ;; create foo.plt file for test installation [Will -<br>
>> > is<br>
>> > there a reason to compile a temporary copy?]<br>
>> > planet fileinject [dev-id] foo.plt 1 4 ;; install for testing<br>
>><br>
>> You do not want to unlink the package at this point. If you take<br>
>> Will's (good) advice and test/build from a temporary copy, in fact,<br>
>> make sure to unlink the original and link the copy.<br>
><br>
> I thought that link-ing or fileinject the copy were functionally equivalent?<br>
> - provided you remembered to unlink the original - so linking is probably<br>
> safer?<br>
<br>
</div>Linking is not equivalent to fileinjecting for all purposes. A<br>
development link tells Planet to use your source directory for the<br>
planet package. When you use fileinject, it tells Planet to extract<br>
the contents of a .plt file, install them in a new directory in the<br>
Planet cache, and use that for the planet package.<br>
<br>
Regardless, I meant not to unlink during the planet create, at which<br>
point you don't yet have a .plt file to inject. Move the unlink to<br>
after the create, then fileinject. Sorry for the confusion; you do<br>
need to unlink, you were just doing it too early.<br>
<div class="Ih2E3d"><br>
>> When you run<br>
>> planet create, Planet attempts to build your Scribble documentation so<br>
>> it can include a rendered HTML file that will be readable on the<br>
>> Planet server. If you unlink your package, any internal references to<br>
>> (planet <dev-id>/foo:1:4/...) will be broken and planet create may<br>
>> fail.<br>
><br>
> I don't understand - I thought the [planet]create-ed/fileinject-ed copy<br>
> would have the documentation included?<br>
<br>
</div>Yes, but only if the package was linked at time of creation.<br>
<div class="Ih2E3d"><br>
>> Leave your development links intact and functioning while using planet<br>
>> create.<br>
><br>
> (because create builds the documentation?)<br>
<br>
</div>Yes.<br>
<div class="Ih2E3d"><br>
> I think I'm missing something in my understanding of building scribble<br>
> documentation.<br>
> Does scribble documentation need to be built in-place (via planet link) to<br>
> work? [if it references other documentation?]<br>
<br>
</div>Scribble documentation is built in-place when you run planet create.<br>
If you have any references to the package from itself (e.g. a<br>
defmodule in its documentation, or one file including another via a<br>
planet require spec instead of a local path), you will need the<br>
development link in place while you run planet create.<br>
<br>
If there are no such self-references, it won't matter whether you<br>
unlink before or after running planet create.<br>
<br>
I hope that clarifies the matter. Sorry for the confusion, before I<br>
said not to planet unlink, when I should have said do it after planet<br>
create but before planet fileinject.<br>
<br>
--<br>
<font color="#888888">Carl Eastlund<br>
</font></blockquote></div><br><br clear="all"><br>
</div>