shithub: werc

Download patch

ref: 17d36d0832b9248a80efa9dff89a4d91c4856942
parent: 2bc851eeeffdddce32b002e2d324bd6a7fd0a94f
author: uriel <[email protected]>
date: Tue Jun 10 12:33:28 EDT 2008

Make troff-generated  html pages look a bit better

--- a/bin/gensitemaptxt.rc
+++ b/bin/gensitemaptxt.rc
@@ -1,6 +1,8 @@
-#!/bin/rc
-for ( d in sites/*/ ) {
+#!/usr/bin/env rc
 
-du -a $d | awk '/\.(md|html)$/ { print $2 }; {}' | 9 sed -e 's/\.(md|html)$//' -e 's,/index$,/,' -e 's,^sites/,http://,' > $d/sitemap.txt
+echo foo
+for ( d in sites/*/ ) {
+echo $d
+9 du -a $d | awk '/\.(md|html)$/ { print $2 }; {}' | 9 sed -e 's/\.(md|html)$//' -e 's,/index$,/,' -e 's,^sites/,http://,' > $d/sitemap.txt
 
 }
--- a/bin/hgweb.config
+++ b/bin/hgweb.config
@@ -8,5 +8,5 @@
 [collections]
 #allow_archive = bz2 zip
 /gsoc/hg = /gsoc/hg/
-/var/hg = /var/hg/
+#/var/hg = /var/hg/
 
--- a/bin/md_cache
+++ b/bin/md_cache
@@ -1,3 +1,4 @@
+#!/usr/bin/env rc
 #!/bin/rc
 . 9.rc
 
--- a/pub/style/style.css
+++ b/pub/style/style.css
@@ -225,7 +225,7 @@
 
 
 #main-copy p {
-  margin: 1em 1ex 1em 1ex;
+  margin: 1em 1ex 1em 1ex !important; /* Need !important so troff-generated pages don't look totally squezed */
   padding: 0;
 }
 
--- a/sites/uriel.cat-v.org/_default.tpl
+++ b/sites/uriel.cat-v.org/_default.tpl
@@ -30,16 +30,16 @@
 </div>
 
 <div id="footer">
-<br class="doNotDisplay doNotPrint" />
+% cat sites/$masterSite/_inc/footer.inc
 </div>
 
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+<!-- Google Analytics -->
+<script type="text/javascript">
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
 </script>
 <script type="text/javascript">
-_uacct = "UA-1220719-8";
-urchinTracker();
+var pageTracker = _gat._getTracker("UA-1220719-8");
+pageTracker._initData();
+pageTracker._trackPageview();
 </script>
-
-</body>
-</html>
-