GettingStartedWithGimpWeb

The gimp.org website (GimpWeb) is built from the module gimp-web on the GNOME Subversion server. To work on the website, you need to obtain this module, then install it. This creates a working copy of the website in another folder on your system. You then set up a local web server (apache) and then access your copy of the site with your web browser. This allows to see the changes you have done and then look at it so there is no problem before commiting it or sending it

  1. Preliminaries
  2. Getting the source
  3. Setting up apache
  4. Installing the site
  5. Administration of the site
  6. News
  7. Templates
  8. Bugs
  9. Patches

Preliminaries

You will need subversion to download the source, python to install it, and apache or apache2 to run a local webserver to view your changes. Your distro documentation should tell you how to install packages. For example, on debian-based distros, you need to do:

$ sudo apt-get install subversion
$ sudo apt-get install python
$ sudo apt-get install apache2

Getting the source

Next download the source from the GNOME Subversion repository. This will create a folder 'gimp-web' in your current folder, and everything you download will go into that. Warning at time of writing, the module is about 54MB.

$ svn co http://svn.gnome.org/svn/gimp-web/trunk gimp-web'

Setting up apache

Installing the apache or apache2 package should start the webserver automatically. Try http://localhost/ in your web browser. On some distros this will give you information about which folders hold configuration files and web pages.

You need to enable SSI (Server-side includes) on your apache server. See [WWW] https://wiki.ubuntu.com/ServerSideIncludes for instructions for apache2.

SSI needs to be configured with the [WWW] XBitHack, and it needs to treat both .html and .xhtml files as files to be parsed. The default apache configuration probably won't be set up for .xhtml, so you may need to add a line AddType text/html   .xhtml somewhere suitable.

If you want a small HOWTO for the SSI support you can find it at [WWW] http://beta.fluff.ath.cx/gnu-linux/howto/apache_ssi.html, and here is a example available in GettingStartedWithGimpWeb/HttpdConfExample.

You also need to set apache up in such a way that the /includes virtual directory goes to the correct place. There are several ways to do this: a brutal hack with a directory alias is one way. Another is to set up a subdomain just for the gimp website. See [WWW] https://wiki.ubuntu.com/LocalhostSubdomain for instructions on this.

Quick apache troubleshooting:

After you have setup apache with the supported options required by the website then you will need to find out what owner is used by apache. The different owners could be "www-data", "apache" etc. There are several ways to find this:

ps aux | grep apache2

will list the processes involved in apache.

Alternatively, in the apache configuration folder (probably /etc/apache2) , do

grep User *

Installing the site

NOTE! In a very near future this might change a lot depending on how the website will change in the source. Some changes might be that the SSI support is not needed for the normal pages. So the install instruction above is used for the SSI things that are used at the moment (2003-09-09). So this might change soon.

Administration of the site

All the administration parts are done via a few scripts and pages. The main page of administration is the [WWW] http://www.gimp.org/admin/ page where there are howtos and some other useful stuff. Check it out a little and you will see that there are some cool stuff in there.

News

The way that the new website is handling news and how news are edited to the site is via the site mentioned above. But there is one thing you need to do before you can start to edit the news. Here is the steps you need to do before the news are being showed on the site.

There is a howto on the website also, take a look at: [WWW] http://www.gimp.org/admin/news/howto-news.html

Templates

The templates on the website is there to be used for new files being created, all the new sites being added should go with the templates. Everybody is responsible for the templates to be correct for thoose sections that has a template. Sometimes there are different templates depending on what the section is going to include. Example: template.htrw, howto-template.htrw and so on.

In the files there are also examples of how things work on the site and what tags to use for what to be showed on the site. Follow the tag examples and follow the template build up and everything should be fine.

Bugs

* [WWW] bugzilla listing for gimp-web

Patches

See TipsForContributing for how to make patches.

Copyright © Niklas Mattisson <scizzo-at-gimp-dot-org>

last edited 2007-04-11 08:03:31 by RaphaelQuinet