Return-Path: X-Original-To: apmail-logging-general-archive@www.apache.org Delivered-To: apmail-logging-general-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9009992AC for ; Tue, 6 Mar 2012 22:07:33 +0000 (UTC) Received: (qmail 59448 invoked by uid 500); 6 Mar 2012 22:07:33 -0000 Delivered-To: apmail-logging-general-archive@logging.apache.org Received: (qmail 59247 invoked by uid 500); 6 Mar 2012 22:07:30 -0000 Mailing-List: contact general-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Logging General" List-Id: Delivered-To: mailing list general@logging.apache.org Received: (qmail 59219 invoked by uid 99); 6 Mar 2012 22:07:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 22:07:30 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ivan.habunek@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-we0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2012 22:07:23 +0000 Received: by wera1 with SMTP id a1so4862811wer.34 for ; Tue, 06 Mar 2012 14:07:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=bwtVSLV5fCn0VqqkAUrdoR30qci4CjG6lvE0qvFUXQg=; b=MvqyeAesrOeOSfkphn3m6F3nfpWKIeoSoPGBzPObf5X2/r+kzgUvXgzyBhrAaUDb0T SZZR5nfYBl//dCScoQ3DWhPuzui6vp186ZO6pqm5UrNtQBVfvYRzN8yYGx+MZ/acTYag dd93+D43a8dMDZvRR4thQO9HN8K7eVMu2uPd5+Xu017BEy6y/3RTo49M3WWsvGn9LqHP bw2Al3zRLdVyMMklmGP/nl2l7hx0TaBQy526NebfA9oXP4jLEr0eJfC3VUntdVI/PksK 9xpJx1flWigyLPJIPKKhWkvnZogmh7IWabb5vSiKdEArizZjjn4SH9mGtxG79b0S5KdW PcbQ== Received: by 10.180.84.170 with SMTP id a10mr21756212wiz.9.1331071623248; Tue, 06 Mar 2012 14:07:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.24.164 with HTTP; Tue, 6 Mar 2012 14:06:43 -0800 (PST) In-Reply-To: References: <1330311398.7054.YahooMailNeo@web30506.mail.mud.yahoo.com> <77BE0CDC-4F67-4BCD-9220-E3E862A0130E@apache.org> From: Ivan Habunek Date: Tue, 6 Mar 2012 23:06:43 +0100 Message-ID: Subject: Re: Updating the logging services web site To: Logging General Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org After some more banging my head against the wall of Internet I found out that logback uses a cool trick for generating the site using maven which avoids the maven-site-plugin altogether. Basically, the html files are treated as simple resources, which means they are not converted at all, just copied. However, filtering is done on them, which means that placeholders such as ${project.version} are replaced with info from site.xml. The site is built by running "mvn process-resources". Parts of the web which may change and which appear on multiple pages - such as the main menu - are defined as javascript files (see /site/pages/templates/). These templates are then included on individual pages. This means that when the menu changes in the future, it can be edited in just one place. Currently, only the menu is templated. The source is committed as an experimental SVN branch here: https://svn.apache.org/repos/asf/logging/site/branches/experimental-redesig= n You can check out the generated web here: http://bezdomni.net/logging/ Ceki's solution which inspired me (read: which I shamelessly ripped off) is here: https://github.com/ceki/logback/tree/master/logback-site To make the site complete we have a little more work to do: 1. Can each of the projects please provide a short intro to place in the placeholders on the front page? 2. The current project services description is not the nicest, so if anybody has a better idea for a short introductory text i would be grateful. Best regards, Ivan On 27 February 2012 19:25, Scott Deboy wrote: > I also hit the annoying issue during the conversion to use site-plugin wh= ere > we could no longer use images with links - the 'start Chainsaw' link went > from a very visible graphic to a regular underlined link...not great.=A0 = Maybe > it's time to use something different..we don't have that many pages.. > > > On Mon, Feb 27, 2012 at 7:14 AM, Ivan Habunek > wrote: >> >> I'm using a custom skin based on Twitter's Bootstrap on the log4php >> site. It's similar to Fluido, but using a different layout. >> Unfortunately, a custom skin does not allow you to modify the way >> XDOC/APT are translated to HTML so it's not a solution to this >> problem. >> >> I will attempt to make the site-plugin do my bidding once again this >> week. :-) It would be nicer to have the site in XDOC than HTML. >> >> Regards, >> Ivan >> >> On 27 February 2012 16:01, Ralph Goers wrote: >> > Have you tried using a different skin? I'm using Fluido on Log4j2. I >> > have no idea if that will help, but it may show you how to create your= own >> > that does what you want. >> > >> > Ralph >> > >> > On Feb 27, 2012, at 1:16 AM, Ivan Habunek >> > wrote: >> > >> >> I will rant a bit now. Apologies in advance. >> >> >> >> The Maven site-plugin (or whatever sub-component is responsible for >> >> the xdoc conversion) is making it almost impossible to create any sit= e >> >> layout except the one they envisioned. Several examples when >> >> converting xdoc to html: >> >> * Any header element (h1,h2,...) will be encased in a
> >> class=3D"section">. This breaks the layout for my web example, amongs= t >> >> other things. >> >> * Replaces with , =A0 with and with . = Why? >> >> * Always puts class=3D"bodyTable" to all s. Annoying, not too >> >> harmful. >> >> * Replaces
...
with
> >> class=3D"prettyprint>
...
. This breaks the >> >> prettyprint-ing of code. >> >> * Xdoc doesn't support HTML entities such as   (again, annoying >> >> but not unsolvable) >> >> >> >> Apart from that, the apt format is almost unusable with any styling >> >> except the default. The main problem is that you can't assign classes >> >> to html elements. In other words, tables can't be formatted (requires >> >> the "table" class on
), code can't be pretty-printed (requires >> >> "prettyprint" class on
), etc.
>> >>
>> >> So I use liberal amounts of Javascript to fix these things, which is
>> >> not optimal. The log4php pages pretty bad when using noscript.
>> >>
>> >> 
>> >>
>> >> I considered just using plain HTML for the logging site, and avoid th=
e
>> >> site-plugin. But this would be a pain if the number of pages ever
>> >> grows to more than 2-3.
>> >>
>> >> Do you guys know of any alternatives for generating the web?
>> >>
>> >> Regards,
>> >> Ivan
>> >>
>> >>
>> >> On 27 February 2012 03:56, Ron Grabowski 
>> >> wrote:
>> >>> I like it!
>> >>>
>> >>> ________________________________
>> >>> From: Ivan Habunek 
>> >>> To: Logging General 
>> >>> Sent: Sunday, February 26, 2012 4:05 PM
>> >>> Subject: Updating the logging services web site
>> >>>
>> >>> Hi all,
>> >>>
>> >>> I would like to take some time to make the front page of the logging
>> >>> service project a bit more user friendly, informative and nicer
>> >>> looking.
>> >>>
>> >>> The main function of this page is to direct the user to each of the
>> >>> logging projects. I have made a quick mockup of the general design I
>> >>> had in mind (again using Bootstrap since I'm not a graphic designer)=
.
>> >>> There are only 3 pages so far, the main page, charter and team list.
>> >>> You can see them here (charter & team pages are in the "about"
>> >>> dropdown menu in the top bar):
>> >>> http://people.apache.org/~ihabunek/logging/
>> >>>
>> >>> I would like to gather everybody's opinion of what else should be
>> >>> included on the front page.
>> >>>
>> >>> In the new layout, I have dropped the logging services logo in favou=
r
>> >>> of the apache feather logo. They are quite similar, and, to my eyes,
>> >>> the plain feather logo just looks nicer and cleaner.
>> >>>
>> >>> IMO, the log4j companions may be better suited on the log4j site so =
I
>> >>> have not included them on the front page for now.
>> >>>
>> >>> So far, I gather that we need at least:
>> >>> - a short description of the logging services project to put in the
>> >>> big box on the front page
>> >>> - perhaps a longer description of the project (an 'about' page)
>> >>> - a short description of each sub project to put on the front page
>> >>>
>> >>> Also we should determine if any other content should be moved from t=
he
>> >>> current site. I have located several orphan pages which exist, but a=
re
>> >>> not linked to anywhere:
>> >>> http://logging.apache.org/charter.html (migrated)
>> >>> http://logging.apache.org/catalog.html
>> >>> http://logging.apache.org/guidelines.html
>> >>>
>> >>> Please let me know what you think.
>> >>>
>> >>> Best regards,
>> >>> Ivan
>> >>>
>> >>>
>
>