Skip to content

Commit

Permalink
feat: fix root redirect; add motion_planning scaffold
Browse files Browse the repository at this point in the history
  • Loading branch information
charleneleong-ai committed May 18, 2024
1 parent 209e07c commit 0f7b800
Show file tree
Hide file tree
Showing 40 changed files with 1,048 additions and 292 deletions.
4 changes: 1 addition & 3 deletions _extensions/shafayetShafee/add-code-files/_extension.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
title: Add Code Files
authors:
authors:
- name: quarto-ext
- name: Shafayet Khan Shafee
version: 1.1.0
quarto-required: ">=1.2"
contributes:
filters:
- add-code-files.lua


12 changes: 6 additions & 6 deletions _extensions/shafayetShafee/add-code-files/add-code-files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ local function ensureHtmlDeps()
end


-- remove the nth line
-- remove the nth line
local function dedent (line, n)
return line:sub(1,n):gsub(" ","") .. line:sub(n+1)
end

-- function for reading the content of included file and including the
-- function for reading the content of included file and including the
-- content
local function source_include(filepath, startLine, endLine, dedentLine, lang, filename,
local function source_include(filepath, startLine, endLine, dedentLine, lang, filename,
line_number, code_filename)
local add_source = {
CodeBlock = function(cb)
Expand All @@ -44,7 +44,7 @@ local function source_include(filepath, startLine, endLine, dedentLine, lang, fi
end
end
number = number + 1
end
end
fh:close()
if lang then
cb.classes = {lang, "cell-code"}
Expand All @@ -57,7 +57,7 @@ local function source_include(filepath, startLine, endLine, dedentLine, lang, fi
if line_number then
cb.classes:insert('number-lines')
end
end
end
return pandoc.CodeBlock(content, cb.attr)
end
}
Expand Down Expand Up @@ -88,7 +88,7 @@ function Div(el)
code_filename = nil
end
end
local div = el:walk(source_include(filepath, startLine, endLine,
local div = el:walk(source_include(filepath, startLine, endLine,
dedent_line, lang, filename, line_number, code_filename))
return div
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ document.querySelectorAll('div[data-code-filename]').forEach(div => {
let filename = div.getAttribute('data-code-filename');
let summary = div.querySelector('summary');
summary.innerText = filename;
})

})
1 change: 1 addition & 0 deletions _redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/ /blog
1 change: 1 addition & 0 deletions _site/_redirects
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/ /blog
68 changes: 34 additions & 34 deletions _site/blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
</style>
Expand Down Expand Up @@ -73,12 +73,12 @@
const listingTargetEl = window.document.querySelector('#listing-listing .list');
if (!listingTargetEl) {
// No listing discovered, do not attach.
return;
return;
}

const options = {
valueNames: ['listing-date','listing-title','listing-author','listing-image','listing-description','listing-categories',{ data: ['index'] },{ data: ['categories'] },{ data: ['listing-date-sort'] },{ data: ['listing-file-modified-sort'] }],

searchColumns: ["listing-date","listing-title","listing-author","listing-image","listing-description","listing-categories"],
};

Expand Down Expand Up @@ -149,29 +149,29 @@
<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="../projects/index.html">
<a class="nav-link" href="../projects/index.html">
<span class="menu-text">Projects</span></a>
</li>
</li>
<li class="nav-item">
<a class="nav-link active" href="../blog/index.html" aria-current="page">
<a class="nav-link active" href="../blog/index.html" aria-current="page">
<span class="menu-text">Blog</span></a>
</li>
</li>
</ul>
<ul class="navbar-nav navbar-nav-scroll ms-auto">
<li class="nav-item">
<a class="nav-link" href="../about/index.html">
<a class="nav-link" href="../about/index.html">
<span class="menu-text">Charlene Leong</span></a>
</li>
</li>
<li class="nav-item compact">
<a class="nav-link" href="https://github.com/charleneleong-ai/"> <i class="bi bi-github" role="img">
</i>
</i>
<span class="menu-text"></span></a>
</li>
</li>
<li class="nav-item compact">
<a class="nav-link" href="https://www.linkedin.com/in/charleneleong/"> <i class="bi bi-linkedin" role="img">
</i>
</i>
<span class="menu-text"></span></a>
</li>
</li>
</ul>
</div> <!-- /navcollapse -->
<div class="quarto-navbar-tools">
Expand All @@ -186,21 +186,21 @@
<h1 class="title">Blog</h1>
</div>
</div>


<div class="quarto-title-meta column-page-left">




</div>


</header><div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-full page-navbar">
<!-- sidebar -->
<!-- margin-sidebar -->
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">

<h5 class="quarto-listing-category-title">Categories</h5><div class="quarto-listing-category category-default"><div class="category" data-category="">All <span class="quarto-category-count">(2)</span></div><div class="category" data-category="analysis">analysis <span class="quarto-category-count">(1)</span></div><div class="category" data-category="code">code <span class="quarto-category-count">(1)</span></div><div class="category" data-category="model">model <span class="quarto-category-count">(1)</span></div><div class="category" data-category="news">news <span class="quarto-category-count">(1)</span></div></div></div>
<!-- main -->
<main class="content quarto-banner-title-block column-page-left" id="quarto-document-content">
Expand Down Expand Up @@ -254,15 +254,15 @@ <h3 class="no-anchor listing-title">
</a>
</div>
</div>
<div class="quarto-post image-right" data-index="1" data-categories="news" data-listing-date-sort="1715558400000" data-listing-file-modified-sort="1716021653661" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="1">
<div class="quarto-post image-right" data-index="1" data-categories="news" data-listing-date-sort="1715558400000" data-listing-file-modified-sort="1716028034047" data-listing-date-modified-sort="NaN" data-listing-reading-time-sort="1" data-listing-word-count-sort="1">
<div class="thumbnail">
<p><a href="../blog/posts/mamba/index.html" class="no-external"></a></p><a href="../blog/posts/mamba/index.html" class="no-external">
<p><img src="../blog/posts/mamba/image.jpg" class="thumbnail-image"></p>
</a><p><a href="../blog/posts/mamba/index.html" class="no-external"></a></p>
</div>
<div class="body">
<h3 class="no-anchor listing-title">
<a href="../blog/posts/mamba/index.html" class="no-external">Welcome</a>
<a href="../blog/posts/mamba/index.html" class="no-external">Mamba</a>
</h3>
<div class="listing-subtitle">
<a href="../blog/posts/mamba/index.html" class="no-external"></a>
Expand Down Expand Up @@ -311,7 +311,7 @@ <h3 class="no-anchor listing-title">
toggleBodyColorMode(bsSheetEl);
}
}
toggleBodyColorPrimary();
toggleBodyColorPrimary();
const icon = "";
const anchorJS = new window.AnchorJS();
anchorJS.options = {
Expand All @@ -321,7 +321,7 @@ <h3 class="no-anchor listing-title">
anchorJS.add('.anchored');
const isCodeAnnotation = (el) => {
for (const clz of el.classList) {
if (clz.startsWith('code-annotation-')) {
if (clz.startsWith('code-annotation-')) {
return true;
}
}
Expand Down Expand Up @@ -352,11 +352,11 @@ <h3 class="no-anchor listing-title">
button.setAttribute("data-bs-toggle", "tooltip");
button.setAttribute("data-bs-placement", "left");
button.setAttribute("data-bs-title", "Copied!");
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
customClass: "code-copy-button-tooltip",
offset: [0, -8]});
tooltip.show();
tooltip.show();
}
setTimeout(function() {
if (tooltip) {
Expand Down Expand Up @@ -419,7 +419,7 @@ <h3 class="no-anchor listing-title">
if (onUntriggerFn) {
config.onUntrigger = onUntriggerFn;
}
window.tippy(el, config);
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i<noterefs.length; i++) {
Expand Down Expand Up @@ -495,7 +495,7 @@ <h3 class="no-anchor listing-title">
tippyHover(xref, undefined, function(instance) {
instance.disable();
let url = xref.getAttribute('href');
let hash = undefined;
let hash = undefined;
if (url.startsWith('#')) {
hash = url;
} else {
Expand Down Expand Up @@ -523,7 +523,7 @@ <h3 class="no-anchor listing-title">
if (note !== null) {
const html = processXRef(id, note);
instance.setContent(html);
}
}
}).finally(() => {
instance.enable();
instance.show();
Expand All @@ -547,7 +547,7 @@ <h3 class="no-anchor listing-title">
}
const html = processXRef(null, note);
instance.setContent(html);
}
}
}).finally(() => {
instance.enable();
instance.show();
Expand Down Expand Up @@ -587,7 +587,7 @@ <h3 class="no-anchor listing-title">
height = bottom - top;
}
if (top !== null && height !== null && parent !== null) {
// cook up a div (if necessary) and position it
// cook up a div (if necessary) and position it
let div = window.document.getElementById("code-annotation-line-highlight");
if (div === null) {
div = window.document.createElement("div");
Expand Down Expand Up @@ -718,4 +718,4 @@ <h3 class="no-anchor listing-title">


<script src="../site_libs/quarto-html/zenscroll-min.js"></script>
</body></html>
</body></html>
Loading

0 comments on commit 0f7b800

Please sign in to comment.