-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add a landing page for the documentation
To make thinks shiny and cool, add a landing page instead of using the Sphinx index page. Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
- Loading branch information
Showing
10 changed files
with
789 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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(); |
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.