Return-Path: X-Original-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 92FECD348 for ; Wed, 25 Jul 2012 07:30:42 +0000 (UTC) Received: (qmail 39554 invoked by uid 500); 25 Jul 2012 07:30:41 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 39423 invoked by uid 500); 25 Jul 2012 07:30:40 -0000 Mailing-List: contact deltaspike-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-dev@incubator.apache.org Delivered-To: mailing list deltaspike-dev@incubator.apache.org Received: (qmail 39381 invoked by uid 99); 25 Jul 2012 07:30:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2012 07:30:38 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jeanouii@gmail.com designates 209.85.161.175 as permitted sender) Received: from [209.85.161.175] (HELO mail-gg0-f175.google.com) (209.85.161.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2012 07:30:30 +0000 Received: by ggnp4 with SMTP id p4so345295ggn.6 for ; Wed, 25 Jul 2012 00:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=U4VN8BlkY6N7/rZ2rsOCsTcDHZhbgYSn+uCfNcTggS8=; b=Ht6KP5dfGLyLIQ2UmrKFrUwG8IY+/Y9pefgQC14klxvr3NIHQy81ukiYZ+Mb32elP5 ZI9uXm1VxGnARgqtH7dbwWvYMnzB6F0E/w21MgYO5omcuP95roP5lb4WApgfst53Lr4M eBew4/tZOThhExL4yQ0WoLLLDNAM92Votp2915e54KxNPd77RuvT2YgXuFXIwNHhIF6h 3BnZlhvPOrjmEjL9f4g1Xv18FJgUpR0JuBZ31nRN/QADNfDMIphS9Z1X+VgciQHAeeRM RtK4EeEtEi4rzM+lnqWhF0y7BVeHGy9PZGhTzZwIvhNabKFxV5sqikW4K1JwWYnmfQKH +qBg== MIME-Version: 1.0 Received: by 10.66.72.225 with SMTP id g1mr10767653pav.3.1343201409464; Wed, 25 Jul 2012 00:30:09 -0700 (PDT) Received: by 10.68.25.130 with HTTP; Wed, 25 Jul 2012 00:30:09 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Jul 2012 09:30:09 +0200 Message-ID: Subject: Re: CMS Info From: Jean-Louis MONTEIRO To: deltaspike-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d042f9eb0df792e04c5a272b7 --f46d042f9eb0df792e04c5a272b7 Content-Type: text/plain; charset=ISO-8859-1 +1, as soon as the perl is up, that's pretty cool to get the site updated and up to date. That's also easy to get external contributions on the documentation where usually all projects are interested in. Jean-Louis 2012/7/25 David Blevins > Reposting some info I mentioned on IRC wrt the CMS. > > Generally if you're ok with doing things page-at-a-time and keeping the > markdown, asciidoc or whatever source in svn, all can work fine. > > The CMS can keep the site up-to-date immediately after each commit of a > source file (*.mdtext, *.asciidoc, etc.) with no need to write any of that > yourself. > > So if you can handle this dance: > > CMS: this foo-formatted page changed, turn it into html, please > You: ok, one sec, here it is > > Then the CMS is golden. The "ok, one sec, here it is" is done with a perl > function of your creation. That perl function can easily call out to > anything else for the actual generation. Infra definitely prefers all be > done in perl, but a hard stance hasn't been made. > > Generating an entire site and push all the files, some changed and some > not, is going against the grain. It's not in the small tweak category, but > in the by-passing huge parts of the CMS and doing nearly everything > yourself. You don't need to go to this great length just to use an > alternate input source format than what the CMS currently handles. > > This doc recaps the above, gives a little bit of the "how" then goes into > great detail on the "how". I recommend reading at least part of it to get > a better idea. > > - http://www.apache.org/dev/cmsref.html#control-flow > > Ushering the content from the markdown or asciidoc source to staging then > to production is all done with svn hooks, so I don't think git is an option > -- at least not for all of it. > > Not a complete view, but a better idea. Markdown is what is supported > "natively", but adding other formats really only takes a few lines of perl > that calls out to something else. The restriction being as mentioned: > > - the source doc is svn > - the perl function takes one file as input and produces a "string" of > generated html > > If you can do that, you can use whatever format you like and the CMS will > do all the rest of the work and do it very well. > > > -David > > --f46d042f9eb0df792e04c5a272b7--