Skip to content

Commit

Permalink
Add a landing page for the documentation
Browse files Browse the repository at this point in the history
To make thinks shinny and cool, add a landing page instead of using the
Sphinx index page.

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
  • Loading branch information
pablogsal committed Jun 30, 2023
1 parent 0074091 commit 33bfff2
Show file tree
Hide file tree
Showing 9 changed files with 774 additions and 0 deletions.
462 changes: 462 additions & 0 deletions docs/_static/css/custom.css

Large diffs are not rendered by default.

Binary file added docs/_static/images/box.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 docs/_static/images/locals.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 docs/_static/images/native.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 docs/_static/images/python.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 docs/_static/images/stack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions docs/_static/js/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
function reveal() {
var classes = [".reveal_l", ".reveal_r"];
classes.map(function (c) {
var reveals = document.querySelectorAll(c);
for (var i = 0; i < reveals.length; i++) {
var windowHeight = window.innerHeight;
var elementTop = reveals[i].getBoundingClientRect().top;
var elementVisible = 150;
if (elementTop < windowHeight - elementVisible) {
reveals[i].classList.add("active");
} else {
reveals[i].classList.remove("active");
}
}
});
}
window.addEventListener("scroll", reveal);
// To check the scroll position on page load
reveal();
288 changes: 288 additions & 0 deletions docs/_templates/index.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"sidebar_hide_name": True,
}

templates_path = ["_templates"]
html_additional_pages = {
"index": "index.html",
}

# -- Options for smartquotes ----------------------------------------------------------

# Disable the conversion of dashes so that long options like "--find-links" won't
Expand Down

0 comments on commit 33bfff2

Please sign in to comment.