aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Rude <[email protected]>2011-06-22 21:26:22 -0500
committerMatt Rude <[email protected]>2011-06-22 21:26:22 -0500
commita1ab7b6a402bfce68463023a02d7991e8f072146 (patch)
tree1b9a6494b8bc2e5c82b74c04213e77780eec3b35
parentb80e78d7b1d37bd086bc1caf82f67d884c2efdb3 (diff)
downloadtime.mattrude.com-a1ab7b6a402bfce68463023a02d7991e8f072146.tar.gz
time.mattrude.com-a1ab7b6a402bfce68463023a02d7991e8f072146.tar.bz2
time.mattrude.com-a1ab7b6a402bfce68463023a02d7991e8f072146.zip
more playing
-rwxr-xr-xscripts/do-build-site13
-rw-r--r--scripts/templates/head9
-rw-r--r--scripts/templates/tail (renamed from scripts/templates/index-tail)0
3 files changed, 18 insertions, 4 deletions
diff --git a/scripts/do-build-site b/scripts/do-build-site
index c2f9e50..b4710f0 100755
--- a/scripts/do-build-site
+++ b/scripts/do-build-site
@@ -11,7 +11,12 @@ DOCUMENTSDIR=$ROOT/documentation
cd $ROOT
rm -f $ROOT/readme.tmp $TEMPLATESDIR/readme.html
markdown $ROOT/README.md > $ROOT/readme.tmp
-cat $TEMPLATESDIR/index-head $ROOT/readme.tmp $TEMPLATESDIR/index-tail > $DOCUMENTSDIR/readme.html
+cat $TEMPLATESDIR/head > $DOCUMENTSDIR/readme.html
+echo " <div id="title">
+ <h1>time.mattrude.com <i>&mdash; Readme File</i></h1>
+ </div>
+ <p> <a href="/">time.mattrude.com</a> / <a href="/documentation/">documentation</a> / <strong>readme</strong> / </p>" >> $DOCUMENTSDIR/readme.html
+cat $ROOT/readme.tmp $TEMPLATESDIR/tail >> $DOCUMENTSDIR/readme.html
rm -f $ROOT/readme.tmp
@@ -34,7 +39,7 @@ do
done
sync
-cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/index-tail > $POOLPAGE/index.html
+cat $TEMPLATESDIR/index-head out.template $TEMPLATESDIR/tail > $POOLPAGE/index.html
# Build the indexs for the hosts.
for X in `cat /var/www/time.mattrude.com/rrd/list-of-systems`
@@ -43,7 +48,7 @@ do
cat /dev/null > out.template
sed -e s/POOL/$X/g $TEMPLATESDIR/template-host >> out.template
sync
- cat out.template $TEMPLATESDIR/index-tail > $X/index.html
+ cat out.template $TEMPLATESDIR/tail > $X/index.html
rm -f out.template
for a in clients offset jitter frequency sjit cjit wander disp
do
@@ -51,7 +56,7 @@ do
cat /dev/null > out.template
sed -e s/POOL/$X/g $TEMPLATESDIR/template-by-type |sed -e s/TYPE/$a/g >> out.template
sync
- cat out.template $TEMPLATESDIR/index-tail > $X/$a/index.html
+ cat out.template $TEMPLATESDIR/tail > $X/$a/index.html
rm -f out.template
done
done
diff --git a/scripts/templates/head b/scripts/templates/head
new file mode 100644
index 0000000..aea73ea
--- /dev/null
+++ b/scripts/templates/head
@@ -0,0 +1,9 @@
+<head>
+ <title>time.mattrude.com :: Time Server Status Page</title>
+ <link rel="stylesheet" type="text/css" href="/style.css"/>
+ <link rel="icon" href="/favicon.ico" type="image/x-icon" />
+</head>
+<html>
+<body>
+<div id="content">
+ <div id="primary" class="main">
diff --git a/scripts/templates/index-tail b/scripts/templates/tail
index 7df31a4..7df31a4 100644
--- a/scripts/templates/index-tail
+++ b/scripts/templates/tail