Skip to content

Commit fac74a5

Browse files
committed
v3.3.6 latest documentation
1 parent 9ba099a commit fac74a5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+589
-517
lines changed

docs/Changelog.html

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111
<link rel="stylesheet" type="text/css" href="_static/graphviz.css" />
1212
<link rel="stylesheet" type="text/css" href="_static/copybutton.css" />
1313
<link rel="stylesheet" type="text/css" href="_static/customise-alabaster.css" />
14-
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
15-
<script type="text/javascript" src="_static/jquery.js"></script>
16-
<script type="text/javascript" src="_static/underscore.js"></script>
17-
<script type="text/javascript" src="_static/doctools.js"></script>
18-
<script type="text/javascript" src="_static/language_data.js"></script>
19-
<script type="text/javascript" src="_static/clipboard.min.js"></script>
20-
<script type="text/javascript" src="_static/copybutton.js"></script>
21-
<script type="text/javascript" src="_static/toggleprompt.js"></script>
14+
<script id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
15+
<script src="_static/jquery.js"></script>
16+
<script src="_static/underscore.js"></script>
17+
<script src="_static/doctools.js"></script>
18+
<script src="_static/language_data.js"></script>
19+
<script src="_static/clipboard.min.js"></script>
20+
<script src="_static/copybutton.js"></script>
21+
<script src="_static/toggleprompt.js"></script>
2222
<link rel="index" title="Index" href="genindex.html" />
2323
<link rel="search" title="Search" href="search.html" />
24+
<link rel="next" title="Contributing" href="contributing.html" />
2425
<link rel="prev" title="Releases" href="releases.html" />
2526

2627
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
@@ -36,7 +37,7 @@
3637

3738

3839

39-
<h1 class="logo"><a href="index.html">cfunits 3.3.5</a></h1>
40+
<h1 class="logo"><a href="index.html">cfunits 3.3.6</a></h1>
4041

4142

4243

@@ -64,20 +65,21 @@ <h3 id="searchlabel">Quick search</h3>
6465
</form>
6566
</div>
6667
</div>
67-
<script type="text/javascript">$('#searchbox').show(0);</script>
68+
<script>$('#searchbox').show(0);</script>
6869
<ul class="current">
6970
<li class="toctree-l1"><a class="reference internal" href="introduction.html"><strong>Introduction</strong></a></li>
7071
<li class="toctree-l1"><a class="reference internal" href="installation.html"><strong>Installation</strong></a></li>
71-
<li class="toctree-l1"><a class="reference internal" href="contributing.html"><strong>Contributing</strong></a></li>
7272
<li class="toctree-l1"><a class="reference internal" href="api_reference.html"><strong>API reference</strong></a></li>
7373
<li class="toctree-l1"><a class="reference internal" href="releases.html"><strong>Releases</strong></a></li>
7474
<li class="toctree-l1 current"><a class="current reference internal" href="#"><strong>Change log</strong></a></li>
75+
<li class="toctree-l1"><a class="reference internal" href="contributing.html"><strong>Contributing</strong></a></li>
7576
</ul>
7677
<div class="relations">
7778
<h3>Related Topics</h3>
7879
<ul>
7980
<li><a href="index.html">Documentation overview</a><ul>
8081
<li>Previous: <a href="releases.html" title="previous chapter"><strong>Releases</strong></a></li>
82+
<li>Next: <a href="contributing.html" title="next chapter"><strong>Contributing</strong></a></li>
8183
</ul></li>
8284
</ul>
8385
</div>
@@ -112,6 +114,15 @@ <h3>Related Topics</h3>
112114
<section id="change-log">
113115
<h1><strong>Change log</strong><a class="headerlink" href="#change-log" title="Permalink to this headline"></a></h1>
114116
<hr class="docutils" />
117+
<section id="version-3-3-6">
118+
<h2>Version 3.3.6<a class="headerlink" href="#version-3-3-6" title="Permalink to this headline"></a></h2>
119+
<p><strong>2023-05-03</strong></p>
120+
<ul class="simple">
121+
<li><p>New method: <code class="xref py py-obj docutils literal notranslate"><span class="pre">Units.__dask_tokenization__</span></code>
122+
(<a class="reference external" href="https://github.com/NCAS-CMS/cfunits/issues/50">https://github.com/NCAS-CMS/cfunits/issues/50</a>)</p></li>
123+
</ul>
124+
</section>
125+
<hr class="docutils" />
115126
<section id="version-3-3-5">
116127
<h2>Version 3.3.5<a class="headerlink" href="#version-3-3-5" title="Permalink to this headline"></a></h2>
117128
<p><strong>2022-09-22</strong></p>
@@ -187,10 +198,10 @@ <h2>Version 3.2.9<a class="headerlink" href="#version-3-2-9" title="Permalink to
187198
<h2>Version 3.2.8<a class="headerlink" href="#version-3-2-8" title="Permalink to this headline"></a></h2>
188199
<p><strong>2020-07-02</strong></p>
189200
<ul class="simple">
190-
<li><p>Fixed bug that caused failure when an <a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">int</span></code></a> or <a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">float</span></code></a> was input to
201+
<li><p>Fixed bug that caused failure when an <a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.11)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">int</span></code></a> or <a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.11)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">float</span></code></a> was input to
191202
<a class="reference internal" href="generated/cfunits.Units.conform.html#cfunits.Units.conform" title="cfunits.Units.conform"><code class="xref py py-obj docutils literal notranslate"><span class="pre">cfunits.Units.conform</span></code></a>
192203
(<a class="reference external" href="https://github.com/NCAS-CMS/cfunits/issues/9">https://github.com/NCAS-CMS/cfunits/issues/9</a>).</p></li>
193-
<li><p>Allowed <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#list" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">list</span></code></a> and <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#tuple" title="(in Python v3.10)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">tuple</span></code></a> to be input to <a class="reference internal" href="generated/cfunits.Units.conform.html#cfunits.Units.conform" title="cfunits.Units.conform"><code class="xref py py-obj docutils literal notranslate"><span class="pre">cfunits.Units.conform</span></code></a>
204+
<li><p>Allowed <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#list" title="(in Python v3.11)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">list</span></code></a> and <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#tuple" title="(in Python v3.11)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">tuple</span></code></a> to be input to <a class="reference internal" href="generated/cfunits.Units.conform.html#cfunits.Units.conform" title="cfunits.Units.conform"><code class="xref py py-obj docutils literal notranslate"><span class="pre">cfunits.Units.conform</span></code></a>
194205
(<a class="reference external" href="https://github.com/NCAS-CMS/cfunits/issues/9">https://github.com/NCAS-CMS/cfunits/issues/9</a>).</p></li>
195206
</ul>
196207
</section>
@@ -364,11 +375,11 @@ <h2>Version 1.0<a class="headerlink" href="#version-1-0" title="Permalink to thi
364375
<div class="clearer"></div>
365376
</div>
366377
<div class="footer">
367-
&copy;2022, NCAS | Page built on 2022-09-22.
378+
&copy;2023, NCAS | Page built on 2023-05-03.
368379

369380
|
370-
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.3.1</a>
371-
&amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
381+
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.4.5</a>
382+
&amp; <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.13</a>
372383

373384
</div>
374385

docs/_static/alabaster.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,9 @@ table.footnote td {
415415
}
416416

417417
dl {
418-
margin: 0;
418+
margin-left: 0;
419+
margin-right: 0;
420+
margin-top: 0;
419421
padding: 0;
420422
}
421423

docs/_static/basic.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx stylesheet -- basic theme.
66
*
7-
* :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/

docs/_static/copybutton.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ div.highlight {
3535
position: relative;
3636
}
3737

38-
.highlight:hover button.copybtn {
38+
/* Show the copybutton */
39+
.highlight:hover button.copybtn, button.copybtn.success {
3940
opacity: 1;
4041
}
4142

docs/_static/copybutton.js

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,25 @@ const clearSelection = () => {
102102
}
103103
}
104104

105-
// Changes tooltip text for two seconds, then changes it back
105+
// Changes tooltip text for a moment, then changes it back
106+
// We want the timeout of our `success` class to be a bit shorter than the
107+
// tooltip and icon change, so that we can hide the icon before changing back.
108+
var timeoutIcon = 2000;
109+
var timeoutSuccessClass = 1500;
110+
106111
const temporarilyChangeTooltip = (el, oldText, newText) => {
107112
el.setAttribute('data-tooltip', newText)
108113
el.classList.add('success')
109-
setTimeout(() => el.setAttribute('data-tooltip', oldText), 2000)
110-
setTimeout(() => el.classList.remove('success'), 2000)
114+
// Remove success a little bit sooner than we change the tooltip
115+
// So that we can use CSS to hide the copybutton first
116+
setTimeout(() => el.classList.remove('success'), timeoutSuccessClass)
117+
setTimeout(() => el.setAttribute('data-tooltip', oldText), timeoutIcon)
111118
}
112119

113120
// Changes the copy button icon for two seconds, then changes it back
114121
const temporarilyChangeIcon = (el) => {
115122
el.innerHTML = iconCheck;
116-
setTimeout(() => {el.innerHTML = iconCopy}, 2000)
123+
setTimeout(() => {el.innerHTML = iconCopy}, timeoutIcon)
117124
}
118125

119126
const addCopyButtonToCodeCells = () => {
@@ -125,7 +132,8 @@ const addCopyButtonToCodeCells = () => {
125132
}
126133

127134
// Add copybuttons to all of our code cells
128-
const codeCells = document.querySelectorAll('div.highlight pre')
135+
const COPYBUTTON_SELECTOR = 'div.highlight pre';
136+
const codeCells = document.querySelectorAll(COPYBUTTON_SELECTOR)
129137
codeCells.forEach((codeCell, index) => {
130138
const id = codeCellId(index)
131139
codeCell.setAttribute('id', id)
@@ -141,10 +149,25 @@ function escapeRegExp(string) {
141149
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
142150
}
143151

152+
/**
153+
* Removes excluded text from a Node.
154+
*
155+
* @param {Node} target Node to filter.
156+
* @param {string} exclude CSS selector of nodes to exclude.
157+
* @returns {DOMString} Text from `target` with text removed.
158+
*/
159+
function filterText(target, exclude) {
160+
const clone = target.cloneNode(true); // clone as to not modify the live DOM
161+
if (exclude) {
162+
// remove excluded nodes
163+
clone.querySelectorAll(exclude).forEach(node => node.remove());
164+
}
165+
return clone.innerText;
166+
}
167+
144168
// Callback when a copy button is clicked. Will be passed the node that was clicked
145169
// should then grab the text and replace pieces of text that shouldn't be used in output
146170
function formatCopyText(textContent, copybuttonPromptText, isRegexp = false, onlyCopyPromptLines = true, removePrompts = true, copyEmptyLines = true, lineContinuationChar = "", hereDocDelim = "") {
147-
148171
var regexp;
149172
var match;
150173

@@ -199,7 +222,12 @@ function formatCopyText(textContent, copybuttonPromptText, isRegexp = false, onl
199222

200223
var copyTargetText = (trigger) => {
201224
var target = document.querySelector(trigger.attributes['data-clipboard-target'].value);
202-
return formatCopyText(target.innerText, '$ ', false, true, true, true, '', '')
225+
226+
// get filtered text
227+
let exclude = '.linenos, .gp';
228+
229+
let text = filterText(target, exclude);
230+
return formatCopyText(text, '$ ', false, true, true, true, '', '')
203231
}
204232

205233
// Initialize with a callback so we can modify the text before copy

docs/_static/copybutton_funcs.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,25 @@ function escapeRegExp(string) {
22
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
33
}
44

5+
/**
6+
* Removes excluded text from a Node.
7+
*
8+
* @param {Node} target Node to filter.
9+
* @param {string} exclude CSS selector of nodes to exclude.
10+
* @returns {DOMString} Text from `target` with text removed.
11+
*/
12+
export function filterText(target, exclude) {
13+
const clone = target.cloneNode(true); // clone as to not modify the live DOM
14+
if (exclude) {
15+
// remove excluded nodes
16+
clone.querySelectorAll(exclude).forEach(node => node.remove());
17+
}
18+
return clone.innerText;
19+
}
20+
521
// Callback when a copy button is clicked. Will be passed the node that was clicked
622
// should then grab the text and replace pieces of text that shouldn't be used in output
723
export function formatCopyText(textContent, copybuttonPromptText, isRegexp = false, onlyCopyPromptLines = true, removePrompts = true, copyEmptyLines = true, lineContinuationChar = "", hereDocDelim = "") {
8-
924
var regexp;
1025
var match;
1126

docs/_static/doctools.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx JavaScript utilities for all documentation.
66
*
7-
* :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/
@@ -283,10 +283,11 @@ var Documentation = {
283283
},
284284

285285
initOnKeyListeners: function() {
286-
$(document).keyup(function(event) {
286+
$(document).keydown(function(event) {
287287
var activeElementType = document.activeElement.tagName;
288288
// don't navigate when in search box or textarea
289-
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT') {
289+
if (activeElementType !== 'TEXTAREA' && activeElementType !== 'INPUT' && activeElementType !== 'SELECT'
290+
&& !event.altKey && !event.ctrlKey && !event.metaKey && !event.shiftKey) {
290291
switch (event.keyCode) {
291292
case 37: // left
292293
var prevHref = $('link[rel="prev"]').prop('href');

docs/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var DOCUMENTATION_OPTIONS = {
22
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
3-
VERSION: '3.3.5',
3+
VERSION: '3.3.6',
44
LANGUAGE: 'None',
55
COLLAPSE_INDEX: false,
66
BUILDER: 'html',

docs/_static/graphviz.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Sphinx stylesheet -- graphviz extension.
66
*
7-
* :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
7+
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
88
* :license: BSD, see LICENSE for details.
99
*
1010
*/

docs/_static/language_data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* This script contains the language-specific data used by searchtools.js,
66
* namely the list of stopwords, stemmer, scorer and splitter.
77
*
8-
* :copyright: Copyright 2007-2019 by the Sphinx team, see AUTHORS.
8+
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
99
* :license: BSD, see LICENSE for details.
1010
*
1111
*/

0 commit comments

Comments
 (0)