Permalink
Browse files

Huge overhaul of the BTG website, merging down the redesign branch

  • Loading branch information...
petdance committed Apr 3, 2012
1 parent b2bfdb5 commit 0dc047aaade5e08f73f14ee8d7fdcc8134e9589a
View
@@ -1,2 +1,3 @@
build/
~
+.DS_Store
View
@@ -10,14 +10,17 @@ default: crank
clean:
rm -fr $(BUILD)
- rm -fr $(SOURCE)/*.tt2
crank: clean
mkdir -p $(BUILD)/ || true > /dev/null 2>&1
- cp s/* $(BUILD)
- cp static/* $(BUILD)
+ perl crank --sourcepath=$(SOURCE) --buildpath=$(BUILD)
+ cp -R static/* $(BUILD)/
+ find $(BUILD) -name "*~" -exec rm -v -f {} \; # Remove any backup leftovers
+
+test: crank
+ prove t/html.t
# This is only useful for Andy
rsync:
rsync -azu -e ssh --delete --verbose \
- $(BUILD)/ andy@huggy.petdance.com:/srv/btg
+ $(BUILD)/ andy@huggy.petdance.com:/srv/btg/
View
@@ -0,0 +1,9 @@
+# Things to do before we can go live
+
+* Get rid of the .html filenames
+ * others.html should be /others/
+* Stylized blockquote
+* padding/margin issues with headers and body content.
+* testimonial CSS Tweaks
+* On the testimonials page, link to the installation page inline from the quotes. And any other relevant.
+* Give props to designer dude and Jeana, along with links back to respective homepages.
View
Binary file not shown.
View
Binary file not shown.
View
68 crank
@@ -0,0 +1,68 @@
+#!/usr/bin/perl -w
+
+use strict;
+use warnings;
+
+eval 'use Carp::Always'; # Not everyone has it
+
+use Getopt::Long;
+use Template ();
+use Template::Constants qw( :debug :chomp );
+
+exit main();
+
+sub main {
+ my $sourcepath = 's';
+ my $buildpath = 'build';
+
+ GetOptions(
+ 'sourcepath:s' => \$sourcepath,
+ 'buildpath:s' => \$buildpath,
+ ) or exit;
+
+ -d $buildpath && -w $buildpath or die;
+
+ # XXX This should not be hardcoded
+ my @pages = qw(
+ index
+ installation
+ community
+ more-tools
+ testimonials
+ why-ack
+ documentation
+ );
+
+ MAIN: {
+ my %tt_settings = (
+ INCLUDE_PATH => [ qw( tt tt/wrapper ) ],
+ OUTPUT_PATH => $buildpath,
+ DEBUG => DEBUG_UNDEF,
+ TRIM => CHOMP_ALL,
+ PRE_CHOMP => 1,
+ POST_CHOMP => 1,
+ ENCODING => 'utf8',
+ );
+
+ my $tt = Template->new( \%tt_settings );
+
+ for my $page ( @pages ) {
+ my $source = "$page.ttml";
+ my $target;
+
+ if ( $page eq 'index' ) {
+ $target = 'index.html';
+ }
+ else {
+ mkdir( "$buildpath/$page" );
+ $target = "$page/index.html";
+ }
+
+ my $vars = {};
+ $tt->process( $source, $vars, $target, { binmode => ':encoding(UTF-8)' } )
+ or die sprintf( "file: %s\nerror: %s\n", $target, $tt->error );
+ }
+ }
+
+ return 0;
+}
View
@@ -1,77 +0,0 @@
-<table style="border:1px solid #aa0033; font-size:small" align=right>
- <tr>
- <td colspan=2 align=center>
- <img src="http://groups.google.com/groups/img/groups_medium.gif" height=58 width=150 alt="Google Groups">
- </td>
-</tr>
-
-<tr>
- <td colspan=2 align=center><b>Subscribe to ack announcements</b></td>
- </tr>
- <form action="http://groups.google.com/group/ack-announce/boxsubscribe">
- <tr>
- <td>Email: <input type=text name=email></td>
- <td>
- <table
- style="background-color:#ffcc33;padding:2px;border:2px outset #ffcc33;">
- <tr>
- <td>
- <input type=submit name="sub" value="Subscribe">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </form>
- <tr><td colspan=2 align=center>
- <a href="http://groups.google.com/group/ack-announce">Browse Archives</a> at <a href="http://groups.google.com/">groups.google.com</a>
- </td></tr>
- <tr><td colspan=2><hr></td></tr>
-
-
-<tr>
- <td colspan=2 align=center><b>Subscribe to ack dev/users</b></td>
- </tr>
- <form action="http://groups.google.com/group/ack-users/boxsubscribe">
- <tr>
- <td>Email: <input type=text name=email></td>
- <td>
- <table
- style="background-color:#ffcc33;padding:2px;border:2px outset #ffcc33;">
- <tr>
- <td>
- <input type=submit name="sub" value="Subscribe">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </form>
- <tr><td colspan=2 align=center>
- <a href="http://groups.google.com/group/ack-users">Browse Archives</a> at <a href="http://groups.google.com/">groups.google.com</a>
- </td></tr>
- <tr><td colspan=2><hr></td></tr>
-
-
- <tr>
- <td colspan=2 align=center><b>Subscribe to ack commits</b></td>
- </tr>
- <form action="http://groups.google.com/group/ack-commits/boxsubscribe">
- <tr>
- <td>Email: <input type=text name=email></td>
- <td>
- <table
- style="background-color:#ffcc33;padding:2px;border:2px outset #ffcc33;">
- <tr>
- <td>
- <input type=submit name="sub" value="Subscribe">
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </form>
- <tr><td colspan=2 align=center>
- <a href="http://groups.google.com/group/ack-commits">Browse Archives</a> at <a href="http://groups.google.com/">groups.google.com</a>
- </td></tr>
-</table>
Oops, something went wrong.

0 comments on commit 0dc047a

Please sign in to comment.