Skip to content

Commit

Permalink
Revert "Revert "[docs] new landing page"" (ray-project#34534)
Browse files Browse the repository at this point in the history
Signed-off-by: elliottower <[email protected]>
  • Loading branch information
maxpumperla authored and elliottower committed Apr 22, 2023
1 parent c500638 commit 5f456ed
Show file tree
Hide file tree
Showing 20 changed files with 494 additions and 101 deletions.
28 changes: 0 additions & 28 deletions doc/source/_includes/_contribute.md

This file was deleted.

114 changes: 113 additions & 1 deletion doc/source/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@ div.navbar-brand-box {
}
}

@media screen and (max-width: 767px) {
.remove-mobile {
display: none;
}
}

@media screen and (max-width: 767px) {
.row-2-column {
flex-direction: column;
margin-top: 20px;
}
}

/* Make Algolia search box scrollable */
.algolia-autocomplete .ds-dropdown-menu {
height: 60vh !important;
Expand Down Expand Up @@ -520,4 +533,103 @@ span.rst-current-version > span.fa.fa-book {
/* Adjustment to Version block */
.rst-versions {
z-index: 1200 !important;
}
}

.image-header {
display: flex;
flex-direction: row;
align-items: center;
padding-left: 16px;
padding-right:16px;
gap: 16px;
}

.info-box {
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
border-radius: 8px;
padding: 20px;
}

.info-box:hover{
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
}

.no-underline{
text-decoration: none;
}
.no-underline:hover{
text-decoration: none;
}

.icon-hover:hover{
height: 30px ;
width: 30px;
}

.info-box-2 {
background-color: #F9FAFB;
border-radius: 8px;
padding-right: 16px;
padding-left: 16px;
padding-bottom: 24px;
padding-top: 4px;
}


.bold-link {
color: #000000 !important;
font-weight: 600;
}

.community-box {
border: 1px solid #D2DCE6;
border-radius: 8px;
display: flex;
margin-bottom: 16px;
}

.community-box:hover {
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.05);
text-decoration: none;
}

.community-box p {
margin-top: 1rem !important;
}

.tab-pane pre {
margin: 0;
padding: 0;
max-height: 252px;
overflow-y: auto;
}

.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
grid-gap: 16px;
}

.grid-item {
padding: 20px;
}


.nav-pills {
background-color: #F9FAFB;
color: #000000;
padding: 8px;
border-bottom:none;
border-radius: 8px;
}

.nav-pills .nav-link.active {
background-color: #FFFFFF !important;
box-shadow: 0px 3px 14px 2px rgba(3,28,74,0.12);
border-radius: 8px;
padding: 20px;
color: #000000;
font-weight: 500;
}


Binary file added doc/source/_static/img/AIR.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 doc/source/_static/img/Core.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 doc/source/_static/img/LandingPageBG.jpg
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 doc/source/_static/img/chat.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 doc/source/_static/img/code.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 doc/source/_static/img/colab.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 doc/source/_static/img/download.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 doc/source/_static/img/github-fill.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 doc/source/_static/img/mail.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 doc/source/_static/img/meetup.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 doc/source/_static/img/pen.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 doc/source/_static/img/ray_logo.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 doc/source/_static/img/rayclusters.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 doc/source/_static/img/slack-fill.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 doc/source/_static/img/twitter-fill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 0 additions & 20 deletions doc/source/_static/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,23 +102,3 @@ window.onload = function() {
localStorage.removeItem("scroll");
}
};


let firstLink = document.getElementsByClassName("caption")[0];
firstLink.classList.add("toctree-l1", "current");
firstLink.style.textTransform = "none";
firstLink.style.fontWeight = "normal";
firstLink.innerText = "";

let home = document.createElement("a");
home.classList.add("reference", "internal");

const version = window.location.href.split("/")[4];
const res = (version === "latest" || version === "master") ? version : "latest";

home.href = "https://docs.ray.io/en/" + res + "/index.html";
home.textContent = "Ray Docs Home";

home.style = firstLink.style;
home.style.color = "#5a5a5a";
firstLink.appendChild(home);
2 changes: 1 addition & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
"use_issues_button": True,
"use_edit_page_button": True,
"path_to_docs": "doc/source",
"home_page_in_toc": False,
"home_page_in_toc": True,
"show_navbar_depth": 1,
"announcement": "<div class='topnav'></div>",
}
Expand Down
Loading

0 comments on commit 5f456ed

Please sign in to comment.