Permalink
Browse files

better v0

  • Loading branch information...
0 parents commit c09969d540707ebb7ba9eee76758abf2efe65772 @irskep committed Aug 10, 2013
Showing with 611 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +58 −0 LICENSE
  3. +14 −0 Readme.md
  4. +14 −0 better/layout.html
  5. +8 −0 better/sourcelink.html
  6. +314 −0 better/static/default.css_t
  7. +165 −0 better/static/sidebar.js_t
  8. +37 −0 better/theme.conf
@@ -0,0 +1 @@
+basic/
@@ -0,0 +1,58 @@
+License for the "default" theme by the Sphinx team, used as the basis
+for this theme
+==============
+
+Copyright (c) 2007-2013 by the Sphinx team (see AUTHORS file).
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+License for code contributed to this project
+============================================
+
+Copyright (c) 2013 Steve Johnson and better-sphinx-default-theme
+contributors. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+* Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,14 @@
+Better Sphinx Default Theme
+===========================
+
+This is a modified version of the Sphinx default theme with the following
+goals:
+
+* Remove frivolous colors, especially hard-coded ones
+* Improve readability by limiting width and using more whitespace
+* Encourage visual customization through CSS, not themeconf
+
+So far, only the first two goals have been met. [Open a ticket] if you'd like
+something changed.
+
+[Open a ticket]: https://github.com/irskep/better-sphinx-default-theme
@@ -0,0 +1,14 @@
+{%- extends "basic/layout.html" %}
+
+{% block extrahead %}
+ <link href='http://fonts.googleapis.com/css?family=Inconsolata:400,700' rel='stylesheet'>
+ <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic' rel='stylesheet' type='text/css'>
+{% endblock %}
+
+{% if not theme_enablesidebarsearch|tobool %}
+{% block sidebarsearch %}{% endblock %}
+{% endif %}
+
+{%- block sidebarsourcelink %}
+{%- include "sourcelink.html" %}
+{%- endblock %}
@@ -0,0 +1,8 @@
+{%- if show_source and has_source and sourcename %}
+<div class="sourcelink">
+ <a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow">
+ {{ _('Show page source') }}
+ </a>
+</div>
+
+{%- endif %}
Oops, something went wrong.

0 comments on commit c09969d

Please sign in to comment.