changeset 697:7893b3824715

Add a top-level index page.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 27 Mar 2009 00:01:58 -0700
parents e0d9eb01e4c2
children 9e8e5292acaa c3c5b964901e
files en/Makefile web/index.html web/index.html.in web/texpand.py
diffstat 3 files changed, 68 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/en/Makefile	Thu Mar 26 23:05:28 2009 -0700
+++ b/en/Makefile	Fri Mar 27 00:01:58 2009 -0700
@@ -186,6 +186,7 @@
 	rsync -avz --delete dist sp.red-bean.com:public_html/hgbook
 
 vpath %.css ../web
+vpath %.html.in ../web
 vpath %.js ../web/javascript
 
 $(obj-websup)/%.css: %.css
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/index.html.in	Fri Mar 27 00:01:58 2009 -0700
@@ -0,0 +1,66 @@
+<!-- -*- html -*- -->
+{% extends "boilerplate.html" %}
+
+{% block bodycontent %}
+<div class="navheader"><h1 class="booktitle">Mercurial: The Definitive Guide<div class="authors">by Bryan
+O'Sullivan</div></h1></div>
+
+<div class="book">
+  <h2>Welcome to Mercurial: The Definitive Guide</h2>
+
+  <p>This is the online home of the book &#8220;Mercurial: The
+    Definitive Guide&#8221;.  
+    It will be published in 2009 by O'Reilly Media.</p>
+
+  <p>I make the content <a href="/read/">freely available
+      online</a>.  If you like it, please make a note to buy a copy!</p>
+
+  <p>For news updates, please
+    visit <a href="http://www.serpentine.com/blog/">my blog</a>.</p>
+
+  <h2>You can contribute!</h2>
+
+  <p>I publish the <a href="http://hgbook.red-bean.com/">source
+      code</a> for this book as a Mercurial repository.  Please feel
+    welcome to clone it, make modifications to your copy, and send me
+    changes.</p>
+
+  <p>The online version of the book includes a comment system
+    that you can use to send feedback involving errors, omissions, and
+    suggestions.</p>
+
+  <p>(If you would like to adapt the comment system for a
+    publishing project of your own, the source for the web application
+    is included with the book.)</p>
+
+  <h2>What is Mercurial?</h2>
+
+  <p><a href="http://www.selenic.com/mercurial">Mercurial</a> is a
+    fast, lightweight source control management system
+    designed for easy and efficient handling of very large distributed
+    projects.</p>
+
+  <h2>How I help Mercurial and free software, and you can too</h2>
+
+  <p>Mercurial is a member of the <a href="http://conservancy.softwarefreedom.org/">Software Freedom Conservancy</a>, a
+    wonderful non-profit organisation that offers its member projects
+    legal and administrative advice.</p>
+
+  <p>I am donating my royalties from the sales of this book (once it is
+    published) to the Software Freedom Conservancy, and I encourage
+    you to support their work, too.</p>
+
+  <p>The SFC can
+    accept <a href="http://conservancy.softwarefreedom.org/?donate">accept
+    donations</a> (tax-free under IRS 501(c)(3), within the United
+    States) on behalf of its member projects. If you would like to
+    support Mercurial directly, please consider making a donation to
+    the SFC on its behalf.</p>
+
+  <p>If you would like to help free software developers to provide
+    their important public services without being impeded by legal
+    issues, please consider donating to the SFC's sister organisation,
+    the <a href="http://www.softwarefreedom.org/">Software Freedom Law
+    Center</a>.</p>
+</div>
+{% endblock %}
--- a/web/texpand.py	Thu Mar 26 23:05:28 2009 -0700
+++ b/web/texpand.py	Fri Mar 27 00:01:58 2009 -0700
@@ -7,7 +7,7 @@
 from django.template import Context, TemplateDoesNotExist
 from django.template.loader import get_template, get_template_from_string
 from django.core.management import setup_environ
-import rwh.settings as settings
+import hgbook.settings as settings
 import sys
 
 setup_environ(settings)