<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">&lt;<a href="mailto:cce@ccs.neu.edu">cce@ccs.neu.edu</a>&gt;</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>
&lt;<a href="mailto:spdegabrielle@gmail.com">spdegabrielle@gmail.com</a>&gt; wrote:<br>
&gt; On Wed, Sep 17, 2008 at 4:35 PM, Carl Eastlund &lt;<a href="mailto:cce@ccs.neu.edu">cce@ccs.neu.edu</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; ; when ready to release; (use sake to automate this? )<br>
&gt;&gt; &gt; planet unlink [dev-id] foo.plt 1 4 &nbsp;;; remove the link<br>
&gt;&gt; &gt; planet create foo ;; create foo.plt file for test installation &nbsp;[Will -<br>
&gt;&gt; &gt; is<br>
&gt;&gt; &gt; there a reason to compile a temporary copy?]<br>
&gt;&gt; &gt; planet fileinject [dev-id] foo.plt 1 4 &nbsp;;; install for testing<br>
&gt;&gt;<br>
&gt;&gt; You do not want to unlink the package at this point. &nbsp;If you take<br>
&gt;&gt; Will&#39;s (good) advice and test/build from a temporary copy, in fact,<br>
&gt;&gt; make sure to unlink the original and link the copy.<br>
&gt;<br>
&gt; I thought that link-ing or fileinject the copy were functionally equivalent?<br>
&gt; - provided you remembered to unlink the original - so linking is probably<br>
&gt; safer?<br>
<br>
</div>Linking is not equivalent to fileinjecting for all purposes. &nbsp;A<br>
development link tells Planet to use your source directory for the<br>
planet package. &nbsp;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&#39;t yet have a .plt file to inject. &nbsp;Move the unlink to<br>
after the create, then fileinject. &nbsp;Sorry for the confusion; you do<br>
need to unlink, you were just doing it too early.<br>
<div class="Ih2E3d"><br>
&gt;&gt; When you run<br>
&gt;&gt; planet create, Planet attempts to build your Scribble documentation so<br>
&gt;&gt; it can include a rendered HTML file that will be readable on the<br>
&gt;&gt; Planet server. &nbsp;If you unlink your package, any internal references to<br>
&gt;&gt; (planet &lt;dev-id&gt;/foo:1:4/...) will be broken and planet create may<br>
&gt;&gt; fail.<br>
&gt;<br>
&gt; I don&#39;t understand - &nbsp;I thought the [planet]create-ed/fileinject-ed copy<br>
&gt; 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>
&gt;&gt; Leave your development links intact and functioning while using planet<br>
&gt;&gt; create.<br>
&gt;<br>
&gt; (because create builds the documentation?)<br>
<br>
</div>Yes.<br>
<div class="Ih2E3d"><br>
&gt; I think I&#39;m missing something in my understanding of building scribble<br>
&gt; documentation.<br>
&gt; Does scribble documentation need to be built in-place (via planet link) to<br>
&gt; 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&#39;t matter whether you<br>
unlink before or after running planet create.<br>
<br>
I hope that clarifies the matter. &nbsp;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>