From: martin f. krafft Date: Tue, 25 Jan 2011 13:46:18 +0000 (+0100) Subject: initial commit X-Git-Url: https://git.madduck.net/debian/web/pdo.git/commitdiff_plain/d6843afab4164cda7e9437cfbd9c7d7b77d0279a initial commit Signed-off-by: martin f. krafft --- d6843afab4164cda7e9437cfbd9c7d7b77d0279a diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7cf7bcf --- /dev/null +++ b/Makefile @@ -0,0 +1,38 @@ +# Makefile -- helper for the site +# +# Copyright (c) martin f. krafft +# Released under the terms of the Artistic Licence 2.0 +# +# Part of the source code for the site http://people.debian.org/~madduck/ +# +# svn: http://svn.madduck.net/pub/debian/web/people.debian.org--madduck/ +# + +all: html/__prune__ html/css html/js html/img html/gpg html/graphs + r2w -w +.PHONY: all + +all-upstream: UPSTREAM = $(HOME)/debian/pkg/rest2web/upstream.trunk +all-upstream: html/__prune__ html/css html/img + PYTHONPATH=$(UPSTREAM) python $(UPSTREAM)/r2w.py -w +.PHONY: all-upstream + +dist: TARGETHOST = people.debian.org +dist: TARGETDIR = public_html +dist: all + LC_ALL=C rsync -r --exclude talks/ --exclude .\*.swp --delete html/ $(TARGETHOST):$(TARGETDIR) + LC_ALL=C ssh $(TARGETHOST) chmod -R og+rX $(TARGETDIR) + +html: + mkdir $@ + +html/__prune__: html + touch $@ + +html/css html/img html/gpg html/graphs html/js: html + tar -cf- --exclude=.svn $(@F) | tar -xf- -C $(@D) +.PHONY: html/css html/img html/gpg html/graphs html/js + +clean: + rm -rf html +.PHONY: clean diff --git a/credits.txt b/credits.txt new file mode 100644 index 0000000..c90fc83 --- /dev/null +++ b/credits.txt @@ -0,0 +1,73 @@ +restindex + encoding: utf8 + template-encoding: utf8 + crumb: Credits +/restindex + +.. credits.txt -- site credits + + Copyright © martin f. krafft + Released under the terms of the Creative Commons Attribution- + NonCommercial-ShareAlike 2.5 Licence: + http://creativecommons.org/licenses/by-nc-sa/2.5/ + + Part of the source code for the site http://people.debian.org/~madduck/ + + svn: http://svn.madduck.net/pub/debian/web/people.debian.org--madduck/ + +Site credits +============ + +This site was built with a number of open-source software products. I feel it +is important to give enough credit to the involved people, who spend their +free time developing and supporting these software suites. + +Open-source software has numerous advantages over proprietary, commercial +products: + +- It is developed by users of the software, not people trying to make money by + selling it. As a direct consequence, it doesn't suffer from the marketing + syndrome, and it provides the features that users need, not those which the + company wants to sell. + +- The source code is available to everyone. Not only does this mean that + anyone can modify the product to better suit their needs, it also greatly + facilitates problem-solving, since one can inspect the source of any + problem. + +- Open-source software has a large community using and supporting it. Direct + help from the developers is absolutely no rarity, and if they are not + available, then numerous (experienced) users are ready to help one, and to + work with one to solve any problems. + +- And last, but very much not least: Open-source software is free. No + complicated and capitalistic licensing models, no "software assurance" or + similarly flawed license subscriptions, no problems with upgrades, and a lot + more money left for other things. + +As said, this site was created with a number of open-source software suites. +In particular, I would like to thank: + +- The `Debian`_ team for the operating system (who would have thought?). Debian + is copyright © by `Software in the Public Interest`_. + +.. _Debian: http://debian.org +.. _Software in the Public Interest: http://spi-inc.org + +- The `Python`_ team for the programming language. Python is copyright © + by the `Python Software Foundation`_ + +.. _Python: http://python.org +.. _Python Software Foundation: http://python.org/psf + +- Michael Foord for `rest2web`_, the site builder framework. rest2web is © + by `Voidspace`_. + +.. _rest2web: http://www.voidspace.org.uk/python/rest2web/ +.. _Voidspace: http://www.voidspace.org.uk/ + +- The `Apache`_ team for the web server. Apache is copyright © by the `Apache + Software Foundation`_. + +.. _Apache: http://httpd.apache.org +.. _Apache Software Foundation: http://apache.org/foundation/ diff --git a/css/base.css b/css/base.css new file mode 100644 index 0000000..88d0881 --- /dev/null +++ b/css/base.css @@ -0,0 +1,160 @@ +/* base.css -- basic CSS definitions + * + * Copyright (c) martin f. krafft + * Released under the terms of the Creative Commons Attribution- + * NonCommercial-ShareAlike 2.5 Licence: + * http://creativecommons.org/licenses/by-nc-sa/2.5/ + * + * Part of the source code for the site http://people.debian.org/~madduck/ + * + * svn: http://svn.madduck.net/pub/debian/web/people.debian.org--madduck/ + */ + +body { + background: #f3f2f0 url(http://people.debian.org/~madduck/img/bg.jpg) 0 0 no-repeat fixed; + color: #006; + font-family: RotisSansSerif, "Bitstream Vera Sans", Helvetica, Arial, sans-serif; + margin: 1em auto; + width: 36em; +} + +#header { + background-color: #006; + color: white; + padding: 0.5em 1em; + border: 5px double #f3f2f0; + margin: 0 -1em; +} + +#header p { + margin: 0; + font-family: RotisSemiSerif, "Bitstream Vera Serif", "Times New Roman", Times, serif; + text-align: center; +} + +#header .title { + font-size: 150%; +} + +#content p { + text-align: justify; +} + +#bottom { + margin-top: 4em; + border-width: 3px; + border-color: #f3f2f0; + border-style: groove; + color: #aad; + background-color: transparent; +} + +#bottom a:link, #bottom a:visited { + color: #aad; + background-color: transparent; +} + +#bottom:hover, #bottom:focus { + color: #006; + background-color: transparent; +} + +#bottom:hover a:link, #bottom:hover a:visited, +#bottom:focus a:link, #bottom:focus a:visited { + color: #33c; + background-color: transparent; +} + +#bottom:hover a:active, #bottom:hover a:hover, #bottom:hover a:focus, +#bottom:focus a:active, #bottom:focus a:hover, #bottom:focus a:focus { + color: #66f; + background-color: transparent; +} + +#bottom .border { + height: 0px; + border-top: 3px ridge #006; +} + +#bottom p { + font-size: 70%; + padding: 0 0.5em; +} + +img { + border-style: none; +} + +img.floatright { + margin: 1em 0 1em 2em; + float: right; +} + +img.floatleft { + margin: 1em 2em 1em 0; + float: left; +} + +a, a:visited { + color: #33c; + background-color: transparent; + text-decoration: none; +} + +a:hover, a:focus, a:active { + color: #66f; + background-color: transparent; + text-decoration: underline; +} + +h1, h2, h3, h4, h5, h6 { + font-family: RotisSemiSerif, "Bitstream Vera Serif", "Times New Roman", Times, serif; + color: #33c; + background-color: transparent; +} + +h1 a:hover, a:focus, a:active, +h2 a:hover, a:focus, a:active, +h3 a:hover, a:focus, a:active, +h4 a:hover, a:focus, a:active, +h5 a:hover, a:focus, a:active, +h6 a:hover, a:focus, a:active { + text-decoration: none; + color: #33c; + background-color: transparent; +} + +h1 { + border-bottom: 1px solid #006; +} + +code { + margin-left: 1em; + display: block; +} + +.textmode { + display: none; +} + +* html body { + /* make font smaller in IE */ + font-size: 80%; +} + +.ie-note { + /* display in IE only */ + display: block; + padding: 1em 2em; + margin: 1em; + border: 3px dotted #900; + font-size: smaller; + color: #366; + background-color: transparent; + text-align: justify; +} + +.ie-note a { + color: #900; + background-color: transparent; +} diff --git a/gpg/.htaccess b/gpg/.htaccess new file mode 100644 index 0000000..7b0d2d3 --- /dev/null +++ b/gpg/.htaccess @@ -0,0 +1 @@ +RedirectMatch /.*/gpg(/.*) http://alioth.debian.org/~madduck/gpg$1 diff --git a/graphs/organigram/.htaccess b/graphs/organigram/.htaccess new file mode 100644 index 0000000..2d30858 --- /dev/null +++ b/graphs/organigram/.htaccess @@ -0,0 +1 @@ +RedirectMatch /.*organigram(/.*) http://git.madduck.net/v/debian/graphs/organigram.git diff --git a/graphs/package-cycle/.htaccess b/graphs/package-cycle/.htaccess new file mode 100644 index 0000000..10a231b --- /dev/null +++ b/graphs/package-cycle/.htaccess @@ -0,0 +1 @@ +RedirectMatch /.*package-cycle(/.*) http://git.madduck.net/v/debian/graphs/package-cycle.git diff --git a/graphs/timeline/.htaccess b/graphs/timeline/.htaccess new file mode 100644 index 0000000..3717bd8 --- /dev/null +++ b/graphs/timeline/.htaccess @@ -0,0 +1 @@ +RedirectMatch /.*timeline(/.*) http://git.madduck.net/v/debian/graphs/timeline.git diff --git a/html/.gitignore b/html/.gitignore new file mode 100644 index 0000000..fc32f2e --- /dev/null +++ b/html/.gitignore @@ -0,0 +1,3 @@ +/* +!/__prune__ +!/.gitignore diff --git a/html/__prune__ b/html/__prune__ new file mode 100644 index 0000000..e69de29 diff --git a/img/bg.jpg b/img/bg.jpg new file mode 100644 index 0000000..e320130 Binary files /dev/null and b/img/bg.jpg differ diff --git a/img/css.png b/img/css.png new file mode 100644 index 0000000..99bcd66 Binary files /dev/null and b/img/css.png differ diff --git a/img/portrait.png b/img/portrait.png new file mode 100644 index 0000000..8d602dd Binary files /dev/null and b/img/portrait.png differ diff --git a/img/xhtml1.png b/img/xhtml1.png new file mode 100644 index 0000000..38ac9c5 Binary files /dev/null and b/img/xhtml1.png differ diff --git a/imprint.txt b/imprint.txt new file mode 100644 index 0000000..bff59e3 --- /dev/null +++ b/imprint.txt @@ -0,0 +1,92 @@ +restindex + encoding: utf8 + template-encoding: utf8 + page-title: Imprint +/restindex + +.. imprint.txt -- site imprint + + Copyright © martin f. krafft + Released under the terms of the Creative Commons Attribution- + NonCommercial-ShareAlike 2.5 Licence: + http://creativecommons.org/licenses/by-nc-sa/2.5/ + + Part of the source code for the site http://people.debian.org/~madduck/ + + svn: http://svn.madduck.net/pub/debian/web/people.debian.org--madduck/ + +Operation & responsibility +========================== + +Solely responsible for the content underneath +http://people.debian.org/~madduck/ is Martin F. Krafft . + +The web server is hosted by the `Debian project`_. + +.. _Debian project: http://debian.org + +Please stop by the `site credits `_ at your convenience. + +Copyright +========= + +Concepts, content, design, and logic of this web site are protected by +copyright laws. + +This site is copyright © Martin F. Krafft. Concepts, content, design, and +logic are herewith released under the terms of the `Creative Commons +Attribution - NonCommercial - ShareAlike 2.5 Licence +`_. + +You can obtain the source code for this site with `Subversion`_ from +http://svn.madduck.net/pub/debian/web/people.debian.org--madduck/ . I use `rest2web`_ to generate the HTML pages +from the `restructured text`_ sources. + +.. _Subversion: http://subversion.tigris.org/ +.. _rest2web: http://www.voidspace.org.uk/python/rest2web/ +.. _restructured text: http://docutils.sourceforge.net/rst.html + +All products mentioned on these pages are trademarks of their respective +owners, where appropriate. + +Disclaimer +========== + +Although every effort has been made to verify the accuracy of information +provided on this web site, mistakes or confusions may occur. The author, +Martin F. Krafft, does not assume liability, or responsibility over the +relevance and completeness of the information provided. Some of the materials +and information accessible through this web site are provided by third +parties. The author has no influence on contents provided by third parties and +therefore has no responsibility whatsoever for these contents. The author +shall under no circumstances be held liable for contents provided by third +parties which do not comply with the laws applicable in your country. The +author reserves the right to change the contents or functionality of this +website at any time. + +The author herewith distances himself from any content of sites linking to or +linked from this web site. + +Extracts of the information in the web site may be reviewed, reproduced or +translated for research or private study but not for sale or for use in +conjunction with commercial purposes. Any use of information in the web site +should be accompanied by an acknowledgment of this web site as the source, +citing the uniform resource locator (URL) of the article. Reproduction, +translation or any use of this website requires explicit prior authorization +in writing from the author. + +Any mention of specific companies or of certain manufacturers' products on +this web site does not imply that they are endorsed or recommended by the +author in preference to others of a similar nature that are not mentioned. +Errors and omissions excepted, the names of proprietary products are +distinguished by initial capital letters. + +Logging of access data +====================== + +Access to the web server hosting this site is logged. By interacting with the +site, you agree to the storage of date and time of access, requested document, +IP address, and the browser identification (incl. operating system). These +data are stored anonymously and securely, and used exclusively for statistical +analysis. No information or data is ever made available to third parties +except in the case of legal dispute or obligation. diff --git a/index.txt b/index.txt new file mode 100644 index 0000000..f91f5ee --- /dev/null +++ b/index.txt @@ -0,0 +1,55 @@ +restindex + encoding: utf-8 + template-encoding: utf-8 + page-title: Main +/restindex + +.. index.txt -- main (intro) page + + Copyright © martin f. krafft + Released under the terms of the Creative Commons Attribution- + NonCommercial-ShareAlike 2.5 Licence: + http://creativecommons.org/licenses/by-nc-sa/2.5/ + + Part of the source code for the site http://people.debian.org/~madduck/ + + svn: http://svn.madduck.net/pub/debian/web/people.debian.org--madduck/ + +.. image:: img/portrait.png + :class: floatright + :alt: Portrait Martin F. Krafft + +Go to: + +- my `GPG public key `_. +- my book, `The Debian System -- Concepts and Techniques`_, released in June + 2005 +- Debian-related `talks`_ I've given +- the page describing my `Ph.D. research`_ (on Debian) +- my `blog`_, with sections on `Debian`_ and `my book`_ +- my `APT archive`_ (preliminary packages) +- my `developer page`_ (list of my packages) +- my `Debian wiki page`_ +- `graphs `_: + + - `graph of the Debian organisation`_ + - `graph of the life cycle of a Debian package`_ + - `graph of the timeline of Debian releases`_ + +- the `netconf project's homepage`_ +- the `vcs-pkg project's homepage`_ + +.. _The Debian System -- Concepts and Techniques: http://debiansystem.info +.. _APT archive: http://debian.madduck.net/repo/ +.. _blog: http://blog.madduck.net/ +.. _Debian: http://blog.madduck.net/debian/ +.. _my book: http://blog.madduck.net/debianbook/ +.. _developer page: http://qa.debian.org/developer.php?login=madduck&comaint=yes +.. _graph of the Debian organisation: graphs/organigram/ +.. _graph of the life cycle of a Debian package: graphs/package-cycle/ +.. _graph of the timeline of Debian releases: graphs/timeline/ +.. _Debian wiki page: http://wiki.debian.org/madduck +.. _Ph.D. research: http://martin-krafft.net/phd/ +.. _talks: talks/ +.. _netconf project's homepage: http://netconf.alioth.debian.org +.. _vcs-pkg project's homepage: http://vcs-pkg.org diff --git a/js/event-registration.js b/js/event-registration.js new file mode 100644 index 0000000..d2c2afd --- /dev/null +++ b/js/event-registration.js @@ -0,0 +1,166 @@ +// written by Dean Edwards, 2005 +// with input from Tino Zijdel, Matthias Miller, Diego Perini +// http://dean.edwards.name/weblog/2005/10/add-event/ + +function addEvent(element, type, handler) { + // Modification by Tanny O'Haley, http://tanny.ica.com to add the + // DOMContentLoaded for all browsers. + if (type == "DOMContentLoaded" || type == "domload") { + addDOMLoadEvent(handler); + return; + } + + if (element.addEventListener) { + element.addEventListener(type, handler, false); + } else { + // assign each event handler a unique ID + if (!handler.$$guid) handler.$$guid = addEvent.guid++; + // create a hash table of event types for the element + if (!element.events) element.events = {}; + // create a hash table of event handlers for each element/event pair + var handlers = element.events[type]; + if (!handlers) { + handlers = element.events[type] = {}; + // store the existing event handler (if there is one) + if (element["on" + type]) { + handlers[0] = element["on" + type]; + } + } + // store the event handler in the hash table + handlers[handler.$$guid] = handler; + // assign a global event handler to do all the work + element["on" + type] = handleEvent; + } +}; +// a counter used to create unique IDs +addEvent.guid = 1; + +function removeEvent(element, type, handler) { + if (element.removeEventListener) { + element.removeEventListener(type, handler, false); + } else { + // delete the event handler from the hash table + if (element.events && element.events[type]) { + delete element.events[type][handler.$$guid]; + } + } +}; + +function handleEvent(event) { + var returnValue = true; + // grab the event object (IE uses a global event object) + event = event || fixEvent(((this.ownerDocument || this.document || this).parentWindow || window).event); + // get a reference to the hash table of event handlers + var handlers = this.events[event.type]; + // execute each event handler + for (var i in handlers) { + this.$$handleEvent = handlers[i]; + if (this.$$handleEvent(event) === false) { + returnValue = false; + } + } + return returnValue; +}; + +function fixEvent(event) { + // add W3C standard event methods + event.preventDefault = fixEvent.preventDefault; + event.stopPropagation = fixEvent.stopPropagation; + return event; +}; +fixEvent.preventDefault = function() { + this.returnValue = false; +}; +fixEvent.stopPropagation = function() { + this.cancelBubble = true; +}; + +// End Dean Edwards addEvent. + +// Tino Zijdel - crisp@xs4all.nl This little snippet fixes the problem that the onload attribute on +// the body-element will overwrite previous attached events on the window object for the onload event. +if (!window.addEventListener) { + document.onreadystatechange = function(){ + if (window.onload && window.onload != handleEvent) { + addEvent(window, 'load', window.onload); + window.onload = handleEvent; + } + } +} + +// Here are my functions for adding the DOMContentLoaded event to browsers other +// than Mozilla. + +// Array of DOMContentLoaded event handlers. +window.onDOMLoadEvents = new Array(); +window.DOMContentLoadedInitDone = false; + +// Function that adds DOMContentLoaded listeners to the array. +function addDOMLoadEvent(listener) { + window.onDOMLoadEvents[window.onDOMLoadEvents.length]=listener; +} + +// Function to process the DOMContentLoaded events array. +function DOMContentLoadedInit() { + // quit if this function has already been called + if (window.DOMContentLoadedInitDone) return; + + // flag this function so we don't do the same thing twice + window.DOMContentLoadedInitDone = true; + + // iterates through array of registered functions + for (var i=0; i<\/script>"); + var script = document.getElementById("__ie_onload"); + script.onreadystatechange = function() { + if (this.readyState == "complete") { + DOMContentLoadedInit(); // call the onload handler + } + }; +/*@end @*/ diff --git a/js/ie-note.js b/js/ie-note.js new file mode 100644 index 0000000..845acfc --- /dev/null +++ b/js/ie-note.js @@ -0,0 +1,50 @@ +/* + * ie-note.js -- alerts users of IE about lack of standards-compliance + * + * to use, source this script from the HTML file: + * + * + * + * Note that you need an event handler, such as + * http://dean.edwards.name/weblog/2005/10/add-event/ + * or insure otherwise that insertNote() is called *after* the whole page has + * been rendered and the DOM initialised. + * + * The notice can be styled with CSS, using the ie-note class name. + * + * SVN url: http://svn.madduck.net/pub/web/martin-krafft.net/js/ie-note.js + * + * Copyright © martin f. krafft + * Released under the terms of the Artistic Licence 2.0 + * + * Revision: $Id: dchangesfilename 295 2006-10-07 11:20:26Z madduck $ + */ + +function isIE() +{ + return navigator.appName.indexOf('Internet Explorer') > 0 || + navigator.appName.indexOf('MSIE') > 0; +} + +function insertNote() +{ + var query = unescape(location.search); + if (isIE() || query.indexOf('ie-note') > 0) { + var container = document.createElement("p"); + container.className = 'ie-note'; + container.innerHTML = + 'Notice: you are using Microsoft\'s Internet Explorer, ' + + 'which does not properly support the XHTML and CSS standards used in writing ' + + 'this page the way it is supposed to look. The information is still ' + + 'all there, but for a better result, please consider alternative ' + + 'browsers, such as ' + + 'Mozilla Firefox.'; + var body = document.getElementsByTagName("body")[0]; + body.insertBefore(container, body.firstChild); + } +} + +// see http://dean.edwards.name/weblog/2005/10/add-event/ +addEvent(window, 'DOMContentLoaded', insertNote); diff --git a/r2w.ini b/r2w.ini new file mode 100644 index 0000000..52916be --- /dev/null +++ b/r2w.ini @@ -0,0 +1,28 @@ +# Attempt to use psyco ? +psyco = False + +# pause after building ? +pause = False + +# the root directory +start_directory = '.' + +# the directory to generate files in +target_directory = 'html' + +# directory to compare against (defaults to target_directory) +compare_directory = '' + +# file to log output to (if any) +log_file = '' + +# file containing macros (if any) +macros = '' + +# Enter DEBUG mode ? +# (Interactive interpreter prompt in each page namespace) +DEBUG = False + +[uservalues] +site_title = madduck's Debian stuff +site_keywords = martin f. krafft madduck debian diff --git a/template.txt b/template.txt new file mode 100644 index 0000000..117cecd --- /dev/null +++ b/template.txt @@ -0,0 +1,82 @@ + + +<# copyright=""" + template.txt : site template (for rest2web) + + Copyright © martin f. krafft + Released under the terms of the Creative Commons Attribution- + NonCommercial-ShareAlike 2.5 Licence: + http://creativecommons.org/licenses/by-nc-sa/2.5/ + + Part of the source code for the site http://people.debian.org/~madduck/ + + svn: http://svn.madduck.net/pub/debian/web/people.debian.org--madduck/ + """ +#> + + <% title %> - madduck's Debian stuff + + + + + + + + + + + + + + + + + + + + + +
+ <% body %> +
+ +
+ +
+ +

This page was last modified <% modtime %>.

+ +

+ Site design and content are copyright © Martin F. Krafft. + Please see the imprint. +
+ I shall not be held liable for offending content in pages linking to or + linked from site, nor do I endorse their content unless I stated + otherwise. +

+ +
+

+ This webpage wouldn't be possible without Debian, Python, rest2web, Apache, and other + excellent pieces of Free Software. +

+

+ + Valid XHTML 1.0 Strict + + Valid CSS +

+
+
+ +