Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/requirements-doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ sphinx-gallery
sphinx-jsonschema
sphinx-tabs
sphinx-version-warning
sphinx_rtd_theme
# TODO(simon): Use sphinx book theme released version
git+https://github.com/executablebooks/sphinx-book-theme.git@0a87d26e214c419d2e6efcadddab4be8ae7b2c21
tabulate
uvicorn
werkzeug
Expand Down
1 change: 0 additions & 1 deletion doc/requirements-rtd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@ alabaster>=0.7,<0.8,!=0.7.5
commonmark==0.8.1
recommonmark==0.5.0
sphinx<2
sphinx-rtd-theme<0.5
readthedocs-sphinx-ext<1.1
43 changes: 30 additions & 13 deletions doc/source/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,32 +1,49 @@
/*Extends the docstring signature box.*/
.rst-content dl:not(.docutils) dt {
display: block;
padding: 10px;
word-wrap: break-word;
padding-right: 100px;
display: block;
padding: 10px;
word-wrap: break-word;
padding-right: 100px;
}
/*Lists in an admonition note do not have awkward whitespace below.*/
.rst-content .admonition-note .section ul {
margin-bottom: 0px
margin-bottom: 0px;
}
/*Properties become blue (classmethod, staticmethod, property)*/
.rst-content dl dt em.property {
color: #2980B9;
text-transform: uppercase
color: #2980b9;
text-transform: uppercase;
}

.rst-content .section ol p, .rst-content .section ul p {
margin-bottom: 0px;
.rst-content .section ol p,
.rst-content .section ul p {
margin-bottom: 0px;
}

div.sphx-glr-bigcontainer {
display: inline-block;
width: 100%
display: inline-block;
width: 100%;
}


td.tune-colab, th.tune-colab {
td.tune-colab,
th.tune-colab {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}

/* 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;
}
Binary file added doc/source/_static/favicon.ico
Binary file not shown.
23 changes: 14 additions & 9 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def __getattr__(cls, name):
),
}

versionwarning_body_selector = "div.document"
versionwarning_body_selector = "#main-content"
sphinx_gallery_conf = {
"examples_dirs": ["../examples",
"tune/_tutorials"], # path to example scripts
Expand Down Expand Up @@ -233,33 +233,38 @@ def __getattr__(cls, name):

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_theme = "sphinx_book_theme"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}
html_theme_options = {
"repository_url": "https://github.com/ray-project/ray",
"use_repository_button": True,
"use_issues_button": True,
"use_edit_page_button": True,
Comment on lines +243 to +245
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should replace our custom "open an issue" button.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice >:)

"path_to_docs": "doc/source",
"home_page_in_toc": True,
}

# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
#html_title = None
html_title = f"Ray v{release}"

# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None

# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None
html_logo = "images/ray_logo.png"

# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None
html_favicon = "_static/favicon.ico"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand All @@ -280,7 +285,7 @@ def __getattr__(cls, name):
#html_use_smartypants = True

# Custom sidebar templates, maps document names to template names.
html_sidebars = {'**': ['index.html']}
# html_sidebars = {'**': ['index.html']}

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down
8 changes: 1 addition & 7 deletions doc/source/ray-overview/basics.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@

.. raw:: html

<embed>
<a href="https://github.com/ray-project/ray"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
</embed>

.. image:: https://github.com/ray-project/ray/raw/master/doc/source/images/ray_header_logo.png

**Ray provides a simple, universal API for building distributed applications.**
Expand All @@ -13,7 +7,7 @@ Ray accomplishes this mission by:

1. Providing simple primitives for building and running distributed applications.
2. Enabling end users to parallelize single machine code, with little to zero code changes.
3. Including a large ecosystem of applications, libraries, and tools on top of the core Ray to enable complex applications.
3. Including a large ecosystem of applications, libraries, and tools on top of the core Ray to enable complex applications.

**Ray Core** provides the simple primitives for application building.

Expand Down
2 changes: 2 additions & 0 deletions doc/source/rllib-algorithms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,11 @@ Tuned examples: `SimpleContextualBandit <https://github.com/ray-project/ray/blob


.. |tensorflow| image:: tensorflow.png
:class: inline-figure
:width: 24

.. |pytorch| image:: pytorch.png
:class: inline-figure
:width: 24


Expand Down
2 changes: 2 additions & 0 deletions doc/source/rllib-toc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ TensorFlow 2.0
RLlib currently runs in ``tf.compat.v1`` mode. This means eager execution is disabled by default, and RLlib imports TF with ``import tensorflow.compat.v1 as tf; tf.disable_v2_behaviour()``. Eager execution can be enabled manually by calling ``tf.enable_eager_execution()`` or setting the ``"eager": True`` trainer config.

.. |tensorflow| image:: tensorflow.png
:class: inline-figure
:width: 16

.. |pytorch| image:: pytorch.png
:class: inline-figure
:width: 16
2 changes: 2 additions & 0 deletions doc/source/rllib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ RLlib provides ways to customize almost all aspects of training, including the `
To learn more, proceed to the `table of contents <rllib-toc.html>`__.

.. |tensorflow| image:: tensorflow.png
:class: inline-figure
:width: 24

.. |pytorch| image:: pytorch.png
:class: inline-figure
:width: 24