Skip to content

Commit 6896b76

Browse files
committed
deploy: 1ee4a18
1 parent 45c90e7 commit 6896b76

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 0fae0e3d51afbb90389c4059dfb73bf4
3+
config: a15e1b9986ff4ad9722afda5118d663c
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_modules/diffpy/pdfmorph/pdfplot.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ <h1>Source code for diffpy.pdfmorph.pdfplot</h1><div class="highlight"><pre>
9494

9595
<span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="k">as</span> <span class="nn">plt</span>
9696
<span class="kn">import</span> <span class="nn">numpy</span>
97-
<span class="kn">from</span> <span class="nn">bg_mpl_stylesheet.bg_mpl_stylesheet</span> <span class="kn">import</span> <span class="n">bg_mpl_style</span>
97+
<span class="kn">from</span> <span class="nn">bg_mpl_stylesheets.styles</span> <span class="kn">import</span> <span class="n">all_styles</span>
9898

99-
<span class="n">plt</span><span class="o">.</span><span class="n">style</span><span class="o">.</span><span class="n">use</span><span class="p">(</span><span class="n">bg_mpl_style</span><span class="p">)</span>
99+
<span class="n">plt</span><span class="o">.</span><span class="n">style</span><span class="o">.</span><span class="n">use</span><span class="p">(</span><span class="n">all_styles</span><span class="p">[</span><span class="s2">&quot;bg_style&quot;</span><span class="p">])</span>
100100

101101

102102
<span class="c1"># FIXME - make this return the figure object in the future, so several views</span>

_static/searchtools.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ const Search = {
178178

179179
htmlToText: (htmlString, anchor) => {
180180
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
181-
for (const removalQuery of [".headerlinks", "script", "style"]) {
181+
for (const removalQuery of [".headerlink", "script", "style"]) {
182182
htmlElement.querySelectorAll(removalQuery).forEach((el) => { el.remove() });
183183
}
184184
if (anchor) {
@@ -328,13 +328,14 @@ const Search = {
328328
for (const [title, foundTitles] of Object.entries(allTitles)) {
329329
if (title.toLowerCase().trim().includes(queryLower) && (queryLower.length >= title.length/2)) {
330330
for (const [file, id] of foundTitles) {
331-
let score = Math.round(100 * queryLower.length / title.length)
331+
const score = Math.round(Scorer.title * queryLower.length / title.length);
332+
const boost = titles[file] === title ? 1 : 0; // add a boost for document titles
332333
normalResults.push([
333334
docNames[file],
334335
titles[file] !== title ? `${titles[file]} > ${title}` : title,
335336
id !== null ? "#" + id : "",
336337
null,
337-
score,
338+
score + boost,
338339
filenames[file],
339340
]);
340341
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h1>diffpy.pdfmorph documentation<a class="headerlink" href="#diffpy-pdfmorph-do
8383
<p>diffpy.pdfmorph - Tools for manipulating and comparing PDF profiles.</p>
8484
<div class="line-block">
8585
<div class="line">Software version 0.1.1.</div>
86-
<div class="line">Last updated July 04, 2024.</div>
86+
<div class="line">Last updated July 17, 2024.</div>
8787
</div>
8888
<section id="introduction">
8989
<h2>Introduction<a class="headerlink" href="#introduction" title="Link to this heading"></a></h2>

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)