I David,I think I will build the site with lift itself. I *look like* it make more sense to have a lift documentation built on lift. I like how SiteMap / surround / embed just works.
Guillaume--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
Guillaume--
I would love you move most of simply lift over this project, but I dont think Telegram and Dexy should be use.
Let me make my point:As I said in a previous post my goal is to make a documentation that is to good to ignore ©Paul PhilipsMy long term goal is to merge all of them into http://doc.liftweb.net ( simply.liftweb.net, exploring.liftweb.net, demo.liftweb.net, cookbook.liftweb.net, lift wiki )Lift + ScalaKataPros
- Lift
- we all knows how lift work, contributors would have to learn how to use dexy
- lift templating with embed/surround is really powerful
- Static examples you have a lift context you can run code that user can see
- <code data-lift="CodeInjection?what=/guide-hidden/snippet/basic.html"></code>
- <code data-lift="CodeInjection?what=/guide-hidden/snippet/BasicCssSelector.scala"></code>
- This shows the snippet, it can be extracted from the /src/main/scala/.../snippet in a sbt task to avoid duplication of code
- <i data-lift="embed?what=/guide-hidden/snippet/basic"></i>
- This run the code
- This way you have 0 duplication: one snippet, one html file we reuse
- Dynamic examples
- some examples are harder to get that's why I created ScalaKata sandbox where you can run the code, change it, rerun it and finally share it.
- <iframe src="http://www.scalakata.com/50141865e4b0ee9926e6257fz">
- <!-- we could fallback on static examples here if we have a 404/500 from ScalaKata -->
- <!-- div data-lift="CodeInjection?what=/guide-hidden/mockup/test.scala"></div -->
- </iframe>
- Screenshots
- I dont think we need dexy to run code, catch output or take screenshots since we have static examples we can show right away.
Pretty complex code ( lot's of javascript wiring )
Hi Nag,this is exactly what I had in mindI had a different solution: I was thinking to do an sbt task to copy source files in the war package. I dont fully understand yours, this is the result from my investigation:/reactive-web-demo/ [...] /snippet/DemoPane.scala fetches the scala sourcescalaSource = scala.io.Source.fromInputStream(getClass.getResourceAsStream("/scala-sources/reactive/web/demo/snippet/" + snippetName + ".scala"))I dont understand where you get the /scala-source/* ressourceI did unpacked the war and saw it sits on /WEB-INF/classes/scala-sources( by the way, it's crazy how tools like http://java.decompiler.free.fr/ can decompile scala classes,in my last internship I showed how easy our clients could steal our IP from extracting .jar or .war package if left un-obfuscated )but I'm clueless about how it got there.
is it from this part of the build ?// ... /project/Build.scala(scalacOptions in (Compile, doc) <++= (baseDirectory).map{ bd =>Seq("-sourcepath", bd.getAbsolutePath, "-doc-source-url", "http://github.com/nafg/reactive/tree€{FILE_PATH}.scala")}),
I also saw that you have 2 syms links in webapp dirlrwxr-xr-x 1 guillaume staff 49 22 Aug 23:29 reactive-core-api -> ../../../../reactive-core/target/scala-2.9.1/api/lrwxr-xr-x 1 guillaume staff 48 22 Aug 23:29 reactive-web-api -> ../../../../reactive-web/target/scala-2.9.1/api/
On Wednesday, August 22, 2012 6:49:41 PM UTC-4, nafg wrote:On Tue, Aug 21, 2012 at 1:39 PM, Guillaume Massé <mas...@gmail.com> wrote:
Pretty complex code ( lot's of javascript wiring )I wonder if reactive-web can help...
point their Telegram account to the forked repo and each time they made a change or enhancement, the whole thing would be built for them
very nice!my 2 cents:currently we have a lot of fragmented documentation on several sources: explore lift, simply lift, assembla wiki, blogs ... etc..
and these documents are not tagged for a version of lift, so we have code for version 2.0, 2.3, 2.5 all well blended.