2022-01-25 02:00:41 +01:00
|
|
|
/* For Algolia search box to flow-over horizontally into main content*/
|
|
|
|
#site-navigation { overflow-y: visible; }
|
|
|
|
|
|
|
|
/* Center the algolia search bar*/
|
|
|
|
#search-input {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.algolia-autocomplete {
|
|
|
|
width: 100%;
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* sphinx-panels overrides the content width to 1140 for large displays.*/
|
|
|
|
@media (min-width: 1200px) {
|
|
|
|
.container, .container-lg, .container-md, .container-sm, .container-xl {
|
|
|
|
max-width: 1400px !important;
|
|
|
|
}
|
|
|
|
}
|
[docs] new structure (#21776)
This PR consolidates both #21667 and #21759 (look there for features), but improves on them in the following way:
- [x] we reverted renaming of existing projects `tune`, `rllib`, `train`, `cluster`, `serve`, `raysgd` and `data` so that links won't break. I think my consolidation efforts with the `ray-` prefix were a little overeager in that regard. It's better like this. Only the creation of `ray-core` was a necessity, and some files moved into the `rllib` folder, so that should be relatively benign.
- [x] Additionally, we added Algolia `docsearch`, screenshot below. This is _much_ better than our current search. Caveat: there's a sphinx dependency that needs to be replaced (`sphinx-tabs`) by another, newer one (`sphinx-panels`), as the former prevents loading of the `algolia.js` library. Will follow-up in the next PR (hoping this one doesn't get re-re-re-re-reverted).
2022-01-22 00:42:05 +01:00
|
|
|
|
2020-03-22 16:42:20 -07:00
|
|
|
/*Extends the docstring signature box.*/
|
|
|
|
.rst-content dl:not(.docutils) dt {
|
2020-09-08 16:25:23 -07:00
|
|
|
display: block;
|
|
|
|
padding: 10px;
|
|
|
|
word-wrap: break-word;
|
|
|
|
padding-right: 100px;
|
2020-03-22 16:42:20 -07:00
|
|
|
}
|
|
|
|
/*Lists in an admonition note do not have awkward whitespace below.*/
|
|
|
|
.rst-content .admonition-note .section ul {
|
2020-09-08 16:25:23 -07:00
|
|
|
margin-bottom: 0px;
|
2020-03-22 16:42:20 -07:00
|
|
|
}
|
|
|
|
/*Properties become blue (classmethod, staticmethod, property)*/
|
|
|
|
.rst-content dl dt em.property {
|
2020-09-08 16:25:23 -07:00
|
|
|
color: #2980b9;
|
|
|
|
text-transform: uppercase;
|
2020-03-22 16:42:20 -07:00
|
|
|
}
|
2020-04-06 12:16:35 -07:00
|
|
|
|
2020-09-08 16:25:23 -07:00
|
|
|
.rst-content .section ol p,
|
|
|
|
.rst-content .section ul p {
|
|
|
|
margin-bottom: 0px;
|
2020-04-06 12:16:35 -07:00
|
|
|
}
|
2020-04-25 18:25:56 -07:00
|
|
|
|
|
|
|
div.sphx-glr-bigcontainer {
|
2020-09-08 16:25:23 -07:00
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
2020-04-25 18:25:56 -07:00
|
|
|
}
|
|
|
|
|
2020-09-08 16:25:23 -07:00
|
|
|
td.tune-colab,
|
|
|
|
th.tune-colab {
|
2020-04-25 18:25:56 -07:00
|
|
|
border: 1px solid #dddddd;
|
|
|
|
text-align: left;
|
|
|
|
padding: 8px;
|
|
|
|
}
|
2020-09-08 16:25:23 -07:00
|
|
|
|
|
|
|
/* Adjustment to Sphinx Book Theme */
|
|
|
|
.table td {
|
|
|
|
/* Remove row spacing */
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
/* Force full width for all table */
|
|
|
|
width: 136% !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
img.inline-figure {
|
|
|
|
/* Override the display: block for img */
|
|
|
|
display: inherit !important;
|
|
|
|
}
|
2020-09-08 17:00:09 -07:00
|
|
|
|
|
|
|
#version-warning-banner {
|
|
|
|
/* Make version warning clickable */
|
|
|
|
z-index: 1;
|
2020-10-09 00:21:42 -04:00
|
|
|
margin-left: 0;
|
|
|
|
/* 20% is for ToC rightbar */
|
|
|
|
/* 2 * 1.5625em is for horizontal margins */
|
|
|
|
width: calc(100% - 20% - 2 * 1.5625em);
|
2020-09-08 17:00:09 -07:00
|
|
|
}
|
2020-09-16 17:16:50 -07:00
|
|
|
|
2020-09-16 22:41:14 -04:00
|
|
|
span.rst-current-version > span.fa.fa-book {
|
|
|
|
/* Move the book icon away from the top right
|
|
|
|
* corner of the version flyout menu */
|
|
|
|
margin: 10px 0px 0px 5px;
|
|
|
|
}
|
|
|
|
|
2020-09-16 17:16:50 -07:00
|
|
|
/* Adjustment to Version block */
|
|
|
|
.rst-versions {
|
2020-09-19 16:30:35 -04:00
|
|
|
z-index: 1200 !important;
|
2020-09-16 17:16:50 -07:00
|
|
|
}
|
2020-10-20 12:34:39 -04:00
|
|
|
|
|
|
|
dt:target, span.highlighted {
|
|
|
|
background-color: #fbe54e;
|
|
|
|
}
|
2021-03-08 10:35:54 +01:00
|
|
|
|
|
|
|
/* allow scrollable images */
|
|
|
|
.figure {
|
|
|
|
max-width: 100%;
|
|
|
|
overflow-x: auto;
|
|
|
|
}
|
|
|
|
img.horizontal-scroll {
|
|
|
|
max-width: none;
|
2021-11-10 22:20:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.clear-both {
|
|
|
|
clear: both;
|
2021-11-13 22:10:47 +01:00
|
|
|
min-height: 100px;
|
|
|
|
margin-top: 15px;
|
2021-11-10 22:20:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.buttons-float-left {
|
|
|
|
width: 150px;
|
|
|
|
float: left;
|
|
|
|
}
|
2021-11-13 22:10:47 +01:00
|
|
|
|
|
|
|
.buttons-float-right {
|
|
|
|
width: 150px;
|
|
|
|
float: right;
|
2022-01-25 02:00:41 +01:00
|
|
|
}
|