Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Hi! I cleaned up your code for you! #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
306 changes: 153 additions & 153 deletions lib/docutils/writers/latex2e/docutils-05-compat.sty

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/docutils/writers/newlatex2e/base.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@
%\begin{minipage}[b]{#1}%
\includegraphics[width=#1,height=\textheight,keepaspectratio]{#2}%
%\end{minipage}%
}
}
\providecommand{\Dcurrentimagemaxwidth}{}
\providecommand{\Dsimpleimage}[1]{%
% Insert image, without much parametrization.
Expand Down
2 changes: 1 addition & 1 deletion lib/docutils/writers/pep_html/pep.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Default cascading style sheet for the PEP HTML output of Docutils.
*/

/* "! important" is used here to override other ``margin-top`` and
``margin-bottom`` styles that are later in the stylesheet or
``margin-bottom`` styles that are later in the stylesheet or
more specific. See http://www.w3.org/TR/CSS1#the-cascade */
.first {
margin-top: 0 ! important }
Expand Down
2 changes: 1 addition & 1 deletion lib/docutils/writers/s5_html/themes/big-black/framing.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* The following styles size, place, and layer the slide components.
Edit these if you want to change the overall slide layout.
The commented lines can be uncommented (and modified, if necessary)
The commented lines can be uncommented (and modified, if necessary)
to help you with the rearrangement process. */

/* target = 1024x768 */
Expand Down
2 changes: 1 addition & 1 deletion lib/docutils/writers/s5_html/themes/big-black/pretty.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ div#controls {position: absolute; left: 50%; bottom: 0;
html>body div#controls {position: fixed; padding: 0 0 1em 0; top: auto;}
div#controls form {position: absolute; bottom: 0; right: 0; width: 100%;
margin: 0; padding: 0;}
#controls #navLinks a {padding: 0; margin: 0 0.5em;
#controls #navLinks a {padding: 0; margin: 0 0.5em;
border: none; color: #888; cursor: pointer;}
#controls #navList {height: 1em;}
#controls #navList #jumplist {position: absolute; bottom: 0; right: 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/docutils/writers/s5_html/themes/big-white/framing.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This file has been placed in the public domain. */
/* The following styles size, place, and layer the slide components.
Edit these if you want to change the overall slide layout.
The commented lines can be uncommented (and modified, if necessary)
The commented lines can be uncommented (and modified, if necessary)
to help you with the rearrangement process. */

/* target = 1024x768 */
Expand Down
2 changes: 1 addition & 1 deletion lib/docutils/writers/s5_html/themes/big-white/pretty.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ div#controls {position: absolute; left: 50%; bottom: 0;
html>body div#controls {position: fixed; padding: 0 0 1em 0; top: auto;}
div#controls form {position: absolute; bottom: 0; right: 0; width: 100%;
margin: 0; padding: 0;}
#controls #navLinks a {padding: 0; margin: 0 0.5em;
#controls #navLinks a {padding: 0; margin: 0 0.5em;
border: none; color: #005; cursor: pointer;}
#controls #navList {height: 1em;}
#controls #navList #jumplist {position: absolute; bottom: 0; right: 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/docutils/writers/s5_html/themes/default/framing.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This file has been placed in the public domain. */
/* The following styles size, place, and layer the slide components.
Edit these if you want to change the overall slide layout.
The commented lines can be uncommented (and modified, if necessary)
The commented lines can be uncommented (and modified, if necessary)
to help you with the rearrangement process. */

/* target = 1024x768 */
Expand Down
2 changes: 1 addition & 1 deletion lib/docutils/writers/s5_html/themes/default/pretty.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ div#controls {position: absolute; left: 50%; bottom: 0;
html>body div#controls {position: fixed; padding: 0 0 1em 0; top: auto;}
div#controls form {position: absolute; bottom: 0; right: 0; width: 100%;
margin: 0; padding: 0;}
#controls #navLinks a {padding: 0; margin: 0 0.5em;
#controls #navLinks a {padding: 0; margin: 0 0.5em;
background: #005; border: none; color: #779; cursor: pointer;}
#controls #navList {height: 1em;}
#controls #navList #jumplist {position: absolute; bottom: 0; right: 0;
Expand Down
2 changes: 1 addition & 1 deletion lib/docutils/writers/s5_html/themes/default/s5-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The system will likely break if you do. */

div#header, div#footer, div#controls, .slide {position: absolute;}
html>body div#header, html>body div#footer,
html>body div#header, html>body div#footer,
html>body div#controls, html>body .slide {position: fixed;}
.handout {display: none;}
.layout {display: block;}
Expand Down
12 changes: 6 additions & 6 deletions lib/docutils/writers/s5_html/themes/default/slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function nodeValue(node) {
var children = node.childNodes;
for (var i = 0; i < children.length; ++i) {
result += nodeValue(children[i]);
}
}
}
else if (node.nodeType == 3) {
result = node.nodeValue;
Expand Down Expand Up @@ -118,8 +118,8 @@ function currentSlide() {
cs = document.currentSlide;
footer = document.footer.childNodes;
}
cs.innerHTML = '<span id="csHere">' + snum + '<\/span> ' +
'<span id="csSep">\/<\/span> ' +
cs.innerHTML = '<span id="csHere">' + snum + '<\/span> ' +
'<span id="csSep">\/<\/span> ' +
'<span id="csTotal">' + (smax-1) + '<\/span>';
if (snum == 0) {
vis = 'hidden';
Expand All @@ -129,7 +129,7 @@ function currentSlide() {
if (footer_nodes[i].nodeType == 1) {
footer_nodes[i].style.visibility = vis;
}
}
}
}

function go(step) {
Expand Down Expand Up @@ -305,7 +305,7 @@ function clicker(e) {
target = window.event.srcElement;
e = window.event;
} else target = e.target;
if (target.href != null || hasValue(target.rel, 'external') || isParentOrSelf(target, 'controls') || isParentOrSelf(target,'embed') || isParentOrSelf(target, 'object')) return true;
if (target.href != null || hasValue(target.rel, 'external') || isParentOrSelf(target, 'controls') || isParentOrSelf(target,'embed') || isParentOrSelf(target, 'object')) return true;
if (!e.which || e.which == 1) {
if (!incrementals[snum] || incpos >= incrementals[snum].length) {
go(1);
Expand Down Expand Up @@ -466,7 +466,7 @@ function notOperaFix() {

function getIncrementals(obj) {
var incrementals = new Array();
if (!obj)
if (!obj)
return incrementals;
var children = obj.childNodes;
for (var i = 0; i < children.length; i++) {
Expand Down
4 changes: 2 additions & 2 deletions lib/docutils/writers/s5_html/themes/medium-black/pretty.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sup {font-size: smaller; line-height: 1px;}
.slide img.leader {display: block; margin: 0 auto;}
.slide tt {font-size: 90%;}

div#footer {font-family: sans-serif; color: #AAA;
div#footer {font-family: sans-serif; color: #AAA;
font-size: 0.5em; font-weight: bold; padding: 1em 0;}
#footer h1 {display: block; padding: 0 1em;}
#footer h2 {display: block; padding: 0.8em 1em 0;}
Expand All @@ -35,7 +35,7 @@ div#controls {position: absolute; left: 50%; bottom: 0;
html>body div#controls {position: fixed; padding: 0 0 1em 0; top: auto;}
div#controls form {position: absolute; bottom: 0; right: 0; width: 100%;
margin: 0; padding: 0;}
#controls #navLinks a {padding: 0; margin: 0 0.5em;
#controls #navLinks a {padding: 0; margin: 0 0.5em;
border: none; color: #888; cursor: pointer;}
#controls #navList {height: 1em;}
#controls #navList #jumplist {position: absolute; bottom: 0; right: 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This file has been placed in the public domain. */
/* The following styles size, place, and layer the slide components.
Edit these if you want to change the overall slide layout.
The commented lines can be uncommented (and modified, if necessary)
The commented lines can be uncommented (and modified, if necessary)
to help you with the rearrangement process. */

/* target = 1024x768 */
Expand Down
4 changes: 2 additions & 2 deletions lib/docutils/writers/s5_html/themes/medium-white/pretty.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sup {font-size: smaller; line-height: 1px;}
.slide img.leader {display: block; margin: 0 auto;}
.slide tt {font-size: 90%;}

div#footer {font-family: sans-serif; color: #444;
div#footer {font-family: sans-serif; color: #444;
font-size: 0.5em; font-weight: bold; padding: 1em 0;}
#footer h1 {display: block; padding: 0 1em;}
#footer h2 {display: block; padding: 0.8em 1em 0;}
Expand All @@ -35,7 +35,7 @@ div#controls {position: absolute; left: 50%; bottom: 0;
html>body div#controls {position: fixed; padding: 0 0 1em 0; top: auto;}
div#controls form {position: absolute; bottom: 0; right: 0; width: 100%;
margin: 0; padding: 0;}
#controls #navLinks a {padding: 0; margin: 0 0.5em;
#controls #navLinks a {padding: 0; margin: 0 0.5em;
border: none; color: #888; cursor: pointer;}
#controls #navList {height: 1em;}
#controls #navList #jumplist {position: absolute; bottom: 0; right: 0;
Expand Down
4 changes: 2 additions & 2 deletions lib/docutils/writers/s5_html/themes/small-black/pretty.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sup {font-size: smaller; line-height: 1px;}
.slide img.leader {display: block; margin: 0 auto;}
.slide tt {font-size: 90%;}

div#footer {font-family: sans-serif; color: #AAA;
div#footer {font-family: sans-serif; color: #AAA;
font-size: 0.5em; font-weight: bold; padding: 1em 0;}
#footer h1 {display: block; padding: 0 1em;}
#footer h2 {display: block; padding: 0.8em 1em 0;}
Expand All @@ -35,7 +35,7 @@ div#controls {position: absolute; left: 50%; bottom: 0;
html>body div#controls {position: fixed; padding: 0 0 1em 0; top: auto;}
div#controls form {position: absolute; bottom: 0; right: 0; width: 100%;
margin: 0; padding: 0;}
#controls #navLinks a {padding: 0; margin: 0 0.5em;
#controls #navLinks a {padding: 0; margin: 0 0.5em;
border: none; color: #888; cursor: pointer;}
#controls #navList {height: 1em;}
#controls #navList #jumplist {position: absolute; bottom: 0; right: 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* This file has been placed in the public domain. */
/* The following styles size, place, and layer the slide components.
Edit these if you want to change the overall slide layout.
The commented lines can be uncommented (and modified, if necessary)
The commented lines can be uncommented (and modified, if necessary)
to help you with the rearrangement process. */

/* target = 1024x768 */
Expand Down
4 changes: 2 additions & 2 deletions lib/docutils/writers/s5_html/themes/small-white/pretty.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sup {font-size: smaller; line-height: 1px;}
.slide img.leader {display: block; margin: 0 auto;}
.slide tt {font-size: 90%;}

div#footer {font-family: sans-serif; color: #444;
div#footer {font-family: sans-serif; color: #444;
font-size: 0.5em; font-weight: bold; padding: 1em 0;}
#footer h1 {display: block; padding: 0 1em;}
#footer h2 {display: block; padding: 0.8em 1em 0;}
Expand All @@ -35,7 +35,7 @@ div#controls {position: absolute; left: 50%; bottom: 0;
html>body div#controls {position: fixed; padding: 0 0 1em 0; top: auto;}
div#controls form {position: absolute; bottom: 0; right: 0; width: 100%;
margin: 0; padding: 0;}
#controls #navLinks a {padding: 0; margin: 0 0.5em;
#controls #navLinks a {padding: 0; margin: 0 0.5em;
border: none; color: #888; cursor: pointer;}
#controls #navList {height: 1em;}
#controls #navList #jumplist {position: absolute; bottom: 0; right: 0;
Expand Down
4 changes: 2 additions & 2 deletions themes/default/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ <h2>Posts</h2>
|
<a href="{{config.url_prefix}}/admin/post/{{post.key.id}}">Edit</a>
|
<form id="delete_form_{{post.key.id}}"
action="{{config.url_prefix}}/admin/post/delete/{{post.key.id}}" method="post"
<form id="delete_form_{{post.key.id}}"
action="{{config.url_prefix}}/admin/post/delete/{{post.key.id}}" method="post"
style="display:inline;margin:0;padding:0;background:none;border:none;">
<a href="#" onclick="javascript:delete_post('{{post.key.id}}');">Delete</a>
</form>
Expand Down
4 changes: 2 additions & 2 deletions themes/default/admin/indexpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ <h2>Pages</h2>
|
<a href="{{config.url_prefix}}/admin/page/{{page.path|escape}}">Edit</a>
|
<form id="page_delete_form_{{page.path|escape}}"
action="{{config.url_prefix}}/admin/page/delete/{{page.path|escape}}" method="post"
<form id="page_delete_form_{{page.path|escape}}"
action="{{config.url_prefix}}/admin/page/delete/{{page.path|escape}}" method="post"
style="display:inline;margin:0;padding:0;background:none;border:none;">
<a href="#" onclick="javascript:delete_page('{{page.path|escape}}');">Delete</a>
</form>
Expand Down
22 changes: 11 additions & 11 deletions themes/default/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% if config.highlighting_style %}
<link rel="stylesheet" type="text/css" media="screen" href="{{config.url_prefix}}/static/{{config.theme}}/css/pygments_{{config.highlighting_style}}.css" />
{% endif %}
<link rel="alternate" type="application/atom+xml"
<link rel="alternate" type="application/atom+xml"
href="{% if config.feed_proxy %}{{ config.feed_proxy }}{% else %}{{config.url_prefix}}/feeds/atom.xml{% endif %}" />
<link rel="SHORTCUT ICON" href="{{config.url_prefix}}/static/{{config.theme}}/favicon.ico"/>
{% if config.rel_me %}
Expand All @@ -23,17 +23,17 @@
{% block head %}{% endblock %}
</head>
<body>
<div id="header-wrap"><div id="header" class="container_16">
<h1 id="logo-text"><a href="{{config.url_prefix}}/" title="">{{config.blog_name}}</a></h1>
<div id="header-wrap"><div id="header" class="container_16">
<h1 id="logo-text"><a href="{{config.url_prefix}}/" title="">{{config.blog_name}}</a></h1>
<p id="intro">{{config.slogan}}</p>
<div id="nav">
<ul>
<li{% ifequal generator_class "IndexContentGenerator" %} id="current"{% endifequal %}><a href="{{config.url_prefix}}/">Home</a></li>
<li{% ifequal generator_class "ArchiveIndexContentGenerator" %} id="current"{% else %}{% ifequal generator_class "ArchivePageContentGenerator" %} id="current"{% endifequal %}{% endifequal %}><a href="{{config.url_prefix}}/archive/">Archive</a></li>
{% block menu %}{% endblock %}
</ul>
</div>
<div id="header-image"></div>
</div>
<div id="header-image"></div>
<form id="quick-search" action="{{config.url_prefix}}/search" method="get">
<p>
<label for="q">Search:</label>
Expand Down Expand Up @@ -94,25 +94,25 @@ <h3>Members</h3>



</div>
</div>
</div></div>
<div id="footer-wrapper" class="container_16">
<div id="footer-bottom">
<p class="bottom-left">
<p class="bottom-left">
&nbsp; &copy; {{config.author_name}} &nbsp; &nbsp;
Design by : <a href="http://www.styleshout.com/">styleshout</a>
</p>
Design by : <a href="http://www.styleshout.com/">styleshout</a>
</p>
<p class="bottom-right" >
<a href="{{config.url_prefix}}/">Home</a> |
<a href="{% if config.feed_proxy %}
{{ config.feed_proxy }}
{% else %}
{{config.url_prefix}}/feeds/atom.xml
{% endif %}">Atom</a> |
<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> |
<a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> |
<a href="http://validator.w3.org/check/referer">XHTML</a>
</p>
</div>
</div>
</div>
{% if config.analytics_id and not devel and not is_admin %}
<script type="text/javascript">
Expand Down