Giter Site home page Giter Site logo

website's Introduction

Website generator for phpMyAdmin

This is currently in alpha state, but later it will hopefully replace phpMyAdmin homepage.

Requirements

Python - http://www.python.org/
(2.7 tested, other should work also)
Genshi - http://genshi.edgewall.org/
(0.6.0 tested)
python-feedparser - http://code.google.com/p/feedparser/
(5.1 tested)
python-dateutil - http://labix.org/python-dateutil
(1.5 tested)

Security announcements

To create a new security announcement, copy templates/security/_PMASA_ to templates/security/PMASA-YYYY-N and edit its contents.

Page generating

Each page has its own template. For most things it means inclusion of other templates to generate full page. These partial includes should be named with underscore as first character (eg. _page.tpl).

To add a new page, simply put a file named something.tpl to the templates directory and it will be automatically used as a template on next run.

All pages should at the end include _page.tpl to get layout and other common things. You can see example page at templates/_sample_.tpl

Static data required for generating pages is stored in data/ folder.

Menu

Menu is configured in data/menu.py, the first element always means page name (extension is added automatically) second menu item title.

Themes

Themes require additional metadata, which is stored in data/themes.py.

Awards

All awards are listed in data/awards.py.

Screenshots

All screenshots are listed in data/screenshots.py.

Markup rules

(See genshi docs for more details).

  • $ is special char to indicate template variable, to escape it, use $$
  • comments which first char is ! (eg. <!--! comment -->) will not be in output

Special pages

Directory static contains some special pages, which have to be present on the website. First there is version.php script, which shows most current phpMyAdmin version, which is then offered as an update. The rest are currently just compatibility files with old website - security.php, which redirects security issues to new pages and _redirect.tpl which is used for generating redirects based on data/redirects.py.

Generating website

The website itself is rendered using render.py, here are options which are currently used for http://www.phpmyadmin.net/home_page/:

./render.py \
    --quiet \
    --server http://www.phpmyadmin.net \
    --base-url /home_page/ \
    --quiet-cache \
    --log render.log \
    --extension php

If you want to make log visible on website, copy it to output folder:

cp render.log output/

And finally rsync it to sourceforge:

rsync -az --delete output/ user,[email protected]:htdocs/home_page/

Automatic build

There is configured automatic build of website, which runs every hour. In case website is not updated, you might want to check the build log for any possible failures:

http://www.phpmyadmin.net/home_page/render.log

License

The website generator is licensed under GNU GPL version 2 or later.

Website itself uses mootools <http://mootools.net/>, slimbox <http://www.digitalia.be/software/slimbox>, fader and sorting_table <http://madhatted.com/2008/6/20/the-joy-of-tables-on-cows> which are licensed under terms of MIT license.

The website content is licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

website's People

Contributors

nijel avatar lem9 avatar ruleant avatar helmo avatar mynetx avatar ibennetch avatar roccivic avatar madhuracj avatar atul516 avatar robert-scheck avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.