summaryrefslogtreecommitdiff
path: root/news/2005-08-20.mdwn
AgeCommit message (Collapse)AuthorFilesLines
2012-01-12fixed two picturesnatronics1-6/+6
2008-07-10Migrate to ikiwiki 2.40's prefix_directives option.Jamey Sharp392-974/+974
Commit by Josh Triplett and Jamey Sharp.
2007-11-15Fix links that relied on MoinMoin or TWiki CGIs.Jamey Sharp3-7/+1
2007-11-15Link attachments. Folks, please integrate the links into the page text!Jamey Sharp122-1/+815
2007-08-09Replace absolute links to http://psas.pdx.edu using Ikiwiki links.Jamey Sharp22-41/+41
Absolute links to images are not replaced, because that would change the generated HTML--it would generate <img> tags instead of <a> links. Mostly handled automatically, with a little hand-editing. find -name '*.mdwn' | xargs ../wikilink wikilink: #!/usr/bin/perl -pi use warnings; use strict; BEGIN { $::pat = qr{\Qhttp://psas.pdx.edu/\E(?!albums/|cgi-bin/|viewfile/|attach/)(?:PSAS/)?}; $::uri = qr{="(?:$::pat)([^"]*)"}; $::img = qr{<img ([^>]*src="(?:$::pat)[^"]*"[^>]*)>}; } sub mdwn { my ($target, $alt) = @_; if($alt) { $alt =~ s/^\s*(.*?)\s*$/$1/; (my $realalt = $alt) =~ s/\\//g; $alt = '' if $target =~ m{/\Q$realalt\E$}; } $alt = $alt ? $alt . '|' : ''; $target =~ s/\.html$//; return '[[' . $alt . $target . ']]'; } sub img { my @attrs = split(' ', $_[0]); my ($src, $alt); foreach(@attrs) { /^(.*?)=["']?(.*?)["']?$/; $src = $2 if $1 eq "src"; $alt = $2 if $1 eq "alt"; } $src =~ s/^$::pat//o; return mdwn($src, $alt); } s!<a href(?:$::uri)[^>]*>\s*(.*?)\s*</a>!mdwn($1, $2)!iego; s!$::img!img($1)!ego; s!\!\[\s*([^]]*)\s*\]\((?:$::pat)([^)]*\.(?:png|gif|jpg|jpeg))\)!mdwn($2, $1)!ego; s{\[\s*([^]]*)\s*\]\((?:$::pat)([^)]*)(?<!png|gif|jpg)(?<!jpeg)\)}{mdwn($2, $1)}ego;
2007-08-07Repair links to the photo gallery at http://photos.psas.pdx.edu/.Jamey Sharp16-45/+43
2007-08-06Tag the 2005-08-20 launch as an announcement, not just an event.Jamey Sharp1-1/+1
2007-08-06History: auto-generate list of events, general meetings, and announcements.Jamey Sharp111-412/+109
Set [[meta title]] attributes on almost all pages that were referenced from the hand-maintained History page, in an effort to make the auto-generated version have roughly the same content. Notably, some items now appear on the history that weren't there before, and a few have disappeared as they were team-specific or not obviously legitimate "news" or "schedule" items.
2007-08-06Move historical events and meetings to a news/YYYY-MM-DD hierarchy.Jamey Sharp1786-28061/+28661
Josh and I hand-constructed a map from old names to dates that looked like this: 2001-12-11.mdwn MeetingNotes11Dec01.mdwn general 2001-12-16.mdwn WorkshopNotes16Dec01.mdwn avionics software logistics 2002-09-22.mdwn BlackRockSept2002.mdwn event 2002-09-22/data.mdwn BlackRockSept2002Data.mdwn 2002-09-22/logistics.mdwn BlackRockLaunch20Sep2002.mdwn 2002-09-22/logistics/detail.mdwn DetailListBlackRock2002.mdwn 2002-09-22/logistics/people.mdwn LogisticsFor.mdwn Then I moved everything and added the tags this way: while read new old tags do ../iki-mv $old news/$new test -n "$tags" && (echo; echo "[[tag $tags]]") >> news/$new done < ../meetings iki-mv: #!/bin/sh set -e old=$1 new=$2 oldext=`echo $old | sed 's/.*\././'` newext=`echo $new | sed 's/.*\././'` oldbase=`echo $old | sed 's/\(.*\)\..*/\1/'` newbase=`echo $new | sed 's/\(.*\)\..*/\1/'` mkdir -p `dirname $new` git-mv $old $new test -e $oldbase && git-mv $oldbase $newbase find -iname '*.mdwn' -o -iname '*.html' -o -iname '*.htm' | xargs perl -pi -e 's!\b\Q'$oldbase'\E\b!'$newbase'!go'