Skip to content

Commit

Permalink
Making our landing pages look better (ray-project#1022)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
richardliaw authored and robertnishihara committed Sep 30, 2017
1 parent 0d90a17 commit d482aa5
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
31 changes: 29 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Ray
Ray is a flexible, high-performance distributed execution framework.


Installation
------------

Expand All @@ -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
22 changes: 22 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d482aa5

Please sign in to comment.