Skip to content

Commit

Permalink
deploy: 2d3aa5e
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 17, 2025
1 parent acac2eb commit 1765fa0
Show file tree
Hide file tree
Showing 15 changed files with 297 additions and 310 deletions.
15 changes: 2 additions & 13 deletions dev/_static/basic.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
/*
* basic.css
* ~~~~~~~~~
*
* Sphinx stylesheet -- basic theme.
*
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/

/* -- main layout ----------------------------------------------------------- */
Expand Down Expand Up @@ -115,15 +108,11 @@ img {
/* -- search page ----------------------------------------------------------- */

ul.search {
margin: 10px 0 0 20px;
padding: 0;
margin-top: 10px;
}

ul.search li {
padding: 5px 0 5px 20px;
background-image: url(file.png);
background-repeat: no-repeat;
background-position: 0 7px;
padding: 5px 0;
}

ul.search li a {
Expand Down
7 changes: 0 additions & 7 deletions dev/_static/doctools.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
/*
* doctools.js
* ~~~~~~~~~~~
*
* Base JavaScript utilities for all Sphinx HTML documentation.
*
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
"use strict";

Expand Down
7 changes: 0 additions & 7 deletions dev/_static/language_data.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
/*
* language_data.js
* ~~~~~~~~~~~~~~~~
*
* This script contains the language-specific data used by searchtools.js,
* namely the list of stopwords, stemmer, scorer and splitter.
*
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/

var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"];
Expand Down
460 changes: 230 additions & 230 deletions dev/_static/pygments.css

Large diffs are not rendered by default.

38 changes: 25 additions & 13 deletions dev/_static/searchtools.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
/*
* searchtools.js
* ~~~~~~~~~~~~~~~~
*
* Sphinx JavaScript utilities for the full-text search.
*
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
"use strict";

Expand All @@ -20,7 +13,7 @@ if (typeof Scorer === "undefined") {
// and returns the new score.
/*
score: result => {
const [docname, title, anchor, descr, score, filename] = result
const [docname, title, anchor, descr, score, filename, kind] = result
return score
},
*/
Expand All @@ -47,6 +40,14 @@ if (typeof Scorer === "undefined") {
};
}

// Global search result kind enum, used by themes to style search results.
class SearchResultKind {
static get index() { return "index"; }
static get object() { return "object"; }
static get text() { return "text"; }
static get title() { return "title"; }
}

const _removeChildren = (element) => {
while (element && element.lastChild) element.removeChild(element.lastChild);
};
Expand All @@ -64,9 +65,13 @@ const _displayItem = (item, searchTerms, highlightTerms) => {
const showSearchSummary = DOCUMENTATION_OPTIONS.SHOW_SEARCH_SUMMARY;
const contentRoot = document.documentElement.dataset.content_root;

const [docName, title, anchor, descr, score, _filename] = item;
const [docName, title, anchor, descr, score, _filename, kind] = item;

let listItem = document.createElement("li");
// Add a class representing the item's type:
// can be used by a theme's CSS selector for styling
// See SearchResultKind for the class names.
listItem.classList.add(`kind-${kind}`);
let requestUrl;
let linkUrl;
if (docBuilder === "dirhtml") {
Expand Down Expand Up @@ -115,8 +120,10 @@ const _finishSearch = (resultCount) => {
"Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories."
);
else
Search.status.innerText = _(
"Search finished, found ${resultCount} page(s) matching the search query."
Search.status.innerText = Documentation.ngettext(
"Search finished, found one page matching the search query.",
"Search finished, found ${resultCount} pages matching the search query.",
resultCount,
).replace('${resultCount}', resultCount);
};
const _displayNextItem = (
Expand All @@ -138,7 +145,7 @@ const _displayNextItem = (
else _finishSearch(resultCount);
};
// Helper function used by query() to order search results.
// Each input is an array of [docname, title, anchor, descr, score, filename].
// Each input is an array of [docname, title, anchor, descr, score, filename, kind].
// Order the results by score (in opposite order of appearance, since the
// `_displayNextItem` function uses pop() to retrieve items) and then alphabetically.
const _orderResultsByScoreThenName = (a, b) => {
Expand Down Expand Up @@ -248,6 +255,7 @@ const Search = {
searchSummary.classList.add("search-summary");
searchSummary.innerText = "";
const searchList = document.createElement("ul");
searchList.setAttribute("role", "list");
searchList.classList.add("search");

const out = document.getElementById("search-results");
Expand Down Expand Up @@ -318,7 +326,7 @@ const Search = {
const indexEntries = Search._index.indexentries;

// Collect multiple result groups to be sorted separately and then ordered.
// Each is an array of [docname, title, anchor, descr, score, filename].
// Each is an array of [docname, title, anchor, descr, score, filename, kind].
const normalResults = [];
const nonMainIndexResults = [];

Expand All @@ -337,6 +345,7 @@ const Search = {
null,
score + boost,
filenames[file],
SearchResultKind.title,
]);
}
}
Expand All @@ -354,6 +363,7 @@ const Search = {
null,
score,
filenames[file],
SearchResultKind.index,
];
if (isMain) {
normalResults.push(result);
Expand Down Expand Up @@ -475,6 +485,7 @@ const Search = {
descr,
score,
filenames[match[0]],
SearchResultKind.object,
]);
};
Object.keys(objects).forEach((prefix) =>
Expand Down Expand Up @@ -585,6 +596,7 @@ const Search = {
null,
score,
filenames[file],
SearchResultKind.text,
]);
}
return results;
Expand Down
10 changes: 5 additions & 5 deletions dev/api/generated/hipsta.run_hipsta.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="index" title="Index" href="../../genindex.html" /><link rel="search" title="Search" href="../../search.html" /><link rel="next" title="hipsta.utils.map_values.mapValues" href="hipsta.utils.map_values.mapValues.html" /><link rel="prev" title="API Reference" href="../index.html" />

<!-- Generated with Sphinx 8.0.2 and Furo 2024.08.06 -->
<!-- Generated with Sphinx 8.1.3 and Furo 2024.08.06 -->
<title>hipsta.run_hipsta - Hipsta</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=8f2a1f02" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo.css?v=354aac6f" />
<link rel="stylesheet" type="text/css" href="../../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../../_static/sphinx-design.min.css?v=95c83b7e" />
Expand Down Expand Up @@ -333,7 +333,7 @@ <h1>hipsta.run_hipsta<a class="headerlink" href="#hipsta-run-hipsta" title="Link
</dd>
<dt class="field-even">Returns<span class="colon">:</span></dt>
<dd class="field-even"><dl class="simple">
<dt><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#dict" title="(in Python v3.12)"><code class="docutils literal notranslate"><span class="pre">dict</span></code></a></dt><dd><p>a dictionary of input arguments</p>
<dt><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#dict" title="(in Python v3.13)"><code class="docutils literal notranslate"><span class="pre">dict</span></code></a></dt><dd><p>a dictionary of input arguments</p>
</dd>
</dl>
</dd>
Expand Down Expand Up @@ -371,7 +371,7 @@ <h1>hipsta.run_hipsta<a class="headerlink" href="#hipsta-run-hipsta" title="Link
<div class="bottom-of-page">
<div class="left-details">
<div class="copyright">
Copyright &#169; 2024, Kersten Diers
Copyright &#169; 2025, Kersten Diers
</div>
Made with
<a href="https://github.com/pradyunsg/furo">Furo</a>
Expand Down Expand Up @@ -417,7 +417,7 @@ <h1>hipsta.run_hipsta<a class="headerlink" href="#hipsta-run-hipsta" title="Link
</aside>
</div>
</div><script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/scripts/furo.js?v=5fa4622c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down
8 changes: 4 additions & 4 deletions dev/api/generated/hipsta.utils.map_values.mapValues.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="index" title="Index" href="../../genindex.html" /><link rel="search" title="Search" href="../../search.html" /><link rel="prev" title="hipsta.run_hipsta" href="hipsta.run_hipsta.html" />

<!-- Generated with Sphinx 8.0.2 and Furo 2024.08.06 -->
<!-- Generated with Sphinx 8.1.3 and Furo 2024.08.06 -->
<title>hipsta.utils.map_values.mapValues - Hipsta</title>
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=8f2a1f02" />
<link rel="stylesheet" type="text/css" href="../../_static/styles/furo.css?v=354aac6f" />
<link rel="stylesheet" type="text/css" href="../../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../../_static/sphinx-design.min.css?v=95c83b7e" />
Expand Down Expand Up @@ -279,7 +279,7 @@ <h1>hipsta.utils.map_values.mapValues<a class="headerlink" href="#hipsta-utils-m
<div class="bottom-of-page">
<div class="left-details">
<div class="copyright">
Copyright &#169; 2024, Kersten Diers
Copyright &#169; 2025, Kersten Diers
</div>
Made with
<a href="https://github.com/pradyunsg/furo">Furo</a>
Expand Down Expand Up @@ -325,7 +325,7 @@ <h1>hipsta.utils.map_values.mapValues<a class="headerlink" href="#hipsta-utils-m
</aside>
</div>
</div><script src="../../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../../_static/scripts/furo.js?v=5fa4622c"></script>
<script src="../../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down
8 changes: 4 additions & 4 deletions dev/api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="hipsta.run_hipsta" href="generated/hipsta.run_hipsta.html" /><link rel="prev" title="Changes" href="../changes/index.html" />

<!-- Generated with Sphinx 8.0.2 and Furo 2024.08.06 -->
<!-- Generated with Sphinx 8.1.3 and Furo 2024.08.06 -->
<title>API Reference - Hipsta</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=8f2a1f02" />
<link rel="stylesheet" type="text/css" href="../_static/styles/furo.css?v=354aac6f" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
Expand Down Expand Up @@ -294,7 +294,7 @@ <h1>API Reference<a class="headerlink" href="#api-reference" title="Link to this
<div class="bottom-of-page">
<div class="left-details">
<div class="copyright">
Copyright &#169; 2024, Kersten Diers
Copyright &#169; 2025, Kersten Diers
</div>
Made with
<a href="https://github.com/pradyunsg/furo">Furo</a>
Expand All @@ -321,7 +321,7 @@ <h1>API Reference<a class="headerlink" href="#api-reference" title="Link to this
</aside>
</div>
</div><script src="../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/scripts/furo.js?v=5fa4622c"></script>
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down
8 changes: 4 additions & 4 deletions dev/changes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="API Reference" href="../api/index.html" /><link rel="prev" title="Tutorial" href="../tutorials/index.html" />

<!-- Generated with Sphinx 8.0.2 and Furo 2024.08.06 -->
<!-- Generated with Sphinx 8.1.3 and Furo 2024.08.06 -->
<title>Changes - Hipsta</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=8f2a1f02" />
<link rel="stylesheet" type="text/css" href="../_static/styles/furo.css?v=354aac6f" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
Expand Down Expand Up @@ -345,7 +345,7 @@ <h2>v0.1.0-beta<a class="headerlink" href="#v0-1-0-beta" title="Link to this hea
<div class="bottom-of-page">
<div class="left-details">
<div class="copyright">
Copyright &#169; 2024, Kersten Diers
Copyright &#169; 2025, Kersten Diers
</div>
Made with
<a href="https://github.com/pradyunsg/furo">Furo</a>
Expand Down Expand Up @@ -396,7 +396,7 @@ <h2>v0.1.0-beta<a class="headerlink" href="#v0-1-0-beta" title="Link to this hea
</aside>
</div>
</div><script src="../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/scripts/furo.js?v=5fa4622c"></script>
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down
12 changes: 6 additions & 6 deletions dev/documentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<meta name="color-scheme" content="light dark"><meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="index" title="Index" href="../genindex.html" /><link rel="search" title="Search" href="../search.html" /><link rel="next" title="Tutorial" href="../tutorials/index.html" /><link rel="prev" title="Hipsta" href="../index.html" />

<!-- Generated with Sphinx 8.0.2 and Furo 2024.08.06 -->
<!-- Generated with Sphinx 8.1.3 and Furo 2024.08.06 -->
<title>Documentation - Hipsta</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=a746c00c" />
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=8f2a1f02" />
<link rel="stylesheet" type="text/css" href="../_static/styles/furo.css?v=354aac6f" />
<link rel="stylesheet" type="text/css" href="../_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="../_static/sphinx-design.min.css?v=95c83b7e" />
Expand Down Expand Up @@ -328,12 +328,12 @@ <h3>As a command-line script:<a class="headerlink" href="#as-a-command-line-scri
<section id="as-a-python-package">
<h3>As a python package:<a class="headerlink" href="#as-a-python-package" title="Link to this heading"></a></h3>
<p>The hipsta scripts can also be run within a Python environment:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">hipsta</span>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span><span class="w"> </span><span class="nn">hipsta</span>
<span class="n">hipsta</span><span class="o">.</span><span class="n">run_hipsta</span><span class="p">(</span><span class="n">filename</span><span class="o">=</span><span class="s2">&quot;my_filename.mgz&quot;</span><span class="p">,</span> <span class="n">hemi</span><span class="o">=</span><span class="s2">&quot;lh&quot;</span><span class="p">,</span> <span class="n">lut</span><span class="o">=</span><span class="s2">&quot;freesurfer&quot;</span><span class="p">,</span> <span class="n">outputdir</span><span class="o">=</span><span class="s2">&quot;my_output_directory&quot;</span><span class="p">)</span>
</pre></div>
</div>
<p>A full list of available arguments for the <code class="docutils literal notranslate"><span class="pre">run_hipsta</span></code> function can be obtained with:</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span> <span class="nn">hipsta</span>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">import</span><span class="w"> </span><span class="nn">hipsta</span>
<span class="n">help</span><span class="p">(</span><span class="n">hipsta</span><span class="o">.</span><span class="n">run_hipsta</span><span class="p">)</span>
</pre></div>
</div>
Expand Down Expand Up @@ -582,7 +582,7 @@ <h2>References:<a class="headerlink" href="#references" title="Link to this head
<div class="bottom-of-page">
<div class="left-details">
<div class="copyright">
Copyright &#169; 2024, Kersten Diers
Copyright &#169; 2025, Kersten Diers
</div>
Made with
<a href="https://github.com/pradyunsg/furo">Furo</a>
Expand Down Expand Up @@ -638,7 +638,7 @@ <h2>References:<a class="headerlink" href="#references" title="Link to this head
</aside>
</div>
</div><script src="../_static/documentation_options.js?v=5929fcd5"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="../_static/scripts/furo.js?v=5fa4622c"></script>
<script src="../_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down
8 changes: 4 additions & 4 deletions dev/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<meta name="viewport" content="width=device-width,initial-scale=1"/>
<meta name="color-scheme" content="light dark"><link rel="index" title="Index" href="#" /><link rel="search" title="Search" href="search.html" />

<!-- Generated with Sphinx 8.0.2 and Furo 2024.08.06 --><title>Index - Hipsta</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=a746c00c" />
<!-- Generated with Sphinx 8.1.3 and Furo 2024.08.06 --><title>Index - Hipsta</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=8f2a1f02" />
<link rel="stylesheet" type="text/css" href="_static/styles/furo.css?v=354aac6f" />
<link rel="stylesheet" type="text/css" href="_static/copybutton.css?v=76b2166b" />
<link rel="stylesheet" type="text/css" href="_static/sphinx-design.min.css?v=95c83b7e" />
Expand Down Expand Up @@ -278,7 +278,7 @@ <h2>R</h2>
<div class="bottom-of-page">
<div class="left-details">
<div class="copyright">
Copyright &#169; 2024, Kersten Diers
Copyright &#169; 2025, Kersten Diers
</div>
Made with
<a href="https://github.com/pradyunsg/furo">Furo</a>
Expand All @@ -305,7 +305,7 @@ <h2>R</h2>
</aside>
</div>
</div><script src="_static/documentation_options.js?v=5929fcd5"></script>
<script src="_static/doctools.js?v=9a2dae69"></script>
<script src="_static/doctools.js?v=9bcbadda"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<script src="_static/scripts/furo.js?v=5fa4622c"></script>
<script src="_static/clipboard.min.js?v=a7894cd8"></script>
Expand Down
Loading

0 comments on commit 1765fa0

Please sign in to comment.