Making our landing pages look better (#1022)

* Teaser in the front page of docs

* TEASER

* try changing README

* spacing

* readme

* power words

* readme obj_id change

* obj_ids change for docs

* Updates to readme.

* Update landing page in documentation.

* Fix linting.
This commit is contained in:
Richard Liaw 2017-09-30 15:37:28 -07:00 committed by Robert Nishihara
parent 0d90a17426
commit d482aa5aed
2 changed files with 51 additions and 2 deletions

View file

@ -11,6 +11,7 @@ Ray
Ray is a flexible, high-performance distributed execution framework.
Installation
------------
@ -21,15 +22,41 @@ Installation
.. _`Mac`: http://ray.readthedocs.io/en/latest/install-on-macosx.html
Example Program
---------------
+------------------------------------------------+----------------------------------------------+
| **Basic Python** | **Distributed with Ray** |
+------------------------------------------------+----------------------------------------------+
|.. code:: python |.. code-block:: python |
| | |
| import time | import time |
| | import ray |
| | |
| | ray.init() |
| | |
| | @ray.remote |
| def f(): | def f(): |
| time.sleep(1) | time.sleep(1) |
| return 1 | return 1 |
| | |
| # Execute f serially. | # Execute f in parallel. |
| results = [f() for i in range(4)] | object_ids = [f.remote() for i in range(4)] |
| | results = ray.get(object_ids) |
+------------------------------------------------+----------------------------------------------+
More Information
----------------
- `Mailing List`_
- `Documentation`_
- `Tutorial`_
- `Blog`_
- `HotOS paper`_
- `Ray HotOS paper`_
.. _`Mailing List`: https://groups.google.com/forum/#!forum/ray-dev
.. _`Documentation`: http://ray.readthedocs.io/en/latest/index.html
.. _`Tutorial`: https://github.com/ray-project/tutorial
.. _`Blog`: https://ray-project.github.io/
.. _`HotOS paper`: https://arxiv.org/abs/1703.03924
.. _`Ray HotOS paper`: https://arxiv.org/abs/1703.03924

View file

@ -3,6 +3,28 @@ Ray
*Ray is a flexible, high-performance distributed execution framework.*
Example Program
---------------
+------------------------------------------------+----------------------------------------------------+
| **Basic Python** | **Distributed with Ray** |
+------------------------------------------------+----------------------------------------------------+
|.. code:: python |.. code-block:: python |
| | |
| import time | import time |
| | import ray |
| | |
| | ray.init() |
| | |
| | @ray.remote |
| def f(): | def f(): |
| time.sleep(1) | time.sleep(1) |
| return 1 | return 1 |
| | |
| # Execute f serially. | # Execute f in parallel. |
| results = [f() for i in range(4)] | results = ray.get([f.remote() for i in range(4)]) |
+------------------------------------------------+----------------------------------------------------+
.. toctree::
:maxdepth: 1
:caption: Installation