Skip to content

Commit

Permalink
docstring tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Malcolm Brooks authored and Malcolm Brooks committed Jul 2, 2018
1 parent 0c87c01 commit 114534e
Show file tree
Hide file tree
Showing 41 changed files with 1,250 additions and 1,414 deletions.
5 changes: 3 additions & 2 deletions ImageMetaTag/savefig.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ def image_file_postproc(filename, outfile=None, img_buf=None, img_converter=0,
* do_trim - switch to trim whitespace from the edge of the image
* trim_border - if do_trim then this can be used to define an integer number of pixels as a \
border around the trim.
* logo_file - a file, or list of files, to use as a logo (s), to be added to the image
* logo_width - the desired width of each single logo, in pixels. If the supplied image file \
* logo_file - a file, or list of image files, to be added as logo(s) to the image. Multiple \
files are grouped horizontally from left to right before being added.
* logo_width - the desired width of a single logo, in pixels. If the supplied image file \
is not the right size, it will be resized using a method that applies filters \
and antialiasing that works well for shrinking images with text to a much \
smaller size. The aspect ratio of the logo image is always maintained. \
Expand Down
Binary file modified docs/build/doctrees/ImageDict.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/db.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/index.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/savefig.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/simple.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/test.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/versions.doctree
Binary file not shown.
Binary file modified docs/build/doctrees/webpage.doctree
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/build/html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: faee5637de2d2030cbf54bdc0a9e4087
config: d14e19c66f4efecdcc9cac0ed15055e7
tags: 645f666f9bcd5a90fca523b33c5a78b7
105 changes: 52 additions & 53 deletions docs/build/html/ImageDict.html

Large diffs are not rendered by default.

571 changes: 287 additions & 284 deletions docs/build/html/_modules/ImageMetaTag/db.html

Large diffs are not rendered by default.

1,009 changes: 506 additions & 503 deletions docs/build/html/_modules/ImageMetaTag/webpage.html

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions docs/build/html/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Overview: module code &#8212; ImageMetaTag 0.7.3 documentation</title>
<title>Overview: module code &mdash; ImageMetaTag 0.7.3 documentation</title>

<link rel="stylesheet" href="../_static/sphinxdoc.css" type="text/css" />
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
Expand All @@ -23,12 +23,10 @@
<script type="text/javascript" src="../_static/jquery.js"></script>
<script type="text/javascript" src="../_static/underscore.js"></script>
<script type="text/javascript" src="../_static/doctools.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="top" title="ImageMetaTag 0.7.3 documentation" href="../index.html" />
</head>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
Expand All @@ -37,22 +35,25 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">ImageMetaTag 0.7.3 documentation</a> &#187;</li>
<li><a href="../index.html">ImageMetaTag 0.7.3 documentation</a> &raquo;</li>
</ul>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<p class="logo"><a href="../index.html">
<img class="logo" src="../_static/logo.png" alt="Logo"/>
</a></p>
<div id="searchbox" style="display: none" role="search">
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="../search.html" method="get">
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
Expand All @@ -61,21 +62,20 @@ <h3>Quick search</h3>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="body">

<h1>All modules for which code is available</h1>
<ul><li><a href="ImageMetaTag.html">ImageMetaTag</a></li>
<ul><li><a href="ImageMetaTag/db.html">ImageMetaTag.db</a></li>
<li><a href="ImageMetaTag/img_dict.html">ImageMetaTag.img_dict</a></li>
<li><a href="ImageMetaTag/savefig.html">ImageMetaTag.savefig</a></li>
<li><a href="ImageMetaTag/webpage.html">ImageMetaTag.webpage</a></li>
</ul>
</ul></ul>

</div>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
Expand All @@ -84,12 +84,12 @@ <h3>Navigation</h3>
<li class="right" >
<a href="../py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="nav-item nav-item-0"><a href="../index.html">ImageMetaTag 0.7.3 documentation</a> &#187;</li>
<li><a href="../index.html">ImageMetaTag 0.7.3 documentation</a> &raquo;</li>
</ul>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 2015-2018, British Crown Copyright.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.4.8.
<div class="footer">
&copy; Copyright 2015-2018, British Crown Copyright.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
</div>
</body>
</html>
94 changes: 10 additions & 84 deletions docs/build/html/_static/basic.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
* :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down Expand Up @@ -52,8 +52,6 @@ div.sphinxsidebar {
width: 230px;
margin-left: -100%;
font-size: 90%;
word-wrap: break-word;
overflow-wrap : break-word;
}

div.sphinxsidebar ul {
Expand Down Expand Up @@ -85,6 +83,10 @@ div.sphinxsidebar #searchbox input[type="text"] {
width: 170px;
}

div.sphinxsidebar #searchbox input[type="submit"] {
width: 30px;
}

img {
border: 0;
max-width: 100%;
Expand Down Expand Up @@ -185,13 +187,6 @@ div.genindex-jumpbox {

/* -- general body styles --------------------------------------------------- */

div.body p, div.body dd, div.body li, div.body blockquote {
-moz-hyphens: auto;
-ms-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
}

a.headerlink {
visibility: hidden;
}
Expand All @@ -202,10 +197,7 @@ h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
h6:hover > a.headerlink,
dt:hover > a.headerlink,
caption:hover > a.headerlink,
p.caption:hover > a.headerlink,
div.code-block-caption:hover > a.headerlink {
dt:hover > a.headerlink {
visibility: visible;
}

Expand Down Expand Up @@ -322,13 +314,6 @@ table.docutils {
border-collapse: collapse;
}

table caption span.caption-number {
font-style: italic;
}

table caption span.caption-text {
}

table.docutils td, table.docutils th {
padding: 1px 8px 1px 5px;
border-top: 0;
Expand Down Expand Up @@ -359,25 +344,6 @@ table.citation td {
border-bottom: none;
}

/* -- figures --------------------------------------------------------------- */

div.figure {
margin: 0.5em;
padding: 0.5em;
}

div.figure p.caption {
padding: 0.3em;
}

div.figure p.caption span.caption-number {
font-style: italic;
}

div.figure p.caption span.caption-text {
}


/* -- other body styles ----------------------------------------------------- */

ol.arabic {
Expand Down Expand Up @@ -440,10 +406,6 @@ dl.glossary dt {
font-size: 1.3em;
}

.sig-paren {
font-size: larger;
}

.versionmodified {
font-style: italic;
}
Expand Down Expand Up @@ -494,13 +456,6 @@ pre {
overflow-y: hidden; /* fixes display issues on Chrome browsers */
}

span.pre {
-moz-hyphens: none;
-ms-hyphens: none;
-webkit-hyphens: none;
hyphens: none;
}

td.linenos pre {
padding: 5px 0px;
border: 0;
Expand All @@ -516,51 +471,22 @@ table.highlighttable td {
padding: 0 0.5em 0 0.5em;
}

div.code-block-caption {
padding: 2px 5px;
font-size: small;
}

div.code-block-caption code {
background-color: transparent;
}

div.code-block-caption + div > div.highlight > pre {
margin-top: 0;
}

div.code-block-caption span.caption-number {
padding: 0.1em 0.3em;
font-style: italic;
}

div.code-block-caption span.caption-text {
}

div.literal-block-wrapper {
padding: 1em 1em 0;
}

div.literal-block-wrapper div.highlight {
margin: 0;
}

code.descname {
tt.descname {
background-color: transparent;
font-weight: bold;
font-size: 1.2em;
}

code.descclassname {
tt.descclassname {
background-color: transparent;
}

code.xref, a code {
tt.xref, a tt {
background-color: transparent;
font-weight: bold;
}

h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
h1 tt, h2 tt, h3 tt, h4 tt, h5 tt, h6 tt {
background-color: transparent;
}

Expand Down
55 changes: 3 additions & 52 deletions docs/build/html/_static/doctools.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* Sphinx JavaScript utilities for all documentation.
*
* :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
* :copyright: Copyright 2007-2014 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
Expand Down Expand Up @@ -91,30 +91,6 @@ jQuery.fn.highlightText = function(text, className) {
});
};

/*
* backward compatibility for jQuery.browser
* This will be supported until firefox bug is fixed.
*/
if (!jQuery.browser) {
jQuery.uaMatch = function(ua) {
ua = ua.toLowerCase();

var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
/(webkit)[ \/]([\w.]+)/.exec(ua) ||
/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
/(msie) ([\w.]+)/.exec(ua) ||
ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
[];

return {
browser: match[ 1 ] || "",
version: match[ 2 ] || "0"
};
};
jQuery.browser = {};
jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
}

/**
* Small JavaScript module for the documentation.
*/
Expand All @@ -124,7 +100,6 @@ var Documentation = {
this.fixFirefoxAnchorBug();
this.highlightSearchWords();
this.initIndexTable();

},

/**
Expand Down Expand Up @@ -177,10 +152,9 @@ var Documentation = {

/**
* workaround a firefox stupidity
* see: https://bugzilla.mozilla.org/show_bug.cgi?id=645075
*/
fixFirefoxAnchorBug : function() {
if (document.location.hash)
if (document.location.hash && $.browser.mozilla)
window.setTimeout(function() {
document.location.href += '';
}, 10);
Expand Down Expand Up @@ -253,29 +227,6 @@ var Documentation = {
});
var url = parts.join('/');
return path.substring(url.lastIndexOf('/') + 1, path.length - 1);
},

initOnKeyListeners: function() {
$(document).keyup(function(event) {
var activeElementType = document.activeElement.tagName;
// don't navigate when in search box or textarea
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT') {
switch (event.keyCode) {
case 37: // left
var prevHref = $('link[rel="prev"]').prop('href');
if (prevHref) {
window.location.href = prevHref;
return false;
}
case 39: // right
var nextHref = $('link[rel="next"]').prop('href');
if (nextHref) {
window.location.href = nextHref;
return false;
}
}
}
});
}
};

Expand All @@ -284,4 +235,4 @@ _ = Documentation.gettext;

$(document).ready(function() {
Documentation.init();
});
});
Binary file modified docs/build/html/_static/down-pressed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/build/html/_static/down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/build/html/_static/file.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions docs/build/html/_static/jquery.js

Large diffs are not rendered by default.

Binary file modified docs/build/html/_static/minus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/build/html/_static/plus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 114534e

Please sign in to comment.