path: root/news/2003-09-21.mdwn
AgeCommit message (Collapse)AuthorFilesLines
2008-07-10Migrate to ikiwiki 2.40's prefix_directives option.Jamey Sharp392-974/+974
Commit by Josh Triplett and Jamey Sharp.
2007-11-15Link attachments. Folks, please integrate the links into the page text!Jamey Sharp122-1/+815
2007-08-09Replace relative links with Ikiwiki links.Jamey Sharp63-148/+141
Eliminates 119 "orphan" warnings on AdminHome/issues and fixes the conversion problems with CapstoneLV2bProjectReport. Links to images are not replaced, because that would change the generated HTML--it would generate <img> tags instead of <a> links. Handled with an enhanced version of my previous wikilink script. find -name '*.mdwn' | xargs ../wikilink wikilink: #!/usr/bin/perl -pi use warnings; use strict; BEGIN { $::pat = qr{\Q\E(?!albums/|cgi-bin/|viewfile/|attach/)(?:PSAS/)?|(?!https?://|ftp://|mailto:|#)}; $::img = qr{<img ([^>]*src="(?:$::pat)[^"]*"[^>]*)>}; $::uri = qr{="(?:$::pat)([^"]*)(?<!png|gif|jpg)(?<!jpeg)"}; } 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!$::img!img($1)!iego; s!<a href(?:$::uri)[^>]*>\s*(.*?)\s*</a>!mdwn($1, $2)!iego; s!\!\[\s*([^]]*)\s*\]\((?:$::pat)([^)]*\.(?:png|gif|jpg|jpeg))\)!mdwn($2, $1)!iego; s{\[\s*([^]]*)\s*\]\((?:$::pat)([^)]*)(?<!png|gif|jpg)(?<!jpeg)\)}{mdwn($2, $1)}iego;
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'