Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Feb 27, 2024
1 parent ac0a645 commit 4f70dd9
Show file tree
Hide file tree
Showing 17 changed files with 81 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ee0531b4
eaa47b07
2 changes: 1 addition & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
2 changes: 1 addition & 1 deletion content/gsi/01-gsi.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
2 changes: 1 addition & 1 deletion content/gsi/02-convencionals.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
2 changes: 1 addition & 1 deletion content/gsi/03-radiances.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
2 changes: 1 addition & 1 deletion content/gsi/04-diagfiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
2 changes: 1 addition & 1 deletion content/gsi/05-tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
2 changes: 1 addition & 1 deletion content/observations/01-bufr.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
2 changes: 1 addition & 1 deletion content/observations/02-conv-bufr.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
2 changes: 1 addition & 1 deletion content/observations/03-rad-bufr.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
2 changes: 1 addition & 1 deletion contribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
2 changes: 1 addition & 1 deletion contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down Expand Up @@ -184,7 +184,7 @@ <h2 class="anchored" data-anchor-id="a-note-about-using-this-material">A note ab
<section id="citing-this-guide" class="level2">
<h2 class="anchored" data-anchor-id="citing-this-guide">Citing this guide</h2>
<p>You can cite this guide using its <a href="https://doi.org/10.5281/zenodo.10658632">Zenodo metadata and DOI.</a></p>
<p><a href="https://doi.org/10.5281/zenodo.2553043"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.2553043.svg?branch=master" alt="DOI"></a></p>
<p><a href="https://doi.org/10.5281/zenodo.10658632"><img src="https://zenodo.org/badge/DOI/10.5281/zenodo.10658632.svg?branch=master" alt="DOI"></a></p>
</section>
<section id="do-you-want-to-contribute" class="level2">
<h2 class="anchored" data-anchor-id="do-you-want-to-contribute">Do you want to contribute?</h2>
Expand Down
2 changes: 1 addition & 1 deletion license.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>

<meta charset="utf-8">
<meta name="generator" content="quarto-1.4.549">
<meta name="generator" content="quarto-1.4.550">

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">

Expand Down
2 changes: 1 addition & 1 deletion site_libs/bootstrap/bootstrap.min.css

Large diffs are not rendered by default.

65 changes: 52 additions & 13 deletions site_libs/quarto-search/quarto-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,18 @@ function showCopyLink(query, options) {
// create the index
var fuseIndex = undefined;
var shownWarning = false;

// fuse index options
const kFuseIndexOptions = {
keys: [
{ name: "title", weight: 20 },
{ name: "section", weight: 20 },
{ name: "text", weight: 10 },
],
ignoreLocation: true,
threshold: 0.1,
};

async function readSearchData() {
// Initialize the search index on demand
if (fuseIndex === undefined) {
Expand All @@ -685,17 +697,7 @@ async function readSearchData() {
shownWarning = true;
return;
}
// create fuse index
const options = {
keys: [
{ name: "title", weight: 20 },
{ name: "section", weight: 20 },
{ name: "text", weight: 10 },
],
ignoreLocation: true,
threshold: 0.1,
};
const fuse = new window.Fuse([], options);
const fuse = new window.Fuse([], kFuseIndexOptions);

// fetch the main search.json
const response = await fetch(offsetURL("search.json"));
Expand Down Expand Up @@ -1226,8 +1228,34 @@ function algoliaSearch(query, limit, algoliaOptions) {
});
}

function fuseSearch(query, fuse, fuseOptions) {
return fuse.search(query, fuseOptions).map((result) => {
let subSearchTerm = undefined;
let subSearchFuse = undefined;
const kFuseMaxWait = 125;

async function fuseSearch(query, fuse, fuseOptions) {
let index = fuse;
// Fuse.js using the Bitap algorithm for text matching which runs in
// O(nm) time (no matter the structure of the text). In our case this
// means that long search terms mixed with large index gets very slow
//
// This injects a subIndex that will be used once the terms get long enough
// Usually making this subindex is cheap since there will typically be
// a subset of results matching the existing query
if (subSearchFuse !== undefined && query.startsWith(subSearchTerm)) {
// Use the existing subSearchFuse
index = subSearchFuse;
} else if (subSearchFuse !== undefined) {
// The term changed, discard the existing fuse
subSearchFuse = undefined;
subSearchTerm = undefined;
}

// Search using the active fuse
const then = performance.now();
const resultsRaw = await index.search(query, fuseOptions);
const now = performance.now();

const results = resultsRaw.map((result) => {
const addParam = (url, name, value) => {
const anchorParts = url.split("#");
const baseUrl = anchorParts[0];
Expand All @@ -1244,4 +1272,15 @@ function fuseSearch(query, fuse, fuseOptions) {
crumbs: result.item.crumbs,
};
});

// If we don't have a subfuse and the query is long enough, go ahead
// and create a subfuse to use for subsequent queries
if (now - then > kFuseMaxWait && subSearchFuse === undefined) {
subSearchTerm = query;
subSearchFuse = new window.Fuse([], kFuseIndexOptions);
resultsRaw.forEach((rr) => {
subSearchFuse.add(rr.item);
});
}
return results;
}
26 changes: 13 additions & 13 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,54 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://paocorrales.github.io/DA-documentation/license.html</loc>
<lastmod>2024-02-14T16:24:04.706Z</lastmod>
<lastmod>2024-02-27T15:50:18.269Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/content/gsi/03-radiances.html</loc>
<lastmod>2024-02-14T16:24:04.698Z</lastmod>
<lastmod>2024-02-27T15:50:18.261Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/content/gsi/01-gsi.html</loc>
<lastmod>2024-02-14T16:24:04.698Z</lastmod>
<lastmod>2024-02-27T15:50:18.261Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/content/gsi/04-diagfiles.html</loc>
<lastmod>2024-02-14T16:24:04.698Z</lastmod>
<lastmod>2024-02-27T15:50:18.261Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/content/observations/03-rad-bufr.html</loc>
<lastmod>2024-02-14T16:24:04.702Z</lastmod>
<lastmod>2024-02-27T15:50:18.265Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/index.html</loc>
<lastmod>2024-02-14T16:24:04.706Z</lastmod>
<lastmod>2024-02-27T15:50:18.269Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/about.html</loc>
<lastmod>2024-02-14T16:24:04.698Z</lastmod>
<lastmod>2024-02-27T15:50:18.261Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/contributors.html</loc>
<lastmod>2024-02-14T16:24:04.706Z</lastmod>
<lastmod>2024-02-27T15:50:18.269Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/content/observations/02-conv-bufr.html</loc>
<lastmod>2024-02-14T16:24:04.702Z</lastmod>
<lastmod>2024-02-27T15:50:18.265Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/content/observations/01-bufr.html</loc>
<lastmod>2024-02-14T16:24:04.702Z</lastmod>
<lastmod>2024-02-27T15:50:18.265Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/content/gsi/02-convencionals.html</loc>
<lastmod>2024-02-14T16:24:04.698Z</lastmod>
<lastmod>2024-02-27T15:50:18.261Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/content/gsi/05-tutorial.html</loc>
<lastmod>2024-02-14T16:24:04.698Z</lastmod>
<lastmod>2024-02-27T15:50:18.261Z</lastmod>
</url>
<url>
<loc>https://paocorrales.github.io/DA-documentation/contribute.html</loc>
<lastmod>2024-02-14T16:24:04.706Z</lastmod>
<lastmod>2024-02-27T15:50:18.269Z</lastmod>
</url>
</urlset>

0 comments on commit 4f70dd9

Please sign in to comment.