-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deployed 6c15eb3 with MkDocs version: 1.6.0
- Loading branch information
1 parent
5b3c6ce
commit bc94318
Showing
30 changed files
with
1,531 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// Description: Open external links in a new tab and PDF links in a new tab | ||
// Based on: https://jekyllcodex.org/without-plugin/new-window-fix/ | ||
|
||
// Open external links in a new window | ||
function external_new_window() { | ||
for(let c = document.getElementsByTagName("a"), a = 0; a < c.length; a++) { | ||
let b = c[a]; | ||
if(b.getAttribute("href") && b.host !== location.host) { | ||
b.target = "_blank"; | ||
b.rel = "noopener"; | ||
} | ||
} | ||
} | ||
|
||
// Open PDF links in a new window | ||
function pdf_new_window() { | ||
if (!document.getElementsByTagName) { | ||
return false; | ||
} | ||
|
||
const extensions = ['.pdf', '.doc', '.docx', '.json', '.xls', '.xlsx', '.ppt', '.pptx', '.zip', '.rar', '.tar', '.gz', '.7z', '.bz2', '.xz', '.tgz', '.tar.gz']; | ||
let links = document.getElementsByTagName("a"); | ||
|
||
for (let eleLink = 0; eleLink < links.length; eleLink++) { | ||
let href = links[eleLink].href.toLowerCase(); // Convert href to lowercase for case-insensitive matching | ||
|
||
if (extensions.some(ext => href.endsWith(ext))) { | ||
links[eleLink].onclick = function() { | ||
window.open(this.href); | ||
return false; | ||
} | ||
} | ||
} | ||
} | ||
|
||
function apply_rules() { | ||
external_new_window(); | ||
pdf_new_window(); | ||
} | ||
|
||
if (typeof document$ !== "undefined") { | ||
// Compatibility with mkdocs-material's instant loading feature | ||
document$.subscribe(function() { | ||
apply_rules(); | ||
}); | ||
} else { | ||
// For browsers without mkdocs-material's instant loading feature | ||
document.addEventListener("DOMContentLoaded", function() { | ||
apply_rules(); | ||
}); | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Python API Reference | ||
|
||
::: celldega.nbhd | ||
::: celldega.pre | ||
::: celldega.viz | ||
handler: python | ||
|
Oops, something went wrong.