[yt-svn] commit/cookbook: MatthewTurk: Formatting fixes.

Bitbucket commits-noreply at bitbucket.org
Fri Jul 6 08:14:46 PDT 2012


1 new commit in cookbook:


https://bitbucket.org/yt_analysis/cookbook/changeset/e9713a6df993/
changeset:   e9713a6df993
user:        MatthewTurk
date:        2012-07-06 17:14:22
summary:     Formatting fixes.
affected #:  3 files

diff -r a0aa0c76c5c0c7220bc9449563b5520544648b3e -r e9713a6df993f2c62fdb363afda95345881c6e8c highlighter.py
--- a/highlighter.py
+++ b/highlighter.py
@@ -33,13 +33,13 @@
         pass
     recipe = "\n".join(lines[di+2:])
     output = open("highlighted/%s.html" % (fn.split(".")[0]), "w")
-    output.write("<div class='row'>\n<div class='span8'>\n")
+    output.write("<div class='row'>\n<div class='span8 recipetitle'>\n")
     output.write("<h3>%s</h3>\n" % title)
     output.write("</div></div>\n")
-    output.write("<div class='row'>\n<div class='span8'>\n")
+    output.write("<div class='row'>\n<div class='span8 recipedesc'>\n")
     output.write(docstring)
     output.write("</div></div>\n")
-    output.write("<div class='row'>\n<div class='span8'>\n")
+    output.write("<div class='row'>\n<div class='span8 recipe'>\n")
     output.write(pygments.highlight(recipe, pl, hf))
     output.write("</div></div>\n")
     output.close()


diff -r a0aa0c76c5c0c7220bc9449563b5520544648b3e -r e9713a6df993f2c62fdb363afda95345881c6e8c index.html
--- a/index.html
+++ b/index.html
@@ -14,6 +14,7 @@
 
     <!-- Le styles --><link href="bootstrap/css/bootstrap.css" rel="stylesheet">
+    <link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet"><link href="style.css" rel="stylesheet"><link href="pygments.css" rel="stylesheet">
 
@@ -64,12 +65,12 @@
 
     <div class="container">
 
-      <section id="cookbook">
+      <SECTION ID="cookbook"><div class="page-header"><h1>Examples and Tutorials</h1></div><div class="row">
-          <div class="span4" id="contentlist" style="height: 480px; overflow: auto;">
+          <div class="span4" id="contentlist" style="height: 640px; overflow: auto;"></div><div class="span8" id="contentcontainer">
             Choose a recipe on the left.


diff -r a0aa0c76c5c0c7220bc9449563b5520544648b3e -r e9713a6df993f2c62fdb363afda95345881c6e8c style.css
--- a/style.css
+++ b/style.css
@@ -4,3 +4,14 @@
   border-color: transparent;
   padding: 8px 8px 8px 8px;
 }
+
+.highlighttable {
+  width: 740px;
+}
+
+html {overflow-y: scroll;}
+
+.recipedesc {
+  padding-top: 15px;
+  padding-bottom: 15px;
+}

Repository URL: https://bitbucket.org/yt_analysis/cookbook/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list