Web site theme

Galaxia provides a theme for MoinMoin wiki engine intended to be used in gNewSense official Web site. This theme is based on the default “modern” theme distributed with MoinMoin 1.9.x.

Home page with blue header version

Home page with blue header version

Note

Currently, the theme looks like in the image above, except for the section below the header and breadcrumbs. I still need to figure out how to customize that part only for the home page.

Installation

This theme is being tested with the quick, or desktop, installation provided by MoinMoin 1.9.x. The following steps are for installing the theme in such a configuration. Note that these steps assume you have a copy of Galaxia in which you’ll find the website-theme directory with the appropriate files.

  1. Download MoinMoin 1.9.x.

  2. Put galaxia/website-theme/galaxia.py file in the moin-1.9.x/wiki/data/plugin/theme directory.

  3. Put galaxia/website-theme/galaxia directory in moin-1.9.x/MoinMoin/web/static/htdocs.

  4. Modify moin-1.9.x/wikiconfig.py file to assign the following value to the logo_string variable:

    logo_string = u'<img src="%s/galaxia/img/gnewsense.png" alt="gNewSense">' % url_prefix_static
    
  5. Add the following attribute to moin-1.9.x/wikiconfig.py to be able to use the translation widget.

    translation_languages = {
        'de': u"Deutsch",
        'en': u"English",
        'es': u"Español",
        'fr': u"Français",
        'it': u"Italiano",
    }
    
  6. Run moin-1.9.x/wikiserver.py.

  7. Open your browser and go to http://localhost:8080/.

  8. Create a user by clicking on “Login”.

  9. Login as the user you created and select galaxia theme from your user preferences.

Enabling the navigation bar

Wiki header without bookmarks

Wiki header without bookmarks

Wiki header with bookmarks

Wiki header with bookmarks

Galaxia theme doesn’t use MoinMoin Navigation bar by default, but you can still enable this feature.

  1. Open galaxia/website-theme/galaxia.py.
  2. Look for the def header(self, d, **kw) method and uncomment the line #self.navibar() by removing the # character.
  3. Save the file and restart MoinMoin to see the changes.

Table Of Contents

Previous topic

Promotional art

Next topic

Mailman theme