Skip to content

Commit

Permalink
Deploying to gh-pages from @ e9d1d66 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgasquez committed Oct 25, 2023
1 parent f255349 commit bdc49ca
Show file tree
Hide file tree
Showing 20 changed files with 1,057 additions and 232 deletions.
209 changes: 186 additions & 23 deletions README.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.3.450">
<meta name="generator" content="quarto-1.4.446">

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

Expand Down Expand Up @@ -45,7 +45,13 @@
"collapse-after": 3,
"panel-placement": "end",
"type": "overlay",
"limit": 20,
"limit": 50,
"keyboard-shortcut": [
"f",
"/",
"s"
],
"show-item-context": false,
"language": {
"search-no-results-text": "No results",
"search-matching-documents-text": "matching documents",
Expand All @@ -68,9 +74,9 @@

<div id="quarto-search-results"></div>
<header id="quarto-header" class="headroom fixed-top">
<nav class="navbar navbar-expand-lg navbar-dark ">
<nav class="navbar navbar-expand-lg " data-bs-theme="dark">
<div class="navbar-container container-fluid">
<div class="navbar-brand-container">
<div class="navbar-brand-container mx-auto">
<a href="./index.html" class="navbar-brand navbar-brand-logo">
<img src="https://em-content.zobj.net/thumbs/120/google/350/package_1f4e6.png" alt="" class="navbar-logo">
</a>
Expand All @@ -85,35 +91,35 @@
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav navbar-nav-scroll me-auto">
<li class="nav-item">
<a class="nav-link" href="./docs" rel="" target=""><i class="bi bi-sun" role="img">
<a class="nav-link" href="./docs"> <i class="bi bi-sun" role="img">
</i>
<span class="menu-text">dbt Docs</span></a>
<span class="menu-text">dbt Docs</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="./reports" rel="" target=""><i class="bi bi-book" role="img">
<a class="nav-link" href="./reports"> <i class="bi bi-book" role="img">
</i>
<span class="menu-text">Knowledge Base</span></a>
<span class="menu-text">Knowledge Base</span></a>
</li>
</ul>
<div class="quarto-navbar-tools ms-auto">
<a href="https://twitter.com/davidgasquez" rel="" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-twitter"></i></a>
</div> <!-- /navcollapse -->
<div class="quarto-navbar-tools">
<a href="https://twitter.com/davidgasquez" title="" class="quarto-navigation-tool px-1" aria-label=""><i class="bi bi-twitter"></i></a>
<div class="dropdown">
<a href="" title="" id="quarto-navigation-tool-dropdown-0" class="quarto-navigation-tool dropdown-toggle px-1" data-bs-toggle="dropdown" aria-expanded="false" aria-label=""><i class="bi bi-github"></i></a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="quarto-navigation-tool-dropdown-0">
<li>
<a class="dropdown-item quarto-navbar-tools ms-auto-item" href="https://github.com/davidgasquez/datadex">
<a class="dropdown-item quarto-navbar-tools-item" href="https://github.com/davidgasquez/datadex">
Source Code
</a>
</li>
<li>
<a class="dropdown-item quarto-navbar-tools ms-auto-item" href="https://github.com/davidgasquez/datadex/issues/new">
<a class="dropdown-item quarto-navbar-tools-item" href="https://github.com/davidgasquez/datadex/issues/new">
Create an Issue
</a>
</li>
</ul>
</div>
</div>
</div> <!-- /navcollapse -->
</div> <!-- /container-fluid -->
</nav>
</header>
Expand All @@ -127,6 +133,7 @@




<p align="center">
</p><h1 style="font-size:80px; font-weight: 800;" align="center">
D A T A D E X
Expand Down Expand Up @@ -161,18 +168,14 @@ <h3 class="anchored" data-anchor-id="what-can-you-do-with-datadex">🚀 What can
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><img src="https://user-images.githubusercontent.com/1682202/259458000-92984525-66bc-4410-8cb0-bd1b0cbfaf1d.png" class="img-fluid figure-img"></p>
<figcaption class="figure-caption">Dagster Asset_Group</figcaption>
<figcaption>Dagster Asset_Group</figcaption>
</figure>
</div>
</section>
<section id="setup" class="level2">
<h2 class="anchored" data-anchor-id="setup">⚙️ Setup</h2>
<p>The fastest way to start using Datadex is via <a href="https://code.visualstudio.com/docs/remote/containers">VSCode Remote Containers</a>. Once inside the develpment environment, you’ll only need to run <code>make deps</code>.</p>
<div class="quarto-figure quarto-figure-center">
<figure class="figure">
<p><a href="https://codespaces.new/davidgasquez/datadex"><img src="https://github.com/codespaces/badge.svg" class="img-fluid figure-img"></a></p>
</figure>
</div>
<p><a href="https://codespaces.new/davidgasquez/datadex"><img src="https://github.com/codespaces/badge.svg" class="img-fluid"></a></p>
<p>PS: The development environment can also run in your browser thanks to GitHub Codespaces!</p>
</section>
<section id="motivation" class="level2">
Expand Down Expand Up @@ -269,10 +272,9 @@ <h2 class="anchored" data-anchor-id="acknowledgements">👏 Acknowledgements</h2
// clear code selection
e.clearSelection();
});
function tippyHover(el, contentFn) {
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
content: contentFn,
maxWidth: 500,
delay: 100,
arrow: false,
Expand All @@ -282,8 +284,17 @@ <h2 class="anchored" data-anchor-id="acknowledgements">👏 Acknowledgements</h2
interactive: true,
interactiveBorder: 10,
theme: 'quarto',
placement: 'bottom-start'
placement: 'bottom-start',
};
if (contentFn) {
config.content = contentFn;
}
if (onTriggerFn) {
config.onTrigger = onTriggerFn;
}
if (onUntriggerFn) {
config.onUntrigger = onUntriggerFn;
}
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
Expand All @@ -297,6 +308,128 @@ <h2 class="anchored" data-anchor-id="acknowledgements">👏 Acknowledgements</h2
const note = window.document.getElementById(id);
return note.innerHTML;
});
}
const xrefs = window.document.querySelectorAll('a.quarto-xref');
const processXRef = (id, note) => {
// Strip column container classes
const stripColumnClz = (el) => {
el.classList.remove("page-full", "page-columns");
if (el.children) {
for (const child of el.children) {
stripColumnClz(child);
}
}
}
stripColumnClz(note)
const typesetMath = (el) => {
if (window.MathJax) {
// MathJax Typeset
window.MathJax.typeset([el]);
} else if (window.katex) {
// KaTeX Render
var mathElements = el.getElementsByClassName("math");
var macros = [];
for (var i = 0; i < mathElements.length; i++) {
var texText = mathElements[i].firstChild;
if (mathElements[i].tagName == "SPAN") {
window.katex.render(texText.data, mathElements[i], {
displayMode: mathElements[i].classList.contains('display'),
throwOnError: false,
macros: macros,
fleqn: false
});
}
}
}
}
if (id === null || id.startsWith('sec-')) {
// Special case sections, only their first couple elements
const container = document.createElement("div");
if (note.children && note.children.length > 2) {
for (let i = 0; i < 2; i++) {
container.appendChild(note.children[i].cloneNode(true));
}
typesetMath(container);
return container.innerHTML
} else {
typesetMath(note);
return note.innerHTML;
}
} else {
// Remove any anchor links if they are present
const anchorLink = note.querySelector('a.anchorjs-link');
if (anchorLink) {
anchorLink.remove();
}
typesetMath(note);
return note.innerHTML;
}
}
for (var i=0; i<xrefs.length; i++) {
const xref = xrefs[i];
tippyHover(xref, undefined, function(instance) {
instance.disable();
let url = xref.getAttribute('href');
let hash = undefined;
if (url.startsWith('#')) {
hash = url;
} else {
try { hash = new URL(url).hash; } catch {}
}
if (hash) {
const id = hash.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
if (note !== null) {
try {
const html = processXRef(id, note.cloneNode(true));
instance.setContent(html);
} finally {
instance.enable();
instance.show();
}
} else {
// See if we can fetch this
fetch(url.split('#')[0])
.then(res => res.text())
.then(html => {
const parser = new DOMParser();
const htmlDoc = parser.parseFromString(html, "text/html");
const note = htmlDoc.getElementById(id);
if (note !== null) {
const html = processXRef(id, note);
instance.setContent(html);
}
}).finally(() => {
instance.enable();
instance.show();
});
}
} else {
// See if we can fetch a full url (with no hash to target)
// This is a special case and we should probably do some content thinning / targeting
fetch(url)
.then(res => res.text())
.then(html => {
const parser = new DOMParser();
const htmlDoc = parser.parseFromString(html, "text/html");
const note = htmlDoc.querySelector('main.content');
if (note !== null) {
// This should only happen for chapter cross references
// (since there is no id in the URL)
// remove the first header
if (note.children.length > 0 && note.children[0].tagName === "HEADER") {
note.children[0].remove();
}
const html = processXRef(null, note);
instance.setContent(html);
}
}).finally(() => {
instance.enable();
instance.show();
});
}
}, function(instance) {
});
}
let selectedAnnoteEl;
const selectorForAnnotation = ( cell, annotation) => {
Expand Down Expand Up @@ -339,6 +472,7 @@ <h2 class="anchored" data-anchor-id="acknowledgements">👏 Acknowledgements</h2
}
div.style.top = top - 2 + "px";
div.style.height = height + 4 + "px";
div.style.left = 0;
let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
if (gutterDiv === null) {
gutterDiv = window.document.createElement("div");
Expand All @@ -364,6 +498,32 @@ <h2 class="anchored" data-anchor-id="acknowledgements">👏 Acknowledgements</h2
});
selectedAnnoteEl = undefined;
};
// Handle positioning of the toggle
window.addEventListener(
"resize",
throttle(() => {
elRect = undefined;
if (selectedAnnoteEl) {
selectCodeLines(selectedAnnoteEl);
}
}, 10)
);
function throttle(fn, ms) {
let throttle = false;
let timer;
return (...args) => {
if(!throttle) { // first call gets through
fn.apply(this, args);
throttle = true;
} else { // all the others get throttled
if(timer) clearTimeout(timer); // cancel #2
timer = setTimeout(() => {
fn.apply(this, args);
timer = throttle = false;
}, ms);
}
};
}
// Attach click handler to the DT
const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
for (const annoteDlNode of annoteDls) {
Expand Down Expand Up @@ -429,7 +589,9 @@ <h2 class="anchored" data-anchor-id="acknowledgements">👏 Acknowledgements</h2
<div class="nav-footer-left">
&nbsp;
</div>
<div class="nav-footer-center">Made with ❤️ by David Gasquez<div class="toc-actions"><div><i class="bi bi-github"></i></div><div class="action-links"><p><a href="https://github.com/davidgasquez/datadex/edit/main/README.md" class="toc-action">Edit this page</a></p><p><a href="https://github.com/davidgasquez/datadex/issues/new" class="toc-action">Report an issue</a></p></div></div></div>
<div class="nav-footer-center">
<p>Made with ❤️ by David Gasquez</p>
<div class="toc-actions"><ul><li><a href="https://github.com/davidgasquez/datadex/edit/main/README.md" class="toc-action"><i class="bi bi-github"></i>Edit this page</a></li><li><a href="https://github.com/davidgasquez/datadex/issues/new" class="toc-action"><i class="bi empty"></i>Report an issue</a></li></ul></div></div>
<div class="nav-footer-right">
&nbsp;
</div>
Expand All @@ -438,5 +600,6 @@ <h2 class="anchored" data-anchor-id="acknowledgements">👏 Acknowledgements</h2




<script src="site_libs/quarto-html/zenscroll-min.js"></script>
</body></html>
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

Binary file modified docs/graph.gpickle
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/graph_summary.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"_invocation_id": "00b070e8-1bd2-431b-95fc-6cfb46045108", "linked": {"0": {"name": "source.datadex.web.energy", "type": "source", "succ": [3]}, "1": {"name": "source.datadex.web.co2_global_trend", "type": "source", "succ": [5]}, "2": {"name": "source.datadex.public.raw_threatened_animal_species", "type": "source", "succ": [4]}, "3": {"name": "model.datadex.climate_energy", "type": "model"}, "4": {"name": "model.datadex.climate_theatened_animal_species", "type": "model"}, "5": {"name": "model.datadex.climate_co2_global_trend", "type": "model"}}}
{"_invocation_id": "ffce71e0-482c-4fee-96cd-c971e33b0b9a", "linked": {"0": {"name": "source.datadex.web.energy", "type": "source", "succ": [5]}, "1": {"name": "source.datadex.web.co2_global_trend", "type": "source", "succ": [4]}, "2": {"name": "source.datadex.public.raw_threatened_animal_species", "type": "source", "succ": [3]}, "3": {"name": "model.datadex.climate_theatened_animal_species", "type": "model"}, "4": {"name": "model.datadex.climate_co2_global_trend", "type": "model"}, "5": {"name": "model.datadex.climate_energy", "type": "model"}}}
2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/run_results.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.6.6", "generated_at": "2023-10-17T13:31:22.950055Z", "invocation_id": "00b070e8-1bd2-431b-95fc-6cfb46045108", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-10-17T13:31:22.925726Z", "completed_at": "2023-10-17T13:31:22.940165Z"}, {"name": "execute", "started_at": "2023-10-17T13:31:22.942114Z", "completed_at": "2023-10-17T13:31:22.942135Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.021056652069091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.datadex.climate_co2_global_trend"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-10-17T13:31:22.933699Z", "completed_at": "2023-10-17T13:31:22.940770Z"}, {"name": "execute", "started_at": "2023-10-17T13:31:22.944446Z", "completed_at": "2023-10-17T13:31:22.944455Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02317523956298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.datadex.climate_energy"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-10-17T13:31:22.936836Z", "completed_at": "2023-10-17T13:31:22.941583Z"}, {"name": "execute", "started_at": "2023-10-17T13:31:22.944906Z", "completed_at": "2023-10-17T13:31:22.944915Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.023267745971679688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.datadex.climate_theatened_animal_species"}], "elapsed_time": 0.9449026584625244, "args": {"project_dir": "dbt", "profiles_dir": "/workspaces/datadex/dbt", "static_parser": true, "defer": false, "invocation_command": "dbt docs generate --project-dir dbt", "quiet": false, "log_path": "dbt/logs", "log_file_max_bytes": 10485760, "select": [], "indirect_selection": "eager", "warn_error_options": {"include": [], "exclude": []}, "compile": true, "exclude": [], "version_check": true, "populate_cache": true, "partial_parse": true, "log_format_file": "debug", "partial_parse_file_diff": true, "which": "generate", "use_colors_file": true, "print": true, "macro_debugging": false, "introspect": true, "use_colors": true, "empty_catalog": false, "log_level": "info", "vars": {}, "enable_legacy_logger": false, "printer_width": 80, "send_anonymous_usage_stats": false, "favor_state": false, "log_format": "default", "cache_selected_only": false, "write_json": true, "strict_mode": false, "log_level_file": "debug"}}
{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.6.6", "generated_at": "2023-10-25T11:14:20.838856Z", "invocation_id": "ffce71e0-482c-4fee-96cd-c971e33b0b9a", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2023-10-25T11:14:20.816030Z", "completed_at": "2023-10-25T11:14:20.829603Z"}, {"name": "execute", "started_at": "2023-10-25T11:14:20.831974Z", "completed_at": "2023-10-25T11:14:20.831989Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.020308971405029297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.datadex.climate_co2_global_trend"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-10-25T11:14:20.823692Z", "completed_at": "2023-10-25T11:14:20.830080Z"}, {"name": "execute", "started_at": "2023-10-25T11:14:20.833364Z", "completed_at": "2023-10-25T11:14:20.833373Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.021428823471069336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.datadex.climate_energy"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2023-10-25T11:14:20.826546Z", "completed_at": "2023-10-25T11:14:20.831108Z"}, {"name": "execute", "started_at": "2023-10-25T11:14:20.835218Z", "completed_at": "2023-10-25T11:14:20.835225Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.022068262100219727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.datadex.climate_theatened_animal_species"}], "elapsed_time": 1.1964242458343506, "args": {"indirect_selection": "eager", "defer": false, "partial_parse_file_diff": true, "print": true, "invocation_command": "dbt docs generate --project-dir dbt", "introspect": true, "empty_catalog": false, "send_anonymous_usage_stats": false, "version_check": true, "quiet": false, "select": [], "log_level_file": "debug", "log_format_file": "debug", "printer_width": 80, "enable_legacy_logger": false, "static_parser": true, "macro_debugging": false, "partial_parse": true, "populate_cache": true, "log_level": "info", "strict_mode": false, "which": "generate", "project_dir": "dbt", "log_path": "dbt/logs", "exclude": [], "use_colors": true, "use_colors_file": true, "write_json": true, "favor_state": false, "log_file_max_bytes": 10485760, "compile": true, "log_format": "default", "vars": {}, "profiles_dir": "/workspaces/datadex/dbt", "cache_selected_only": false, "warn_error_options": {"include": [], "exclude": []}}}
Loading

0 comments on commit bdc49ca

Please sign in to comment.