Skip to content

Commit

Permalink
Deploying to gh-pages from @ 83317bb 🚀
Browse files Browse the repository at this point in the history
cforgaci committed Dec 17, 2024
1 parent e4cd0e3 commit 102faa0
Showing 44 changed files with 21,875 additions and 730 deletions.
114 changes: 42 additions & 72 deletions 404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

91 changes: 34 additions & 57 deletions LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

87 changes: 34 additions & 53 deletions articles/index.html
123 changes: 49 additions & 74 deletions articles/using-rcoins.html
110 changes: 45 additions & 65 deletions authors.html
7 changes: 7 additions & 0 deletions deps/bootstrap-5.3.1/bootstrap.bundle.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions deps/bootstrap-5.3.1/bootstrap.bundle.min.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions deps/bootstrap-5.3.1/bootstrap.min.css

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js
7 changes: 7 additions & 0 deletions deps/clipboard.js-2.0.11/clipboard.min.js
13 changes: 13 additions & 0 deletions deps/data-deps.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<script src="deps/jquery-3.6.0/jquery-3.6.0.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link href="deps/bootstrap-5.3.1/bootstrap.min.css" rel="stylesheet" />
<script src="deps/bootstrap-5.3.1/bootstrap.bundle.min.js"></script>
<link href="deps/font-awesome-6.5.2/css/all.min.css" rel="stylesheet" />
<link href="deps/font-awesome-6.5.2/css/v4-shims.min.css" rel="stylesheet" />
<script src="deps/headroom-0.11.0/headroom.min.js"></script>
<script src="deps/headroom-0.11.0/jQuery.headroom.min.js"></script>
<script src="deps/bootstrap-toc-1.0.1/bootstrap-toc.min.js"></script>
<script src="deps/clipboard.js-2.0.11/clipboard.min.js"></script>
<script src="deps/search-1.0.0/autocomplete.jquery.min.js"></script>
<script src="deps/search-1.0.0/fuse.min.js"></script>
<script src="deps/search-1.0.0/mark.min.js"></script>
8,028 changes: 8,028 additions & 0 deletions deps/font-awesome-6.5.2/css/all.css

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions deps/font-awesome-6.5.2/css/all.min.css

Large diffs are not rendered by default.

2,194 changes: 2,194 additions & 0 deletions deps/font-awesome-6.5.2/css/v4-shims.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions deps/font-awesome-6.5.2/css/v4-shims.min.css

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions deps/headroom-0.11.0/headroom.min.js
7 changes: 7 additions & 0 deletions deps/headroom-0.11.0/jQuery.headroom.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*!
* headroom.js v0.9.4 - Give your page some headroom. Hide your header until you need it
* Copyright (c) 2017 Nick Williams - http://wicky.nillia.ms/headroom.js
* License: MIT
*/

!function(a){a&&(a.fn.headroom=function(b){return this.each(function(){var c=a(this),d=c.data("headroom"),e="object"==typeof b&&b;e=a.extend(!0,{},Headroom.options,e),d||(d=new Headroom(this,e),d.init(),c.data("headroom",d)),"string"==typeof b&&(d[b](),"destroy"===b&&c.removeData("headroom"))})},a("[data-headroom]").each(function(){var b=a(this);b.headroom(b.data())}))}(window.Zepto||window.jQuery);
10,881 changes: 10,881 additions & 0 deletions deps/jquery-3.6.0/jquery-3.6.0.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions deps/jquery-3.6.0/jquery-3.6.0.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions deps/jquery-3.6.0/jquery-3.6.0.min.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions deps/search-1.0.0/autocomplete.jquery.min.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions deps/search-1.0.0/fuse.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions deps/search-1.0.0/mark.min.js

Large diffs are not rendered by default.

141 changes: 58 additions & 83 deletions index.html

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions katex-auto.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// https://github.com/jgm/pandoc/blob/29fa97ab96b8e2d62d48326e1b949a71dc41f47a/src/Text/Pandoc/Writers/HTML.hs#L332-L345
document.addEventListener("DOMContentLoaded", function () {
var mathElements = document.getElementsByClassName("math");
var macros = [];
for (var i = 0; i < mathElements.length; i++) {
var texText = mathElements[i].firstChild;
if (mathElements[i].tagName == "SPAN") {
katex.render(texText.data, mathElements[i], {
displayMode: mathElements[i].classList.contains("display"),
throwOnError: false,
macros: macros,
fleqn: false
});
}}});
85 changes: 85 additions & 0 deletions lightswitch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@

/*!
* Color mode toggler for Bootstrap's docs (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors
* Licensed under the Creative Commons Attribution 3.0 Unported License.
* Updates for {pkgdown} by the {bslib} authors, also licensed under CC-BY-3.0.
*/

const getStoredTheme = () => localStorage.getItem('theme')
const setStoredTheme = theme => localStorage.setItem('theme', theme)

const getPreferredTheme = () => {
const storedTheme = getStoredTheme()
if (storedTheme) {
return storedTheme
}

return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
}

const setTheme = theme => {
if (theme === 'auto') {
document.documentElement.setAttribute('data-bs-theme', (window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'))
} else {
document.documentElement.setAttribute('data-bs-theme', theme)
}
}

function bsSetupThemeToggle () {
'use strict'

const showActiveTheme = (theme, focus = false) => {
var activeLabel, activeIcon;

document.querySelectorAll('[data-bs-theme-value]').forEach(element => {
const buttonTheme = element.getAttribute('data-bs-theme-value')
const isActive = buttonTheme == theme

element.classList.toggle('active', isActive)
element.setAttribute('aria-pressed', isActive)

if (isActive) {
activeLabel = element.textContent;
activeIcon = element.querySelector('span').classList.value;
}
})

const themeSwitcher = document.querySelector('#dropdown-lightswitch')
if (!themeSwitcher) {
return
}

themeSwitcher.setAttribute('aria-label', activeLabel)
themeSwitcher.querySelector('span').classList.value = activeIcon;

if (focus) {
themeSwitcher.focus()
}
}

window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
const storedTheme = getStoredTheme()
if (storedTheme !== 'light' && storedTheme !== 'dark') {
setTheme(getPreferredTheme())
}
})

window.addEventListener('DOMContentLoaded', () => {
showActiveTheme(getPreferredTheme())

document
.querySelectorAll('[data-bs-theme-value]')
.forEach(toggle => {
toggle.addEventListener('click', () => {
const theme = toggle.getAttribute('data-bs-theme-value')
setTheme(theme)
setStoredTheme(theme)
showActiveTheme(theme, true)
})
})
})
}

setTheme(getPreferredTheme());
bsSetupThemeToggle();
94 changes: 39 additions & 55 deletions news/index.html
184 changes: 119 additions & 65 deletions pkgdown.js
Original file line number Diff line number Diff line change
@@ -2,83 +2,43 @@
(function($) {
$(function() {

$('.navbar-fixed-top').headroom();
$('nav.navbar').headroom();

$('body').css('padding-top', $('.navbar').height() + 10);
$(window).resize(function(){
$('body').css('padding-top', $('.navbar').height() + 10);
Toc.init({
$nav: $("#toc"),
$scope: $("main h2, main h3, main h4, main h5, main h6")
});

$('[data-toggle="tooltip"]').tooltip();

var cur_path = paths(location.pathname);
var links = $("#navbar ul li a");
var max_length = -1;
var pos = -1;
for (var i = 0; i < links.length; i++) {
if (links[i].getAttribute("href") === "#")
continue;
// Ignore external links
if (links[i].host !== location.host)
continue;

var nav_path = paths(links[i].pathname);

var length = prefix_length(nav_path, cur_path);
if (length > max_length) {
max_length = length;
pos = i;
}
}

// Add class to parent <li>, and enclosing <li> if in dropdown
if (pos >= 0) {
var menu_anchor = $(links[pos]);
menu_anchor.parent().addClass("active");
menu_anchor.closest("li.dropdown").addClass("active");
}
});

function paths(pathname) {
var pieces = pathname.split("/");
pieces.shift(); // always starts with /

var end = pieces[pieces.length - 1];
if (end === "index.html" || end === "")
pieces.pop();
return(pieces);
}

// Returns -1 if not found
function prefix_length(needle, haystack) {
if (needle.length > haystack.length)
return(-1);

// Special case for length-0 haystack, since for loop won't run
if (haystack.length === 0) {
return(needle.length === 0 ? 0 : -1);
if ($('#toc').length) {
$('body').scrollspy({
target: '#toc',
offset: $("nav.navbar").outerHeight() + 1
});
}

for (var i = 0; i < haystack.length; i++) {
if (needle[i] != haystack[i])
return(i);
}
// Activate popovers
$('[data-bs-toggle="popover"]').popover({
container: 'body',
html: true,
trigger: 'focus',
placement: "top",
sanitize: false,
});

return(haystack.length);
}
$('[data-bs-toggle="tooltip"]').tooltip();

/* Clipboard --------------------------*/

function changeTooltipMessage(element, msg) {
var tooltipOriginalTitle=element.getAttribute('data-original-title');
element.setAttribute('data-original-title', msg);
var tooltipOriginalTitle=element.getAttribute('data-bs-original-title');
element.setAttribute('data-bs-original-title', msg);
$(element).tooltip('show');
element.setAttribute('data-original-title', tooltipOriginalTitle);
element.setAttribute('data-bs-original-title', tooltipOriginalTitle);
}

if(ClipboardJS.isSupported()) {
$(document).ready(function() {
var copyButton = "<button type='button' class='btn btn-primary btn-copy-ex' type = 'submit' title='Copy to clipboard' aria-label='Copy to clipboard' data-toggle='tooltip' data-placement='left auto' data-trigger='hover' data-clipboard-copy><i class='fa fa-copy'></i></button>";
var copyButton = "<button type='button' class='btn btn-primary btn-copy-ex' title='Copy to clipboard' aria-label='Copy to clipboard' data-toggle='tooltip' data-placement='left' data-trigger='hover' data-clipboard-copy><i class='fa fa-copy'></i></button>";

$("div.sourceCode").addClass("hasCopyButton");

@@ -89,20 +49,114 @@
$('.btn-copy-ex').tooltip({container: 'body'});

// Initialize clipboard:
var clipboardBtnCopies = new ClipboardJS('[data-clipboard-copy]', {
var clipboard = new ClipboardJS('[data-clipboard-copy]', {
text: function(trigger) {
return trigger.parentNode.textContent.replace(/\n#>[^\n]*/g, "");
}
});

clipboardBtnCopies.on('success', function(e) {
clipboard.on('success', function(e) {
changeTooltipMessage(e.trigger, 'Copied!');
e.clearSelection();
});

clipboardBtnCopies.on('error', function() {
clipboard.on('error', function(e) {
changeTooltipMessage(e.trigger,'Press Ctrl+C or Command+C to copy');
});

});
}

/* Search marking --------------------------*/
var url = new URL(window.location.href);
var toMark = url.searchParams.get("q");
var mark = new Mark("main#main");
if (toMark) {
mark.mark(toMark, {
accuracy: {
value: "complementary",
limiters: [",", ".", ":", "/"],
}
});
}

/* Search --------------------------*/
/* Adapted from https://github.com/rstudio/bookdown/blob/2d692ba4b61f1e466c92e78fd712b0ab08c11d31/inst/resources/bs4_book/bs4_book.js#L25 */
// Initialise search index on focus
var fuse;
$("#search-input").focus(async function(e) {
if (fuse) {
return;
}

$(e.target).addClass("loading");
var response = await fetch($("#search-input").data("search-index"));
var data = await response.json();

var options = {
keys: ["what", "text", "code"],
ignoreLocation: true,
threshold: 0.1,
includeMatches: true,
includeScore: true,
};
fuse = new Fuse(data, options);

$(e.target).removeClass("loading");
});

// Use algolia autocomplete
var options = {
autoselect: true,
debug: true,
hint: false,
minLength: 2,
};
var q;
async function searchFuse(query, callback) {
await fuse;

var items;
if (!fuse) {
items = [];
} else {
q = query;
var results = fuse.search(query, { limit: 20 });
items = results
.filter((x) => x.score <= 0.75)
.map((x) => x.item);
if (items.length === 0) {
items = [{dir:"Sorry 😿",previous_headings:"",title:"No results found.",what:"No results found.",path:window.location.href}];
}
}
callback(items);
}
$("#search-input").autocomplete(options, [
{
name: "content",
source: searchFuse,
templates: {
suggestion: (s) => {
if (s.title == s.what) {
return `${s.dir} > <div class="search-details"> ${s.title}</div>`;
} else if (s.previous_headings == "") {
return `${s.dir} > <div class="search-details"> ${s.title}</div> > ${s.what}`;
} else {
return `${s.dir} > <div class="search-details"> ${s.title}</div> > ${s.previous_headings} > ${s.what}`;
}
},
},
},
]).on('autocomplete:selected', function(event, s) {
window.location.href = s.path + "?q=" + q + "#" + s.id;
});
});
})(window.jQuery || window.$)

document.addEventListener('keydown', function(event) {
// Check if the pressed key is '/'
if (event.key === '/') {
event.preventDefault(); // Prevent any default action associated with the '/' key
document.getElementById('search-input').focus(); // Set focus to the search input
}
});
5 changes: 4 additions & 1 deletion pkgdown.yml
Original file line number Diff line number Diff line change
@@ -3,4 +3,7 @@ pkgdown: 2.1.1
pkgdown_sha: ~
articles:
using-rcoins: using-rcoins.html
last_built: 2024-12-16T15:44Z
last_built: 2024-12-17T18:16Z
urls:
reference: https://cityriverspaces.github.io/rcoins/reference
article: https://cityriverspaces.github.io/rcoins/articles
106 changes: 43 additions & 63 deletions reference/bucharest.html
Binary file added reference/figures/continuous-streets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added reference/figures/streets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
125 changes: 57 additions & 68 deletions reference/index.html
109 changes: 45 additions & 64 deletions reference/stroke.html
1 change: 1 addition & 0 deletions search.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<urlset xmlns = 'http://www.sitemaps.org/schemas/sitemap/0.9'>
<url><loc>/404.html</loc></url>
<url><loc>/LICENSE.html</loc></url>
<url><loc>/articles/index.html</loc></url>
<url><loc>/articles/using-rcoins.html</loc></url>
<url><loc>/authors.html</loc></url>
<url><loc>/index.html</loc></url>
<url><loc>/news/index.html</loc></url>
<url><loc>/reference/bucharest.html</loc></url>
<url><loc>/reference/index.html</loc></url>
<url><loc>/reference/stroke.html</loc></url>
<url><loc>https://cityriverspaces.github.io/rcoins/404.html</loc></url>
<url><loc>https://cityriverspaces.github.io/rcoins/LICENSE.html</loc></url>
<url><loc>https://cityriverspaces.github.io/rcoins/articles/index.html</loc></url>
<url><loc>https://cityriverspaces.github.io/rcoins/articles/using-rcoins.html</loc></url>
<url><loc>https://cityriverspaces.github.io/rcoins/authors.html</loc></url>
<url><loc>https://cityriverspaces.github.io/rcoins/index.html</loc></url>
<url><loc>https://cityriverspaces.github.io/rcoins/news/index.html</loc></url>
<url><loc>https://cityriverspaces.github.io/rcoins/reference/bucharest.html</loc></url>
<url><loc>https://cityriverspaces.github.io/rcoins/reference/index.html</loc></url>
<url><loc>https://cityriverspaces.github.io/rcoins/reference/stroke.html</loc></url>
</urlset>

0 comments on commit 102faa0

Please sign in to comment.