[Laszlo-dev] how do I embed an example in the developer's guide?

Benjamin Shine ben at laszlosystems.com
Thu Nov 22 14:14:22 PST 2007


I mostly figured it out. Pudding proof in the next nightly build --  
look for a new chapter in the developer's guide, "Charting."

-ben

On Nov 22, 2007, at 1:40 PM, Benjamin Shine wrote:

>
> Hey Lou --
> I've got some sample code that I want to embed in a chapter in the  
> developer's guide. (I'm pulling together a charting chapter.) I've  
> got the code I want in a file, and I've got some resources that it  
> needs in another file. I've got a brand new charting.dbk file which  
> I've added to developers/index.dbk. Where do I put the code and the  
> resource file such that I can refer to it from inside an example tag?
>
> <example role="live-example">
>         <title>Bar Chart example</title>
>         <programlisting language="lzx">
>       <textobject><textdata fileref="programs/ 
> hey_lou_what_goes_here.lzx"/></textobject>
>     </programlisting>
> </example>
>
> (I can tell that the build does a lot of moving programs and  
> resources around from one place to another, but I can't quite tell  
> exactly which place I should *put* things to make them come out the  
> other end in the right place.)
>
> -ben



More information about the Laszlo-dev mailing list