changeset 443:6b9f59b19db7

cm: Move build directory to util to avoid conflicts with pip.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 28 Jun 2015 15:00:23 -0700
parents 171dde4f61dc
children 1359b2b0cc73
files .hgignore build/generate_messages.cmd build/generate_messages.sh build/messages/config.yml build/messages/pages/_index.html build/messages/pages/critical.html build/messages/pages/error.html build/messages/pages/error404.html build/messages/templates/default.html build/messages/templates/error.html util/build/generate_messages.cmd util/build/generate_messages.sh util/build/messages/config.yml util/build/messages/pages/_index.html util/build/messages/pages/critical.html util/build/messages/pages/error.html util/build/messages/pages/error404.html util/build/messages/templates/default.html util/build/messages/templates/error.html
diffstat 19 files changed, 151 insertions(+), 150 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Sun Jun 28 14:52:58 2015 -0700
+++ b/.hgignore	Sun Jun 28 15:00:23 2015 -0700
@@ -3,8 +3,8 @@
 venv
 tags
 build/lib
-build/messages/_cache
-build/messages/_counter
+util/messages/_cache
+util/messages/_counter
 dist
 docs/_cache
 docs/_counter
@@ -13,3 +13,4 @@
 piecrust.egg-info
 piecrust/__version__.py
 
+docs
--- a/build/generate_messages.cmd	Sun Jun 28 14:52:58 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-@echo off
-setlocal
-
-set CUR_DIR=%~dp0
-set CHEF=%CUR_DIR%..\bin\chef
-set OUT_DIR=%CUR_DIR%..\piecrust\resources\messages
-set ROOT_DIR=%CUR_DIR%messages
-
-%CHEF% --root=%ROOT_DIR% bake -o %OUT_DIR%
-del %OUT_DIR%\index.html
-
--- a/build/generate_messages.sh	Sun Jun 28 14:52:58 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-CUR_DIR="$( cd "$( dirname "$0" )" && pwd )"
-CHEF=${CUR_DIR}/../bin/chef
-OUT_DIR=${CUR_DIR}/../piecrust/resources/messages
-ROOT_DIR=${CUR_DIR}/messages
-
-$CHEF --root=$ROOT_DIR bake -o $OUT_DIR
-rm ${OUT_DIR}/index.html
--- a/build/messages/config.yml	Sun Jun 28 14:52:58 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-site:
-    title: PieCrust System Messages
--- a/build/messages/pages/_index.html	Sun Jun 28 14:52:58 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
----
-title: PieCrust System Messages
----
-
-Here are the **PieCrust** system message pages:
-
-* [Requirements Not Met]({{ pcurl('requirements') }})
-* [Error]({{ pcurl('error') }})
-* [Not Found]({{ pcurl('error404') }})
-* [Critical Error]({{ pcurl('critical') }})
-
-This very page you're reading, however, is only here for convenience.
--- a/build/messages/pages/critical.html	Sun Jun 28 14:52:58 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
----
-title: The Whole Kitchen Burned Down!
-layout: error
----
-Something critically bad happened, and **PieCrust** needs to shut down. It's probably our fault.
-
--- a/build/messages/pages/error.html	Sun Jun 28 14:52:58 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
----
-title: The Cake Just Burned!
-layout: error
----
-
--- a/build/messages/pages/error404.html	Sun Jun 28 14:52:58 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
----
-title: Can't find the sugar!
-layout: error
----
-It looks like the page you were trying to access does not exist around here. Try going somewhere else.
-
--- a/build/messages/templates/default.html	Sun Jun 28 14:52:58 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,70 +0,0 @@
-<!doctype html>
-<html>
-<head>
-    <title>{{ page.title }}</title>
-    <meta name="generator" content="PieCrust" />
-	<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Lobster">
-	<style>
-		body {
-			margin: 0;
-			padding: 1em;
-			background: #eee;
-			color: #000;
-			font-family: Georgia, serif;
-		}
-		h1 {
-			font-size: 4.5em;
-			font-family: Lobster, 'Trebuchet MS', Verdana, sans-serif;
-			text-align: center;
-			font-weight: bold;
-            margin-top: 0;
-			color: #333;
-			text-shadow: 0px 2px 5px rgba(0,0,0,0.3);
-		}
-		h2 {
-			font-size: 2.5em;
-            font-family: 'Lobster', 'Trebuchet MS', Verdana, sans-serif;
-		}
-		code {
-			background: #ddd;
-			padding: 0 0.2em;
-		}
-        #preamble {
-            font-size: 1.2em;
-            font-style: italic;
-            text-align: center;
-            margin-bottom: 0;
-        }
-		#container {
-			margin: 0 20%;
-		}
-        #content {
-            margin: 2em 1em;
-        }
-        .error-details {
-            color: #d11;
-        }
-		.note {
-			margin: 3em;
-			color: #888;
-			font-style: italic;
-		}
-	</style>
-</head>
-<body>
-    <div id="container">
-        <div id="header">
-            <p id="preamble">A Message From The Kitchen:</p>
-			<h1>{{ page.title }}</h1>
-		</div>
-        <hr />
-        <div id="content">
-            {% block content %}
-			{{ content|safe }}
-            {% endblock %}
-		</div>
-        <hr />
-        {% block footer %}{% endblock %}
-	</div>
-</body>
-</html>
--- a/build/messages/templates/error.html	Sun Jun 28 14:52:58 2015 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-{% extends "default.html" %}
-
-{% block content %}
-{{content|safe}}
-
-{# The following is `raw` because we want it to be in the
-   produced page, so it can then be templated on the fly 
-   with the error messages #}
-{% raw %}
-{% if details %}
-<div class="error-details">
-    <p>Error details:</p>
-    <ul>
-    {% for desc in details %}
-        <li>{{ desc }}</li>
-    {% endfor %}
-    </ul>
-</div>
-{% endif %}
-{% endraw %}
-{% endblock %}
-
-{% block footer %}
-{% pcformat 'textile' %}
-p(note). You're seeing this because something wrong happend. To see detailed errors with callstacks, run chef with the @--debug@ parameter, append @?!debug@ to the URL, or initialize the @PieCrust@ object with @{'debug': true}@. On the other hand, to see you custom error pages, set the @site/display_errors@ setting  to @false@.
-{% endpcformat %}
-{% endblock %}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/build/generate_messages.cmd	Sun Jun 28 15:00:23 2015 -0700
@@ -0,0 +1,11 @@
+@echo off
+setlocal
+
+set CUR_DIR=%~dp0
+set CHEF=%CUR_DIR%..\bin\chef
+set OUT_DIR=%CUR_DIR%..\piecrust\resources\messages
+set ROOT_DIR=%CUR_DIR%messages
+
+%CHEF% --root=%ROOT_DIR% bake -o %OUT_DIR%
+del %OUT_DIR%\index.html
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/build/generate_messages.sh	Sun Jun 28 15:00:23 2015 -0700
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+CUR_DIR="$( cd "$( dirname "$0" )" && pwd )"
+CHEF=${CUR_DIR}/../bin/chef
+OUT_DIR=${CUR_DIR}/../piecrust/resources/messages
+ROOT_DIR=${CUR_DIR}/messages
+
+$CHEF --root=$ROOT_DIR bake -o $OUT_DIR
+rm ${OUT_DIR}/index.html
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/build/messages/config.yml	Sun Jun 28 15:00:23 2015 -0700
@@ -0,0 +1,2 @@
+site:
+    title: PieCrust System Messages
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/build/messages/pages/_index.html	Sun Jun 28 15:00:23 2015 -0700
@@ -0,0 +1,12 @@
+---
+title: PieCrust System Messages
+---
+
+Here are the **PieCrust** system message pages:
+
+* [Requirements Not Met]({{ pcurl('requirements') }})
+* [Error]({{ pcurl('error') }})
+* [Not Found]({{ pcurl('error404') }})
+* [Critical Error]({{ pcurl('critical') }})
+
+This very page you're reading, however, is only here for convenience.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/build/messages/pages/critical.html	Sun Jun 28 15:00:23 2015 -0700
@@ -0,0 +1,6 @@
+---
+title: The Whole Kitchen Burned Down!
+layout: error
+---
+Something critically bad happened, and **PieCrust** needs to shut down. It's probably our fault.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/build/messages/pages/error.html	Sun Jun 28 15:00:23 2015 -0700
@@ -0,0 +1,5 @@
+---
+title: The Cake Just Burned!
+layout: error
+---
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/build/messages/pages/error404.html	Sun Jun 28 15:00:23 2015 -0700
@@ -0,0 +1,6 @@
+---
+title: Can't find the sugar!
+layout: error
+---
+It looks like the page you were trying to access does not exist around here. Try going somewhere else.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/build/messages/templates/default.html	Sun Jun 28 15:00:23 2015 -0700
@@ -0,0 +1,70 @@
+<!doctype html>
+<html>
+<head>
+    <title>{{ page.title }}</title>
+    <meta name="generator" content="PieCrust" />
+	<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Lobster">
+	<style>
+		body {
+			margin: 0;
+			padding: 1em;
+			background: #eee;
+			color: #000;
+			font-family: Georgia, serif;
+		}
+		h1 {
+			font-size: 4.5em;
+			font-family: Lobster, 'Trebuchet MS', Verdana, sans-serif;
+			text-align: center;
+			font-weight: bold;
+            margin-top: 0;
+			color: #333;
+			text-shadow: 0px 2px 5px rgba(0,0,0,0.3);
+		}
+		h2 {
+			font-size: 2.5em;
+            font-family: 'Lobster', 'Trebuchet MS', Verdana, sans-serif;
+		}
+		code {
+			background: #ddd;
+			padding: 0 0.2em;
+		}
+        #preamble {
+            font-size: 1.2em;
+            font-style: italic;
+            text-align: center;
+            margin-bottom: 0;
+        }
+		#container {
+			margin: 0 20%;
+		}
+        #content {
+            margin: 2em 1em;
+        }
+        .error-details {
+            color: #d11;
+        }
+		.note {
+			margin: 3em;
+			color: #888;
+			font-style: italic;
+		}
+	</style>
+</head>
+<body>
+    <div id="container">
+        <div id="header">
+            <p id="preamble">A Message From The Kitchen:</p>
+			<h1>{{ page.title }}</h1>
+		</div>
+        <hr />
+        <div id="content">
+            {% block content %}
+			{{ content|safe }}
+            {% endblock %}
+		</div>
+        <hr />
+        {% block footer %}{% endblock %}
+	</div>
+</body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/build/messages/templates/error.html	Sun Jun 28 15:00:23 2015 -0700
@@ -0,0 +1,27 @@
+{% extends "default.html" %}
+
+{% block content %}
+{{content|safe}}
+
+{# The following is `raw` because we want it to be in the
+   produced page, so it can then be templated on the fly 
+   with the error messages #}
+{% raw %}
+{% if details %}
+<div class="error-details">
+    <p>Error details:</p>
+    <ul>
+    {% for desc in details %}
+        <li>{{ desc }}</li>
+    {% endfor %}
+    </ul>
+</div>
+{% endif %}
+{% endraw %}
+{% endblock %}
+
+{% block footer %}
+{% pcformat 'textile' %}
+p(note). You're seeing this because something wrong happend. To see detailed errors with callstacks, run chef with the @--debug@ parameter, append @?!debug@ to the URL, or initialize the @PieCrust@ object with @{'debug': true}@. On the other hand, to see you custom error pages, set the @site/display_errors@ setting  to @false@.
+{% endpcformat %}
+{% endblock %}