changeset 268:f8601540caff

Use the site root for docs assets.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 25 Feb 2015 13:06:58 -0800
parents f512905ae812
children dbd6813fb6df
files docs/assets/css/piecrust.less docs/templates/splash.html
diffstat 2 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/docs/assets/css/piecrust.less	Wed Feb 25 13:06:41 2015 -0800
+++ b/docs/assets/css/piecrust.less	Wed Feb 25 13:06:58 2015 -0800
@@ -35,7 +35,7 @@
 .pc-divider-img(@offset-x, @offset-y) {
     .hidden-xs();
     content: " ";
-    background-image: url("/img/dividers.png");
+    background-image: url("../img/dividers.png");
     background-repeat: no-repeat;
     background-position: -@offset-x -@offset-y;
     display: inline-block;
@@ -145,7 +145,7 @@
 }
 @media (min-width: @screen-sm-min) {
     blockquote {
-        .pc-decorator('/img/cake.png', 5px + @line-height-computed);
+        .pc-decorator('../img/cake.png', 5px + @line-height-computed);
     }
 }
 
@@ -165,7 +165,7 @@
 
 // Splash-page
 header.splash {
-    .pc-banner("/img/header2-bg.jpg");
+    .pc-banner("../img/header2-bg.jpg");
     color: black;
 }
 .splash {
@@ -180,7 +180,7 @@
     }
 
     .splash-logo {
-        background-image: url('/img/logo.png');
+        background-image: url('../img/logo.png');
         background-repeat: no-repeat;
         background-position: center center;
         background-size: contain;
@@ -227,7 +227,7 @@
     }
 }
 .splash.splash-chalkboard {
-    background: url("/img/chalkboard-bg.jpg");
+    background: url("../img/chalkboard-bg.jpg");
     color: white;
     padding: 0.25em 0 3em 0;
     margin: 0;
@@ -240,13 +240,13 @@
 
 // Getting-Started
 header.tutorial {
-    .pc-banner-header("/img/header5-bg.jpg");
+    .pc-banner-header("../img/header5-bg.jpg");
 }
 
 
 // Documentation
 header.documentation {
-    .pc-banner-header("/img/header10-bg.jpg");
+    .pc-banner-header("../img/header10-bg.jpg");
 }
 
 .pc-docnav() {
@@ -273,13 +273,13 @@
 
 // Code
 header.code {
-    .pc-banner-header("/img/header7-bg.jpg");
+    .pc-banner-header("../img/header7-bg.jpg");
 }
 
 
 // Support
 header.support {
-    .pc-banner-header("/img/header9-bg.jpg");
+    .pc-banner-header("../img/header9-bg.jpg");
 }
 
 
--- a/docs/templates/splash.html	Wed Feb 25 13:06:41 2015 -0800
+++ b/docs/templates/splash.html	Wed Feb 25 13:06:58 2015 -0800
@@ -17,16 +17,16 @@
         <h2>Chef's Features</h2>
         <div class="row">
             <div class="col-sm-6 col-md-4">
-                <img class="splash-icon" src="/img/cake-white.png" />
+                <img class="splash-icon" src="{{site.root}}img/cake-white.png" />
                 {{simple|safe}}
             </div>
             <div class="col-sm-6 col-md-4">
-                <img class="splash-icon hidden-xs" src="/img/chef-hat-white.png" />
+                <img class="splash-icon hidden-xs" src="{{site.root}}img/chef-hat-white.png" />
                 {{bake|safe}}
             </div>
             <div class="clearfix visible-sm-block"></div>
             <div class="col-sm-6 col-md-4">
-                <img class="splash-icon hidden-sm" src="/img/whisk-white.png" />
+                <img class="splash-icon hidden-sm" src="{{site.root}}img/whisk-white.png" />
                 {{ingr|safe}}
             </div>
             <div class="clearfix visible-md-block visible-lg-block"></div>
@@ -35,7 +35,7 @@
             </div>
             <div class="clearfix visible-sm-block"></div>
             <div class="col-sm-6 col-md-4">
-                <img class="splash-icon visible-xs" src="/img/chef-hat-white.png" />
+                <img class="splash-icon visible-xs" src="{{site.root}}img/chef-hat-white.png" />
                 {{fast|safe}}
             </div>
             <div class="col-sm-6 col-md-4">