Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a README; cleaned up some styles.

  • Loading branch information...
commit 5ac4f08ee682349090eee4f3c0006d0c5999ca6a 1 parent febf69b
@jacobian jacobian authored
View
9 README.rst
@@ -0,0 +1,9 @@
+===============
+The Django Book
+===============
+
+Welcome to the community edition of the Django Book!
+
+This book was originally published by Apress in 2009, and covered Django 1.0. Since then, it's languished. We're working on getting the book updated to cover Django 1.4, 1.5, and beyond. But **we need your help**, so we're making this book — warts and all — open source in the hopes that it'll find love as a community project.
+
+So, if you'd like to help out, send us a pull request!
View
3  conf.py
@@ -6,7 +6,7 @@
# Build options
templates_path = ['_templates']
-exclude_patterns = ['_build']
+exclude_patterns = ['_build', 'README.rst']
source_suffix = '.rst'
master_doc = 'index'
@@ -19,6 +19,7 @@
html_show_sourcelink = False
html_show_sphinx = False
html_title = "The Django Book"
+html_add_permalinks = False # FIXME once styles are fixed to get the hover back.
# LATEX builder
latex_documents = [
View
6 index.rst
@@ -4,7 +4,7 @@ The Django Book
Welcome to the online version of The Django Book, a free book about the Django Web framework for the Python programming language.
-.. note:: A note about this edition
+.. admonition:: A note about this edition
Welcome to the community edition of the Django Book!
@@ -17,8 +17,6 @@ Welcome to the online version of The Django Book, a free book about the Django W
__ http://github.com/jacobian/djangobook.com
__ http://github.com/jacobian/djangobook.com
-Contents:
-
.. toctree::
:maxdepth: 1
:glob:
@@ -27,4 +25,4 @@ Contents:
frontmatter
chapter*
appendix*
-
+ license
View
10 themes/djangobook/layout.html
@@ -14,16 +14,6 @@
<h1><a href="/">The Django Book</a></h1>
<div id="global-nav">
<a class="about" href="/about/">About</a>
- |
- <a class="comment-help" href="/about/comments/">Comment help</a>
- |
- <a class="contact" href="/contact/">Contact us</a>
- |
- <a class="errata" href="/errata/">Errata</a>
- |
- <a class="buy"
- href="http://www.amazon.com/gp/product/1590597257?ie=UTF8&amp;tag=djangoproject-20&amp;linkCode=as2&amp;camp=1789&amp;creative=390957&amp;creativeASIN=1590597257">
- Buy the print version on Amazon.com</a>
</div>
{% block hdnav %}{% endblock %}
</div>
View
92 themes/djangobook/static/djangobook.css
@@ -26,7 +26,6 @@ div.nav { margin: 0; font-size: 11px; text-align: right; color: #487858;}
#global-nav:hover {color:#fff;}
#global-nav:hover a:link, #global-nav:hover a:visited { color:#ffc757; }
-
/*** content ***/
#chapter-body { position: relative; }
#yui-main div.yui-b { margin: 0 0 0 20px; background: white; color: black; padding: 0.3em 2em 1em 2em; }
@@ -68,19 +67,17 @@ ul li { list-style-type:square; margin-bottom:.4em; }
ol li { margin-bottom: .4em; }
ul ul { padding-left:1.2em; }
ul ul ul { padding-left:1em; }
-ul.linklist, ul.toc { padding-left:0; }
-ul.toc ul { margin-left:.6em; }
-ul.toc ul li { list-style-type:square; }
-ul.toc ul ul li { list-style-type:disc; }
-ul.linklist li, ul.toc li { list-style-type:none; }
+ul.linklist { padding-left:0; }
+ul.linklist li { list-style-type:none; }
dt { font-weight:bold; margin-top:.5em; font-size:1.1em; }
dd { margin-bottom:.8em; }
-ol.toc { margin-bottom: 2em; }
-ol.toc li { font-size:125%; padding: .5em; line-height:1.2em; clear: right; }
-ol.toc li.b { background-color: #E0FFB8; }
-ol.toc li a:hover { background-color: transparent !important; text-decoration: underline !important; }
-ol.toc span.release-date { color:#487858; float: right; font-size: 85%; padding-right: .5em; }
-ol.toc span.comment-count { font-size: 75%; color: #999; }
+
+/*** toctree ***/
+.toctree-wrapper ul { margin-bottom: 2em; padding-left: 0; }
+.toctree-wrapper ul li { font-size:125%; padding: .5em; margin-left: 0; line-height:1.2em; clear: right; list-style-type: none; }
+.toctree-wrapper ul li:nth-child(2n) { background-color: #E0FFB8; }
+.toctree-wrapper ul li a:hover { background-color: transparent !important; text-decoration: underline !important; }
+
/*** code blocks ***/
.literal { white-space:nowrap; }
.literal, .literal-block { color:#234f32; }
@@ -97,77 +94,6 @@ dt .literal, table .literal { background:none; }
.note, .admonition { padding-left:65px; background:url(http://media.djangoproject.com/img/doc/icons/docicons-note.gif) .8em .8em no-repeat;}
.admonition-behind-the-scenes { padding-left:65px; background:url(http://media.djangoproject.com/img/doc/icons/docicons-behindscenes.gif) .8em .8em no-repeat;}
-/*** comment stuff ***/
-.cn { position: relative; }
-#comments { padding: 0; border: 1px #092e20 solid; left: 300; top:0; position: absolute; z-index: 10; background-color: #E0FFB8; width: 600px; height: 400px; color: black; overflow: hidden; display: none; text-align: left; }
-#comment-tabs { padding: 6px; }
-#comments .ft { height:50px; overflow:hidden; padding: 6px; }
-#comments .tabset .hd li a { background-color: #487858; color:white; }
-#comments .tabset .hd li.on em { color: #092e20; }
-#comments .yui-ext-tabbody { font-size: 90%; background-color: white; border: 1px #999 solid; border-top: none; height: 285px; overflow: auto; padding: 1em; }
-#comments div.tab input { width: 100%; }
-#comments div.tab input#id_name { width: 70%; }
-#comments div.tab input#id_remember_me { width: auto; }
-#comments div.tab label { font-weight: bold; display: block; color: #487858; }
-#comments div.tab textarea { width: 100%; height: 100px; }
-#comments div.tab p { margin-bottom: 0; }
-#comments div.tab span.actions { float: right; margin-top: -15px; }
-#comments div.tab span.thanks { color: black; font-weight: bold; color: #F7C754; position: relative;}
-#comments-close { margin-left:5px;margin-right:15px; }
-#comments-head .close { position: absolute; top: 3px; right: 4px; height: 13px; width: 17px; margin:0; padding: 0; overflow: hidden; text-indent:-999px; background: url(images/close.png) no-repeat top left;}
-#comments-head { background-color: #487858; color: white; padding: 2px 4px; font-weight: bold; margin: 0 0 6px 0; position: relative;}
-#comments-message { font-size: 90%; padding-left: 20px; float:left; clear:none; width:270px; }
-#comments-message.loading { background: url(images/loading.gif) no-repeat center left; }
-#comments-message.error { background: url(images/error.png) no-repeat center left; color: red; font-weight: bold; }
-#comments-submit-wrapper { float:right; clear:none;white-space:nowrap; width: 150px; text-align: right;}
-#comments-submit-wrapper input { font-size: 11px; }
-#highlight-floater { position: absolute; z-index: 5; background: #487858; top:0; left:0; width:100%; height: 10px; visibility: hidden; border-top: 1px black solid; border-bottom: 1px black solid; border-left: 20px black solid;}
-
-/*** comment box resizer ***/
-#comments .yresizable-handle-east { background-image: url(yui-ext/images/sizer/e-handle-dark.gif); border: 0px; }
-#comments .yresizable-handle-south { background-image: url(yui-ext/images/sizer/s-handle-dark.gif); border: 0px; }
-#comments .yresizable-handle-southeast { background-image: url(yui-ext/images/sizer/se-handle-dark.gif); border: 0px; }
-
-/*** comment list tab ***/
-#comment-tabs div.tab ol { padding: 0; margin: 0; font-size: 90%; }
-#comment-tabs div.tab dl { margin-bottom: 0; }
-#comment-tabs div.tab li { border-bottom: 1px #E0FFB8 solid; }
-#comment-tabs div.tab li span.meta { font-weight:normal; color: #487858; font-size: 90%; }
-#comment-tabs div.tab a:hover { background-color:#E0FFB8; color:#234f32; text-decoration:none; }
-#comment-tabs div.tab a:link, #comment-tabs div.tab a:visited { color:#ab5603; }
-
-/*** comment indicator ***/
-div.comment-indicator { position: absolute; width: 20px; z-index: 999; text-align: center; color: black; font-size: 11px; left: -44px; top: 0; }
-li.cn div.comment-indicator { left: -74px; }
-div.admonition div.comment-indicator { left: -45px; }
-blockquote div.comment-indicator { left: -46px; }
-ul ul li.cn div.comment-indicator { left: -88px; }
-div.comment-indicator:hover { background-color: #406b4e; }
-div.comment-indicator span { position: absolute; top: -10px; left: -10px; width: 25px; height: 25px; }
-div.comment-indicator:hover span { background-image: url(images/comment-hover.png); }
-div.has-comments > span, div.has-comments:hover > span { background-image: url(images/comment-active.png); }
-
-/*** help tab ***/
-#comment-tabs-help h4 { margin-top: 0; }
-#comment-tabs-help p.image { text-align: center; }
-#comment-tabs-help img { padding: 4px; border: 1px #999 solid; }
-
-/*** forms ***/
-#chapter-body form label { display: block; font-weight: bold; margin-top: 1.5em; margin-bottom: 0;}
-#chapter-body form label span { font-weight: normal; color: #555; }
-#chapter-body form input, #chapter-body form textarea, #chapter-body form select { width: 100%; padding: 1px; }
-#chapter-body form p { margin: 0; }
-#chapter-body form p.submit { text-align: right; }
-#chapter-body form p.submit input { width: 10em; font-size: 1.5em; }
-#chapter-body form p.errors { margin: 0; padding: 0; font-weight: bold; color: red; }
-
-/*** errata pages ***/
-div.errata p.reported-by { font-size: 90%; color: #555; }
-div.errata p { margin-bottom: 0; }
-div.errata { border-bottom:1px solid #dfdfdf; padding-bottom: 0.5em; }
-div.last { border-bottom: 0px none; }
-#chapter-title span { font-size: 70%; }
-
/*** footer ***/
#ft { color:#487858; font-size:90%; padding-bottom: 2em; }
Please sign in to comment.
Something went wrong with that request. Please try again.