Skip to content

Commit

Permalink
deploy: 634b0ff
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 7, 2024
0 parents commit b40c0fe
Show file tree
Hide file tree
Showing 117 changed files with 366,374 additions and 0 deletions.
Empty file added .nojekyll
Empty file.
296,011 changes: 296,011 additions & 0 deletions data/apple_url_list.csv

Large diffs are not rendered by default.

2,415 changes: 2,415 additions & 0 deletions data/gsc_country_month_report.csv

Large diffs are not rendered by default.

30,172 changes: 30,172 additions & 0 deletions data/gsc_query_month_report.csv

Large diffs are not rendered by default.

Binary file added data/images/serp_heatmap.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 data/images/status_codes_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,571 changes: 1,571 additions & 0 deletions data/serp_crypto.csv

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions data/status_code_chart.html

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions data/toyota_url_treemap.html

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions data/url_structure_tremap_chart.html

Large diffs are not rendered by default.

Binary file added data/url_to_treemap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,547 changes: 1,547 additions & 0 deletions ecdf.html

Large diffs are not rendered by default.

1,168 changes: 1,168 additions & 0 deletions flag.html

Large diffs are not rendered by default.

1,416 changes: 1,416 additions & 0 deletions flag_slides.html

Large diffs are not rendered by default.

1,148 changes: 1,148 additions & 0 deletions index.html

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions listings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"listing": "/index.html",
"items": [
"/value_counts_plus.html",
"/value_counts_plus_slides.html",
"/value_counts.html",
"/flag_slides.html",
"/flag.html",
"/racing_chart.html",
"/serp_heatmap.html",
"/status_codes.html",
"/style_table.html",
"/style_table_slides.html",
"/url_structure_slides.html",
"/url_structure.html",
"/ecdf.html"
]
}
]
1,602 changes: 1,602 additions & 0 deletions racing_chart.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sitemap: https://eliasdabbas.github.io/adviz/sitemap.xml
1,182 changes: 1,182 additions & 0 deletions search.json

Large diffs are not rendered by default.

2,252 changes: 2,252 additions & 0 deletions serp_heatmap.html

Large diffs are not rendered by default.

2,078 changes: 2,078 additions & 0 deletions site_libs/bootstrap/bootstrap-icons.css

Large diffs are not rendered by default.

Binary file added site_libs/bootstrap/bootstrap-icons.woff
Binary file not shown.
12 changes: 12 additions & 0 deletions site_libs/bootstrap/bootstrap.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions site_libs/bootstrap/bootstrap.min.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions site_libs/clipboard/clipboard.min.js

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

35 changes: 35 additions & 0 deletions site_libs/quarto-contrib/line-highlight-1.0.0/line-highlight.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
modified and reduced from
https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/formats/revealjs/plugins/line-highlight
*/

/* for source-line-numbers */
body:not(.modal-open) div.sourceCode pre code.has-line-highlights > span:not(.highlight-line) {
opacity: 0.4;
}

/* for output-line-numbers */
body:not(.modal-open) div.sourceCode pre.highlight code.has-line-highlights > span:not(.highlight-line) {
opacity: 0.4;
}

/* Adding hovering effect */
/* from https://github.com/shafayetShafee/line-highlight/issues/1#issue-1639343001 by @GShotwell*/

body:not(.modal-open) div.sourceCode:hover pre code.has-line-highlights > span:not(.highlight-line) {
opacity: 0.4;
}


body:not(.modal-open) div.sourceCode:hover pre code.has-line-highlights > span.highlight-line {
font-weight: 600;
}


body:not(.modal-open) div.sourceCode:hover pre.highlight code.has-line-highlights > span:not(.highlight-line) {
opacity: 0.4;
}

body:not(.modal-open) div.sourceCode:hover pre.highlight code.has-line-highlights > span.highlight-line {
font-weight: 600;
}
132 changes: 132 additions & 0 deletions site_libs/quarto-contrib/line-highlight-1.0.0/line-highlight.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
/*
modified and reduced from
https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/formats/revealjs/plugins/line-highlight
*/

window.document.addEventListener("DOMContentLoaded", function (event) {
const delimiters = {
step: "|",
line: ",",
lineRange: "-",
};

const regex = new RegExp(
"^[\\d" + Object.values(delimiters).join("") + "]+$"
);

function handleLinesSelector(attr) {
if (regex.test(attr)) {
return true;
} else {
return false;
}
}

function highlightCodeBlock(codeBlock) {
const highlightSteps = splitLineNumbers(
codeBlock.getAttribute(kCodeLineNumbersAttr)
);

if (highlightSteps.length) {
// If we have at least one step, we generate fragments
highlightSteps[0].forEach((highlight) => {
// Add expected class on <pre> for reveal CSS
codeBlock.parentNode.classList.add("code-wrapper");

// Select lines to highlight
spanToHighlight = [];
if (typeof highlight.last === "number") {
spanToHighlight = [].slice.call(
codeBlock.querySelectorAll(
":scope > span:nth-child(n+" +
highlight.first +
"):nth-child(-n+" +
highlight.last +
")"
)
);
} else if (typeof highlight.first === "number") {
spanToHighlight = [].slice.call(
codeBlock.querySelectorAll(
":scope > span:nth-child(" + highlight.first + ")"
)
);
}
if (spanToHighlight.length) {
// Add a class on <code> and <span> to select line to highlight
spanToHighlight.forEach((span) =>
span.classList.add("highlight-line")
);
codeBlock.classList.add("has-line-highlights");
}
});
}
}



function getHighlightedLineBounds(block) {
const highlightedLines = block.querySelectorAll(".highlight-line");
if (highlightedLines.length === 0) {
return { top: 0, bottom: 0 };
} else {
const firstHighlight = highlightedLines[0];
const lastHighlight = highlightedLines[highlightedLines.length - 1];

return {
top: firstHighlight.offsetTop,
bottom: lastHighlight.offsetTop + lastHighlight.offsetHeight,
};
}
}


function splitLineNumbers(lineNumbersAttr) {
// remove space
lineNumbersAttr = lineNumbersAttr.replace("/s/g", "");
// seperate steps (for fragment)
lineNumbersAttr = lineNumbersAttr.split(delimiters.step);

// for each step, calculate first and last line, if any
return lineNumbersAttr.map((highlights) => {
// detect lines
const lines = highlights.split(delimiters.line);
return lines.map((range) => {
if (/^[\d-]+$/.test(range)) {
range = range.split(delimiters.lineRange);
const firstLine = parseInt(range[0], 10);
const lastLine = range[1] ? parseInt(range[1], 10) : undefined;
return {
first: firstLine,
last: lastLine,
};
} else {
return {};
}
});
});
}


const kCodeLineNumbersAttr = "data-code-line-numbers";

const divSourceCode = document.querySelectorAll("div.sourceCode");

divSourceCode.forEach((el) => {
if (el.hasAttribute(kCodeLineNumbersAttr)) {
const codeLineAttr = el.getAttribute(kCodeLineNumbersAttr);
el.removeAttribute("data-code-line-numbers");
if (handleLinesSelector(codeLineAttr)) {
// Only process if attr is a string to select lines to highlights
// e.g "1|3,6|8-11"
const codeBlock = el.querySelectorAll("pre code");
codeBlock.forEach((code) => {
// move attributes on code block
code.setAttribute(kCodeLineNumbersAttr, codeLineAttr);
highlightCodeBlock(code);
});
}
}
});

});
Loading

0 comments on commit b40c0fe

Please sign in to comment.