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 57f3d4e commit 9352678
Show file tree
Hide file tree
Showing 20 changed files with 542 additions and 294 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c063c3f5
11bde3ab
91 changes: 68 additions & 23 deletions Projects/project1.html

Large diffs are not rendered by default.

89 changes: 65 additions & 24 deletions Projects/project2.html

Large diffs are not rendered by default.

89 changes: 65 additions & 24 deletions Projects/project3.html

Large diffs are not rendered by default.

89 changes: 65 additions & 24 deletions Projects/project4.html

Large diffs are not rendered by default.

89 changes: 65 additions & 24 deletions Projects/project5.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cleansing.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 competition.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 exploration.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 full_stack.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 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
2 changes: 1 addition & 1 deletion ml.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 projects.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 resume.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
248 changes: 124 additions & 124 deletions search.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion site_libs/bootstrap/bootstrap-dark.min.css

Large diffs are not rendered by default.

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;
}
52 changes: 26 additions & 26 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/story_telling.html</loc>
<lastmod>2024-02-08T18:43:08.340Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/exploration.html</loc>
<lastmod>2024-02-27T19:02:27.864Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/cleansing.html</loc>
<lastmod>2024-02-08T18:43:08.340Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/projects.html</loc>
<lastmod>2024-02-27T19:02:27.864Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/Projects/project3.html</loc>
<lastmod>2024-02-08T18:43:08.332Z</lastmod>
<lastmod>2024-02-27T19:02:27.856Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/Projects/project1.html</loc>
<lastmod>2024-02-08T18:43:08.332Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/Projects/project5.html</loc>
<lastmod>2024-02-27T19:02:27.856Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/Projects/project4.html</loc>
<lastmod>2024-02-08T18:43:08.332Z</lastmod>
<lastmod>2024-02-27T19:02:27.856Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/index.html</loc>
<lastmod>2024-02-08T18:43:08.340Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/cleansing.html</loc>
<lastmod>2024-02-27T19:02:27.864Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/ml.html</loc>
<lastmod>2024-02-08T18:43:08.340Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/index.html</loc>
<lastmod>2024-02-27T19:02:27.864Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/full_stack.html</loc>
<lastmod>2024-02-08T18:43:08.340Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/competition.html</loc>
<lastmod>2024-02-27T19:02:27.864Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/projects.html</loc>
<lastmod>2024-02-08T18:43:08.340Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/ml.html</loc>
<lastmod>2024-02-27T19:02:27.864Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/exploration.html</loc>
<lastmod>2024-02-08T18:43:08.340Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/resume.html</loc>
<lastmod>2024-02-27T19:02:27.864Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/Projects/project2.html</loc>
<lastmod>2024-02-08T18:43:08.332Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/Projects/project1.html</loc>
<lastmod>2024-02-27T19:02:27.856Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/Projects/project5.html</loc>
<lastmod>2024-02-08T18:43:08.332Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/Projects/project2.html</loc>
<lastmod>2024-02-27T19:02:27.856Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/resume.html</loc>
<lastmod>2024-02-08T18:43:08.340Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/full_stack.html</loc>
<lastmod>2024-02-27T19:02:27.864Z</lastmod>
</url>
<url>
<loc>https://byui-cse.github.io/byuids-portfolio/competition.html</loc>
<lastmod>2024-02-08T18:43:08.340Z</lastmod>
<loc>https://byui-cse.github.io/byuids-portfolio/story_telling.html</loc>
<lastmod>2024-02-27T19:02:27.864Z</lastmod>
</url>
</urlset>
2 changes: 1 addition & 1 deletion story_telling.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

0 comments on commit 9352678

Please sign in to comment.