Blame Manual/repository-html/repository_15.html

ee1f37
ee1f37
<html>
ee1f37
ee1f37
ee1f37
Permission is granted to copy, distribute and/or modify this document
ee1f37
under the terms of the GNU Free Documentation License, Version 1.2 or
ee1f37
any later version published by the Free Software Foundation; with no
ee1f37
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
ee1f37
copy of the license is included in the section entitled GNU Free
ee1f37
Documentation License.  
ee1f37
-->
406f69
ee1f37
ee1f37
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
ee1f37
            Karl Berry  <karl@freefriends.org>
ee1f37
            Olaf Bachmann <obachman@mathematik.uni-kl.de>
ee1f37
            and many others.
ee1f37
Maintained by: Many creative people <dev@texi2html.cvshome.org>
ee1f37
Send bugs and suggestions to <users@texi2html.cvshome.org>
ee1f37
ee1f37
-->
ee1f37
<head>
5cb5a7
<title>CentOS Artwork Repository: 2.13 Filesystem/trunk/Identity/Models/Tpl/Promo/Web</title>
ee1f37
5cb5a7
<meta name="description" content="CentOS Artwork Repository: 2.13 Filesystem/trunk/Identity/Models/Tpl/Promo/Web">
5cb5a7
<meta name="keywords" content="CentOS Artwork Repository: 2.13 Filesystem/trunk/Identity/Models/Tpl/Promo/Web">
ee1f37
<meta name="resource-type" content="document">
ee1f37
<meta name="distribution" content="global">
ee1f37
<meta name="Generator" content="texi2html 1.76">
ee1f37
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
ee1f37
<style type="text/css">
ee1f37
ee1f37
@import "/home/centos/artwork/trunk/Identity/Models/Css/Texi2html/common.css";
ee1f37
ee1f37
a.summary-letter {text-decoration: none}
ee1f37
pre.display {font-family: serif}
ee1f37
pre.format {font-family: serif}
ee1f37
pre.menu-comment {font-family: serif}
ee1f37
pre.menu-preformatted {font-family: serif}
ee1f37
pre.smalldisplay {font-family: serif; font-size: smaller}
ee1f37
pre.smallexample {font-size: smaller}
ee1f37
pre.smallformat {font-family: serif; font-size: smaller}
ee1f37
pre.smalllisp {font-size: smaller}
ee1f37
span.sansserif {font-family:sans-serif; font-weight:normal;}
ee1f37
ul.toc {list-style: none}
ee1f37
-->
ee1f37
</style>
ee1f37
ee1f37
ee1f37
</head>
ee1f37
ee1f37
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
ee1f37
ee1f37
982d5c
[ < ]
982d5c
[ > ]
ee1f37
   
982d5c
[ << ]
982d5c
[ Up ]
5cb5a7
[ >> ]
ee1f37
   
ee1f37
   
ee1f37
   
ee1f37
   
56a476
[Top]
56a476
[Contents]
5cb5a7
[Index]
56a476
[ ? ]
ee1f37
982d5c
982d5c
5cb5a7

2.13 Filesystem/trunk/Identity/Models/Tpl/Promo/Web

ee1f37
ee1f37
982d5c
982d5c

2.13.1 Goals

982d5c
982d5c

Organize scalable vector graphics (svg) to help describe the CentOS

982d5c
web environment.
982d5c

ee1f37
982d5c
982d5c

2.13.2 The CentOS web environment

982d5c
982d5c

Inside CentOS corporate identity, the CentOS web environment is

982d5c
considered a promotion component. The CentOS web environment is formed
982d5c
by a central web application --to cover base needs (e.g., per-major
982d5c
release information like release notes, lifetime, downloads,
982d5c
documentation, support, security advisories, bugs, etc.)-- and many
982d5c
different free web applications --to cover specific needs (e.g.,
982d5c
wiki, mailing lists, etc.)--. 
982d5c

982d5c

The CentOS web environment is addressed to solve the following issues:

982d5c

ee1f37
    982d5c
  • One unique name and one unique visual style to all web
  • 982d5c
    applications used inside the web environment.
    982d5c
    982d5c
  • One-step navigation to web applications inside the environment.
  • 982d5c
    982d5c
  • High degree of customization to change the visual style of all
  • 982d5c
    web applications with few changes (e.g, updating just two or three
    982d5c
    images plus common style sheet [CSS] definitions).
    ee1f37
    ee1f37
    982d5c

    The CentOS project is attached to a monolithic corporate visual

    5cb5a7
    identity (see section Filesystem/trunk/Identity), where all visual manifestations
    982d5c
    have one unique name and one unique visual style. This way, the CentOS
    982d5c
    web environment has one unique name (the CentOS brand) and one unique
    982d5c
    visual style (the CentOS default theme) for all its visual
    982d5c
    manifestations, the web applications in this case.
    982d5c

    982d5c

    Since a maintainance point of view, achiving the one unique visual

    982d5c
    style inside CentOS web environment is not a simple task. The CentOS
    982d5c
    web environment is built upon many different web applications which
    982d5c
    have different visual styles and different internal ways to customize
    982d5c
    their own visual styles. For example: MoinMoin, the web application
    982d5c
    used to support the CentOS wiki (http://wiki.centos.org/) is
    982d5c
    highly customizable but Mailman (in its 2.x.x serie), the web
    982d5c
    application used to support the CentOS mailing list, doesn't
    982d5c
    support(1) a customization system that separates
    982d5c
    presentation from logic, similar to that used by MoinMoin.
    982d5c

    982d5c

    This visual style diversity complicates our goal of one unique visual

    982d5c
    style for all web applications. So, if we want one unique visual style
    982d5c
    for all web applications used, it is innevitable to modify the web
    982d5c
    applications in order to implement the CentOS one unique visual style
    982d5c
    customization in them. Direct modification of upstream applications is
    982d5c
    not convenient because upstream applications come with their one
    982d5c
    visual style and administrators take the risk of loosing all
    982d5c
    customization changes the next time the application be updated (since
    982d5c
    not all upstream web applications, used in CentOS web environment,
    982d5c
    separate presentation from logic).
    982d5c

    982d5c

    To solve the "one unique visual style" issue, installation and

    982d5c
    actualization of web applications --used inside CentOS web
    982d5c
    environment-- need to be independent from upstream web applications
    982d5c
    development line; in a way that CentOS web environment administrators
    982d5c
    can install and update web applications freely without risk of loosing
    982d5c
    the one unique visual style customization changes. 
    982d5c

    982d5c

    At the surface of this issue we can see the need of one specific yum

    982d5c
    repository to store CentOS web environment customized web applications.
    982d5c

    ee1f37
    982d5c
    982d5c

    2.13.2.1 Design model (without ads)

    ee1f37
    ee1f37
    982d5c
    982d5c

    2.13.2.2 Design model (with ads)

    982d5c
    982d5c
    982d5c
    982d5c

    2.13.2.3 HTML definitions

    982d5c
    982d5c
    982d5c
    982d5c

    2.13.2.4 Controlling visual style

    982d5c
    982d5c

    Inside CentOS web environment, the visual style is controlled by the

    982d5c
    following compenents:
    982d5c

    982d5c
    982d5c
    Webenv header background
    982d5c
    trunk/Identity/Themes/Motifs/$THEME/Backgrounds/Img/1024x250.png
    982d5c
    982d5c
    982d5c
    CSS definitions
    982d5c
    trunk/Identity/Themes/Models/Default/Promo/Web/CSS/stylesheet.css
    982d5c
    982d5c
    982d5c
    982d5c
    982d5c
    982d5c

    2.13.2.5 Producing visual style

    982d5c
    982d5c

    The visual style of CentOS web environment is defined in the following

    982d5c
    files:
    982d5c

    982d5c
    trunk/Identity/Themes/Motifs/$THEME/Backgrounds/Xcf/1024x250.xcf
    982d5c
    trunk/Identity/Themes/Motifs/$THEME/Backgrounds/Img/1024x250.png
    982d5c
    trunk/Identity/Themes/Motifs/$THEME/Backgrounds/Img/1024x250-bg.png
    982d5c
    trunk/Identity/Themes/Motifs/$THEME/Backgrounds/Tpl/1024x250.svg
    982d5c
    982d5c

    As graphic designer you use <tt>`1024x250.xcf'</tt> file to produce

    982d5c
    <tt>`1024x250-bg.png'</tt> file. Later, inside <tt>`1024x250.svg'</tt> file,
    982d5c
    you use the <tt>`1024x250-bg.png'</tt> file as background layer to draw
    982d5c
    your vectorial design. When you consider you artwork ready, use the
    982d5c
    centos-art.sh script, as described below, to produce the
    982d5c
    visual style controller images of CentOS web environment.
    982d5c

    982d5c
    centos-art render --entry=trunk/Identity/Themes/Motifs/$THEME/Backgrounds --filter='1024x250'
    982d5c
    982d5c

    Once you have rendered required image files, changing the visual style

    982d5c
    of CentOS web environment is a matter of replacing old image files
    982d5c
    with new ones, inside webenv repository file system structure. The
    982d5c
    visual style changes will take effect the next time customization line
    982d5c
    of CentOS web applications be packaged, uploded, and installed from
    982d5c
    [webenv] or [webenv-test] repositories.
    982d5c

    982d5c
    982d5c
    982d5c

    2.13.2.6 Navigation

    982d5c
    982d5c

    Inside CentOS web environment, the one-step navegation between web

    982d5c
    applications is addressed using the web environment navigation bar.
    982d5c
    The web environment navigation bar contains links to main applications
    982d5c
    and is always visible no matter where you are inside the web
    982d5c
    environment.
    982d5c

    982d5c
    982d5c
    982d5c

    2.13.2.7 Development and release cycle

    982d5c
    982d5c

    The CentOS web environment development and relase cycle is described

    982d5c
    below: 
    982d5c

    982d5c
    982d5c
    Download
    982d5c
    982d5c

    The first action is download the source code of web applications we

    982d5c
    want to use inside CentOS web environment.
    982d5c

    982d5c
    Important

    Important

    The source location from which web application are

    982d5c
    downloaded is very important. Use SRPMs from CentOS [base]
    982d5c
    and [updates] repositories as first choise, and third party
    982d5c
    repositories (e.g. RPMForge, EPEL, etc.) as last resource.
    982d5c

    982d5c
    982d5c
    982d5c
    Prepare
    982d5c
    982d5c

    Once web application source code has been downloaded, our duty is

    982d5c
    organize its files inside <samp>`webenv'</samp> version controlled repository.
    982d5c

    982d5c

    When preparing the structure keep in mind that different web

    982d5c
    applications have different visual styles, and also different ways to
    982d5c
    implement it. A convenient way to organize the file system structure
    982d5c
    would be create one development line for each web application we use
    982d5c
    inside CentOS web environment. For example, consider the following
    982d5c
    file system structure:
    982d5c

    982d5c
    https://projects.centos.org/svn/webenv/trunk/
    982d5c
    |-- WebApp1/
    982d5c
    |   |-- Sources/
    982d5c
    |   |   `-- webapp1-0.0.1/
    982d5c
    |   |-- Rpms/
    982d5c
    |   |   `-- webapp1-0.0.1.rpm
    982d5c
    |   |-- Srpms/
    982d5c
    |   |   `-- webapp1-0.0.1.srpm
    982d5c
    |   `-- Specs/
    982d5c
    |       `-- webapp1-0.0.1.spec
    982d5c
    |-- WebApp2/
    982d5c
    `-- WebAppN/
    982d5c
    982d5c
    982d5c
    Customize
    982d5c
    982d5c

    Once web applications have been organized inside the version

    982d5c
    controlled repository file system, use subversion to create the CentOS
    982d5c
    customization development line of web applications source code.  For
    982d5c
    example, using the above file system structure, you can create the
    982d5c
    customization development line of <tt>`webapp1-0.0.1/'</tt> with the
    982d5c
    following command:
    982d5c

    982d5c
    svn cp trunk/WebApp1/Sources/webapp1-0.0.1 trunk/WebApp1/Sources/webapp1-0.0.1-webenv
    982d5c
    982d5c

    The command above creates the following structure:

    982d5c

    982d5c
    https://projects.centos.org/svn/webenv/trunk/
    982d5c
    |-- WebApp1/
    982d5c
    |   |-- Sources/
    982d5c
    |   |   |-- webapp1-0.0.1/
    982d5c
    |   |   `-- webapp1-0.0.1-webenv/
    982d5c
    |   |-- Rpms/
    982d5c
    |   |   `-- webapp1-0.0.1.rpm
    982d5c
    |   |-- Srpms/
    982d5c
    |   |   `-- webapp1-0.0.1.srpm
    982d5c
    |   `-- Specs/
    982d5c
    |       `-- webapp1-0.0.1.spec
    982d5c
    |-- WebApp2/
    982d5c
    `-- WebAppN/
    982d5c
    982d5c

    In the above structure, the <tt>`webapp1-0.0.1-webenv/'</tt> directory is

    982d5c
    the place where you customize the visual style of
    982d5c
    <tt>`webapp1-0.0.1/'</tt> web application. 
    982d5c

    982d5c
    Info

    Tip

    Use the diff command of Subversion between

    982d5c
    CentOS customization and upstream development lines to know what you
    982d5c
    are changing exactly.
    982d5c

    982d5c
    982d5c
    982d5c
    Build packages
    982d5c
    982d5c

    When web application has been customized, build the web application

    982d5c
    RPM and SRPM using the source location with <samp>`-webenv'</samp> prefix. 
    982d5c

    982d5c
    https://projects.centos.org/svn/webenv/trunk/
    982d5c
    |-- WebApp1/
    982d5c
    |   |-- Sources/
    982d5c
    |   |   |-- webapp1-0.0.1/
    982d5c
    |   |   `-- webapp1-0.0.1-webenv/
    982d5c
    |   |-- Rpms/
    982d5c
    |   |   |-- webapp1-0.0.1.rpm
    982d5c
    |   |   `-- webapp1-0.0.1-webenv.rpm
    982d5c
    |   |-- Srpms/
    982d5c
    |   |   |-- webapp1-0.0.1.srpm
    982d5c
    |   |   `-- webapp1-0.0.1-webenv.srpm
    982d5c
    |   `-- Specs/
    982d5c
    |       |-- webapp1-0.0.1.spec
    982d5c
    |       `-- webapp1-0.0.1-webenv.spec
    982d5c
    |-- WebApp2/
    982d5c
    `-- WebAppN/
    982d5c
    982d5c
    982d5c
    Release for testing
    982d5c
    982d5c

    When the customized web application has been packaged, make packages

    982d5c
    available for testing and quality assurance. This can be achives using
    982d5c
    a [webenv-test] yum repository. 
    982d5c

    982d5c
    info

    Note

    The [webenv-test] repository is not shipped inside

    982d5c
    CentOS distribution default yum configuraiton. In order to use
    982d5c
    [webenv-test] repository you need to configure it first.
    982d5c

    982d5c
    982d5c

    If some problem is found to install/update/use the customized version

    982d5c
    of web application, the problem is notified somewhere (a bugtracker
    982d5c
    maybe) and the customization face is repated in order to fix the
    982d5c
    problem. To release the new package add a number after <samp>`-webenv'</samp>
    982d5c
    prefix. For example, if some problem is found in
    982d5c
    <tt>`webapp1-0.0.1-webenv.rpm'</tt>, when it be fixed the new package will
    982d5c
    be named <tt>`webapp1-0.0.1-webenv-1.rpm'</tt>. If a problem is found in
    982d5c
    <tt>`webapp1-0.0.1-webenv-1.rpm'</tt>, when it be fixed the new package
    982d5c
    will be named <tt>`webapp1-0.0.1-webenv-2.rpm'</tt>, and so on.
    982d5c

    982d5c

    The "customization -- release for testing" process is repeated

    982d5c
    until CentOS quality assurance team considers the package is ready for
    982d5c
    production.
    982d5c

    982d5c
    982d5c
    Release for production
    982d5c
    982d5c

    When customized web application packages are considered ready for

    982d5c
    production they are moved from [webenv-test] to [webenv] repository.
    982d5c
    This action is commited by CentOS quality assurance team.
    982d5c

    982d5c
    info

    Note

    The [webenv] repository is not shipped inside CentOS

    982d5c
    distribution default yum configuraiton. In order to use [webenv]
    982d5c
    repository you need to configure it first.
    982d5c

    982d5c
    982d5c
    982d5c
    982d5c
    982d5c
    982d5c

    2.13.2.8 The [webenv-test] repository

    982d5c
    982d5c
    /etc/yum.repos.d/CentOS-Webenv-test.repo
    982d5c
    982d5c
    [webenv-test]
    982d5c
    name=CentOS-$releasever - Webenv-test
    982d5c
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=webenv-test
    982d5c
    #baseurl=http://mirror.centos.org/centos/$releasever/webenv-test/$basearch/
    982d5c
    gpgcheck=1
    982d5c
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever
    982d5c
    enabled=1
    982d5c
    priority=10
    982d5c
    982d5c
    982d5c
    982d5c

    2.13.2.9 The [webenv] repository

    982d5c
    982d5c
    /etc/yum.repos.d/CentOS-Webenv.repo
    982d5c
    982d5c
    [webenv]
    982d5c
    name=CentOS-$releasever - Webenv
    982d5c
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=webenv
    982d5c
    #baseurl=http://mirror.centos.org/centos/$releasever/webenv/$basearch/
    982d5c
    gpgcheck=1
    982d5c
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-$releasever
    982d5c
    enabled=1
    982d5c
    priority=10
    982d5c
    982d5c
    982d5c
    982d5c

    2.13.2.10 Priority configuration

    982d5c
    982d5c

    Both [webenv] and [webenv-test] repositories update packages inside

    982d5c
    CentOS [base] and CentOS [updates] repositories.
    982d5c

    ee1f37
    ee1f37
    982d5c

    2.13.3 Usage

    ee1f37
    ee1f37
      ee1f37
    • ...
    • ee1f37
      ee1f37
      ee1f37
      ee1f37
      982d5c

      2.13.4 See also

      ee1f37
      982d5c
      5cb5a7
      2.11 Filesystem/trunk/Identity/Models/Img/Promo/Web  
      982d5c
      982d5c
      ee1f37
      ee1f37
      ee1f37
      ee1f37
      [ < ]
      56a476
      [ > ]
      ee1f37
         
      982d5c
      [ << ]
      982d5c
      [ Up ]
      5cb5a7
      [ >> ]
      ee1f37
      ee1f37

      ee1f37
       <font size="-1">
      406f69
        This document was generated on March, 1 2011 using texi2html 1.76.
      ee1f37
       </font>
      ee1f37
       
      ee1f37
      ee1f37

      ee1f37
      </body>
      ee1f37
      </html>