From 1a8fa5d2faa0197c3eacc4fd988825c77e22a9dd Mon Sep 17 00:00:00 2001 From: Eric Liang Date: Thu, 8 Aug 2019 23:35:55 -0700 Subject: [PATCH] Clean up top level Ray dir (#5404) --- ci/travis/install-cython-examples.sh | 2 +- {hooks => ci/travis}/pre-push | 0 {dev => doc/dev}/RELEASE_PROCESS.rst | 0 {dev => doc/dev}/get_contributors.py | 0 .../examples}/cython/cython_examples/__init__.py | 0 .../cython/cython_examples/cython_blas.pyx | 0 .../cython/cython_examples/cython_simple.pyx | 0 .../examples}/cython/cython_examples/masked_log.pyx | 0 {examples => doc/examples}/cython/cython_main.py | 0 {examples => doc/examples}/cython/setup.py | 0 .../examples}/hyperopt/hyperopt_adaptive.py | 0 .../examples}/hyperopt/hyperopt_simple.py | 0 {examples => doc/examples}/hyperopt/objective.py | 0 {examples => doc/examples}/lbfgs/driver.py | 0 {examples => doc/examples}/newsreader/server.py | 0 .../parameter_server/async_parameter_server.py | 0 .../examples}/parameter_server/model.py | 0 .../parameter_server/sync_parameter_server.py | 0 {examples => doc/examples}/resnet/cifar_input.py | 0 {examples => doc/examples}/resnet/resnet_main.py | 0 {examples => doc/examples}/resnet/resnet_model.py | 0 {examples => doc/examples}/rl_pong/driver.py | 0 {examples => doc/examples}/streaming/articles.txt | 0 {examples => doc/examples}/streaming/streaming.py | 0 {kubernetes => doc/kubernetes}/example.py | 0 {kubernetes => doc/kubernetes}/head.yaml | 0 {kubernetes => doc/kubernetes}/submit.yaml | 0 {kubernetes => doc/kubernetes}/worker.yaml | 0 {site => doc/site}/Gemfile | 0 {site => doc/site}/README.md | 0 {site => doc/site}/_config.yml | 0 {site => doc/site}/_includes/google-analytics.html | 0 .../site}/_posts/2017-05-17-announcing-ray.markdown | 0 ...017-08-08-plasma-in-memory-object-store.markdown | 0 .../_posts/2017-09-30-ray-0.2-release.markdown | 0 ...python-serialization-with-ray-and-arrow.markdown | 0 .../_posts/2017-11-30-ray-0.3-release.markdown | 0 .../_posts/2018-03-27-ray-0.4-release.markdown | 0 .../_posts/2018-07-06-ray-0.5-release.markdown | 0 ...07-15-parameter-server-in-fifteen-lines.markdown | 0 {site => doc/site}/assets/announcing_ray/graph1.png | Bin {site => doc/site}/assets/announcing_ray/graph2.png | Bin {site => doc/site}/assets/announcing_ray/graph3.png | Bin .../arrow_object.png | Bin .../python_object.png | Bin .../speedups0.png | Bin .../speedups1.png | Bin .../speedups2.png | Bin .../speedups3.png | Bin .../ray_0.2_release/timeline_visualization.png | Bin {site => doc/site}/css/main.css | 0 {site => doc/site}/index.html | 0 doc/source/example-lbfgs.rst | 4 ++-- doc/source/example-newsreader.rst | 6 +++--- doc/source/example-parameter-server.rst | 6 +++--- doc/source/example-resnet.rst | 6 +++--- doc/source/example-rl-pong.rst | 4 ++-- doc/source/example-streaming.rst | 4 ++-- {tools => doc/tools}/install-prometheus-server.sh | 0 setup_hooks.sh | 2 +- 60 files changed, 17 insertions(+), 17 deletions(-) rename {hooks => ci/travis}/pre-push (100%) rename {dev => doc/dev}/RELEASE_PROCESS.rst (100%) rename {dev => doc/dev}/get_contributors.py (100%) rename {examples => doc/examples}/cython/cython_examples/__init__.py (100%) rename {examples => doc/examples}/cython/cython_examples/cython_blas.pyx (100%) rename {examples => doc/examples}/cython/cython_examples/cython_simple.pyx (100%) rename {examples => doc/examples}/cython/cython_examples/masked_log.pyx (100%) rename {examples => doc/examples}/cython/cython_main.py (100%) rename {examples => doc/examples}/cython/setup.py (100%) rename {examples => doc/examples}/hyperopt/hyperopt_adaptive.py (100%) rename {examples => doc/examples}/hyperopt/hyperopt_simple.py (100%) rename {examples => doc/examples}/hyperopt/objective.py (100%) rename {examples => doc/examples}/lbfgs/driver.py (100%) rename {examples => doc/examples}/newsreader/server.py (100%) rename {examples => doc/examples}/parameter_server/async_parameter_server.py (100%) rename {examples => doc/examples}/parameter_server/model.py (100%) rename {examples => doc/examples}/parameter_server/sync_parameter_server.py (100%) rename {examples => doc/examples}/resnet/cifar_input.py (100%) rename {examples => doc/examples}/resnet/resnet_main.py (100%) rename {examples => doc/examples}/resnet/resnet_model.py (100%) rename {examples => doc/examples}/rl_pong/driver.py (100%) rename {examples => doc/examples}/streaming/articles.txt (100%) rename {examples => doc/examples}/streaming/streaming.py (100%) rename {kubernetes => doc/kubernetes}/example.py (100%) rename {kubernetes => doc/kubernetes}/head.yaml (100%) rename {kubernetes => doc/kubernetes}/submit.yaml (100%) rename {kubernetes => doc/kubernetes}/worker.yaml (100%) rename {site => doc/site}/Gemfile (100%) rename {site => doc/site}/README.md (100%) rename {site => doc/site}/_config.yml (100%) rename {site => doc/site}/_includes/google-analytics.html (100%) rename {site => doc/site}/_posts/2017-05-17-announcing-ray.markdown (100%) rename {site => doc/site}/_posts/2017-08-08-plasma-in-memory-object-store.markdown (100%) rename {site => doc/site}/_posts/2017-09-30-ray-0.2-release.markdown (100%) rename {site => doc/site}/_posts/2017-10-15-fast-python-serialization-with-ray-and-arrow.markdown (100%) rename {site => doc/site}/_posts/2017-11-30-ray-0.3-release.markdown (100%) rename {site => doc/site}/_posts/2018-03-27-ray-0.4-release.markdown (100%) rename {site => doc/site}/_posts/2018-07-06-ray-0.5-release.markdown (100%) rename {site => doc/site}/_posts/2018-07-15-parameter-server-in-fifteen-lines.markdown (100%) rename {site => doc/site}/assets/announcing_ray/graph1.png (100%) rename {site => doc/site}/assets/announcing_ray/graph2.png (100%) rename {site => doc/site}/assets/announcing_ray/graph3.png (100%) rename {site => doc/site}/assets/fast_python_serialization_with_ray_and_arrow/arrow_object.png (100%) rename {site => doc/site}/assets/fast_python_serialization_with_ray_and_arrow/python_object.png (100%) rename {site => doc/site}/assets/fast_python_serialization_with_ray_and_arrow/speedups0.png (100%) rename {site => doc/site}/assets/fast_python_serialization_with_ray_and_arrow/speedups1.png (100%) rename {site => doc/site}/assets/fast_python_serialization_with_ray_and_arrow/speedups2.png (100%) rename {site => doc/site}/assets/fast_python_serialization_with_ray_and_arrow/speedups3.png (100%) rename {site => doc/site}/assets/ray_0.2_release/timeline_visualization.png (100%) rename {site => doc/site}/css/main.css (100%) rename {site => doc/site}/index.html (100%) rename {tools => doc/tools}/install-prometheus-server.sh (100%) diff --git a/ci/travis/install-cython-examples.sh b/ci/travis/install-cython-examples.sh index 58f44a15e..7f394d5bb 100755 --- a/ci/travis/install-cython-examples.sh +++ b/ci/travis/install-cython-examples.sh @@ -7,7 +7,7 @@ ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd) echo "PYTHON is $PYTHON" -cython_examples="$ROOT_DIR/../../examples/cython" +cython_examples="$ROOT_DIR/../../doc/examples/cython" if [[ "$PYTHON" == "2.7" ]]; then diff --git a/hooks/pre-push b/ci/travis/pre-push similarity index 100% rename from hooks/pre-push rename to ci/travis/pre-push diff --git a/dev/RELEASE_PROCESS.rst b/doc/dev/RELEASE_PROCESS.rst similarity index 100% rename from dev/RELEASE_PROCESS.rst rename to doc/dev/RELEASE_PROCESS.rst diff --git a/dev/get_contributors.py b/doc/dev/get_contributors.py similarity index 100% rename from dev/get_contributors.py rename to doc/dev/get_contributors.py diff --git a/examples/cython/cython_examples/__init__.py b/doc/examples/cython/cython_examples/__init__.py similarity index 100% rename from examples/cython/cython_examples/__init__.py rename to doc/examples/cython/cython_examples/__init__.py diff --git a/examples/cython/cython_examples/cython_blas.pyx b/doc/examples/cython/cython_examples/cython_blas.pyx similarity index 100% rename from examples/cython/cython_examples/cython_blas.pyx rename to doc/examples/cython/cython_examples/cython_blas.pyx diff --git a/examples/cython/cython_examples/cython_simple.pyx b/doc/examples/cython/cython_examples/cython_simple.pyx similarity index 100% rename from examples/cython/cython_examples/cython_simple.pyx rename to doc/examples/cython/cython_examples/cython_simple.pyx diff --git a/examples/cython/cython_examples/masked_log.pyx b/doc/examples/cython/cython_examples/masked_log.pyx similarity index 100% rename from examples/cython/cython_examples/masked_log.pyx rename to doc/examples/cython/cython_examples/masked_log.pyx diff --git a/examples/cython/cython_main.py b/doc/examples/cython/cython_main.py similarity index 100% rename from examples/cython/cython_main.py rename to doc/examples/cython/cython_main.py diff --git a/examples/cython/setup.py b/doc/examples/cython/setup.py similarity index 100% rename from examples/cython/setup.py rename to doc/examples/cython/setup.py diff --git a/examples/hyperopt/hyperopt_adaptive.py b/doc/examples/hyperopt/hyperopt_adaptive.py similarity index 100% rename from examples/hyperopt/hyperopt_adaptive.py rename to doc/examples/hyperopt/hyperopt_adaptive.py diff --git a/examples/hyperopt/hyperopt_simple.py b/doc/examples/hyperopt/hyperopt_simple.py similarity index 100% rename from examples/hyperopt/hyperopt_simple.py rename to doc/examples/hyperopt/hyperopt_simple.py diff --git a/examples/hyperopt/objective.py b/doc/examples/hyperopt/objective.py similarity index 100% rename from examples/hyperopt/objective.py rename to doc/examples/hyperopt/objective.py diff --git a/examples/lbfgs/driver.py b/doc/examples/lbfgs/driver.py similarity index 100% rename from examples/lbfgs/driver.py rename to doc/examples/lbfgs/driver.py diff --git a/examples/newsreader/server.py b/doc/examples/newsreader/server.py similarity index 100% rename from examples/newsreader/server.py rename to doc/examples/newsreader/server.py diff --git a/examples/parameter_server/async_parameter_server.py b/doc/examples/parameter_server/async_parameter_server.py similarity index 100% rename from examples/parameter_server/async_parameter_server.py rename to doc/examples/parameter_server/async_parameter_server.py diff --git a/examples/parameter_server/model.py b/doc/examples/parameter_server/model.py similarity index 100% rename from examples/parameter_server/model.py rename to doc/examples/parameter_server/model.py diff --git a/examples/parameter_server/sync_parameter_server.py b/doc/examples/parameter_server/sync_parameter_server.py similarity index 100% rename from examples/parameter_server/sync_parameter_server.py rename to doc/examples/parameter_server/sync_parameter_server.py diff --git a/examples/resnet/cifar_input.py b/doc/examples/resnet/cifar_input.py similarity index 100% rename from examples/resnet/cifar_input.py rename to doc/examples/resnet/cifar_input.py diff --git a/examples/resnet/resnet_main.py b/doc/examples/resnet/resnet_main.py similarity index 100% rename from examples/resnet/resnet_main.py rename to doc/examples/resnet/resnet_main.py diff --git a/examples/resnet/resnet_model.py b/doc/examples/resnet/resnet_model.py similarity index 100% rename from examples/resnet/resnet_model.py rename to doc/examples/resnet/resnet_model.py diff --git a/examples/rl_pong/driver.py b/doc/examples/rl_pong/driver.py similarity index 100% rename from examples/rl_pong/driver.py rename to doc/examples/rl_pong/driver.py diff --git a/examples/streaming/articles.txt b/doc/examples/streaming/articles.txt similarity index 100% rename from examples/streaming/articles.txt rename to doc/examples/streaming/articles.txt diff --git a/examples/streaming/streaming.py b/doc/examples/streaming/streaming.py similarity index 100% rename from examples/streaming/streaming.py rename to doc/examples/streaming/streaming.py diff --git a/kubernetes/example.py b/doc/kubernetes/example.py similarity index 100% rename from kubernetes/example.py rename to doc/kubernetes/example.py diff --git a/kubernetes/head.yaml b/doc/kubernetes/head.yaml similarity index 100% rename from kubernetes/head.yaml rename to doc/kubernetes/head.yaml diff --git a/kubernetes/submit.yaml b/doc/kubernetes/submit.yaml similarity index 100% rename from kubernetes/submit.yaml rename to doc/kubernetes/submit.yaml diff --git a/kubernetes/worker.yaml b/doc/kubernetes/worker.yaml similarity index 100% rename from kubernetes/worker.yaml rename to doc/kubernetes/worker.yaml diff --git a/site/Gemfile b/doc/site/Gemfile similarity index 100% rename from site/Gemfile rename to doc/site/Gemfile diff --git a/site/README.md b/doc/site/README.md similarity index 100% rename from site/README.md rename to doc/site/README.md diff --git a/site/_config.yml b/doc/site/_config.yml similarity index 100% rename from site/_config.yml rename to doc/site/_config.yml diff --git a/site/_includes/google-analytics.html b/doc/site/_includes/google-analytics.html similarity index 100% rename from site/_includes/google-analytics.html rename to doc/site/_includes/google-analytics.html diff --git a/site/_posts/2017-05-17-announcing-ray.markdown b/doc/site/_posts/2017-05-17-announcing-ray.markdown similarity index 100% rename from site/_posts/2017-05-17-announcing-ray.markdown rename to doc/site/_posts/2017-05-17-announcing-ray.markdown diff --git a/site/_posts/2017-08-08-plasma-in-memory-object-store.markdown b/doc/site/_posts/2017-08-08-plasma-in-memory-object-store.markdown similarity index 100% rename from site/_posts/2017-08-08-plasma-in-memory-object-store.markdown rename to doc/site/_posts/2017-08-08-plasma-in-memory-object-store.markdown diff --git a/site/_posts/2017-09-30-ray-0.2-release.markdown b/doc/site/_posts/2017-09-30-ray-0.2-release.markdown similarity index 100% rename from site/_posts/2017-09-30-ray-0.2-release.markdown rename to doc/site/_posts/2017-09-30-ray-0.2-release.markdown diff --git a/site/_posts/2017-10-15-fast-python-serialization-with-ray-and-arrow.markdown b/doc/site/_posts/2017-10-15-fast-python-serialization-with-ray-and-arrow.markdown similarity index 100% rename from site/_posts/2017-10-15-fast-python-serialization-with-ray-and-arrow.markdown rename to doc/site/_posts/2017-10-15-fast-python-serialization-with-ray-and-arrow.markdown diff --git a/site/_posts/2017-11-30-ray-0.3-release.markdown b/doc/site/_posts/2017-11-30-ray-0.3-release.markdown similarity index 100% rename from site/_posts/2017-11-30-ray-0.3-release.markdown rename to doc/site/_posts/2017-11-30-ray-0.3-release.markdown diff --git a/site/_posts/2018-03-27-ray-0.4-release.markdown b/doc/site/_posts/2018-03-27-ray-0.4-release.markdown similarity index 100% rename from site/_posts/2018-03-27-ray-0.4-release.markdown rename to doc/site/_posts/2018-03-27-ray-0.4-release.markdown diff --git a/site/_posts/2018-07-06-ray-0.5-release.markdown b/doc/site/_posts/2018-07-06-ray-0.5-release.markdown similarity index 100% rename from site/_posts/2018-07-06-ray-0.5-release.markdown rename to doc/site/_posts/2018-07-06-ray-0.5-release.markdown diff --git a/site/_posts/2018-07-15-parameter-server-in-fifteen-lines.markdown b/doc/site/_posts/2018-07-15-parameter-server-in-fifteen-lines.markdown similarity index 100% rename from site/_posts/2018-07-15-parameter-server-in-fifteen-lines.markdown rename to doc/site/_posts/2018-07-15-parameter-server-in-fifteen-lines.markdown diff --git a/site/assets/announcing_ray/graph1.png b/doc/site/assets/announcing_ray/graph1.png similarity index 100% rename from site/assets/announcing_ray/graph1.png rename to doc/site/assets/announcing_ray/graph1.png diff --git a/site/assets/announcing_ray/graph2.png b/doc/site/assets/announcing_ray/graph2.png similarity index 100% rename from site/assets/announcing_ray/graph2.png rename to doc/site/assets/announcing_ray/graph2.png diff --git a/site/assets/announcing_ray/graph3.png b/doc/site/assets/announcing_ray/graph3.png similarity index 100% rename from site/assets/announcing_ray/graph3.png rename to doc/site/assets/announcing_ray/graph3.png diff --git a/site/assets/fast_python_serialization_with_ray_and_arrow/arrow_object.png b/doc/site/assets/fast_python_serialization_with_ray_and_arrow/arrow_object.png similarity index 100% rename from site/assets/fast_python_serialization_with_ray_and_arrow/arrow_object.png rename to doc/site/assets/fast_python_serialization_with_ray_and_arrow/arrow_object.png diff --git a/site/assets/fast_python_serialization_with_ray_and_arrow/python_object.png b/doc/site/assets/fast_python_serialization_with_ray_and_arrow/python_object.png similarity index 100% rename from site/assets/fast_python_serialization_with_ray_and_arrow/python_object.png rename to doc/site/assets/fast_python_serialization_with_ray_and_arrow/python_object.png diff --git a/site/assets/fast_python_serialization_with_ray_and_arrow/speedups0.png b/doc/site/assets/fast_python_serialization_with_ray_and_arrow/speedups0.png similarity index 100% rename from site/assets/fast_python_serialization_with_ray_and_arrow/speedups0.png rename to doc/site/assets/fast_python_serialization_with_ray_and_arrow/speedups0.png diff --git a/site/assets/fast_python_serialization_with_ray_and_arrow/speedups1.png b/doc/site/assets/fast_python_serialization_with_ray_and_arrow/speedups1.png similarity index 100% rename from site/assets/fast_python_serialization_with_ray_and_arrow/speedups1.png rename to doc/site/assets/fast_python_serialization_with_ray_and_arrow/speedups1.png diff --git a/site/assets/fast_python_serialization_with_ray_and_arrow/speedups2.png b/doc/site/assets/fast_python_serialization_with_ray_and_arrow/speedups2.png similarity index 100% rename from site/assets/fast_python_serialization_with_ray_and_arrow/speedups2.png rename to doc/site/assets/fast_python_serialization_with_ray_and_arrow/speedups2.png diff --git a/site/assets/fast_python_serialization_with_ray_and_arrow/speedups3.png b/doc/site/assets/fast_python_serialization_with_ray_and_arrow/speedups3.png similarity index 100% rename from site/assets/fast_python_serialization_with_ray_and_arrow/speedups3.png rename to doc/site/assets/fast_python_serialization_with_ray_and_arrow/speedups3.png diff --git a/site/assets/ray_0.2_release/timeline_visualization.png b/doc/site/assets/ray_0.2_release/timeline_visualization.png similarity index 100% rename from site/assets/ray_0.2_release/timeline_visualization.png rename to doc/site/assets/ray_0.2_release/timeline_visualization.png diff --git a/site/css/main.css b/doc/site/css/main.css similarity index 100% rename from site/css/main.css rename to doc/site/css/main.css diff --git a/site/index.html b/doc/site/index.html similarity index 100% rename from site/index.html rename to doc/site/index.html diff --git a/doc/source/example-lbfgs.rst b/doc/source/example-lbfgs.rst index 8de2efe7f..1345e0d79 100644 --- a/doc/source/example-lbfgs.rst +++ b/doc/source/example-lbfgs.rst @@ -11,13 +11,13 @@ application, first install these dependencies. You can view the `code for this example`_. -.. _`code for this example`: https://github.com/ray-project/ray/tree/master/examples/lbfgs +.. _`code for this example`: https://github.com/ray-project/ray/tree/master/doc/examples/lbfgs Then you can run the example as follows. .. code-block:: bash - python ray/examples/lbfgs/driver.py + python ray/doc/examples/lbfgs/driver.py Optimization is at the heart of many machine learning algorithms. Much of diff --git a/doc/source/example-newsreader.rst b/doc/source/example-newsreader.rst index 1b87175e1..62ef8afce 100644 --- a/doc/source/example-newsreader.rst +++ b/doc/source/example-newsreader.rst @@ -15,15 +15,15 @@ To run this example, you will need to install NPM and a few python dependencies. To use this example you need to -* In the ``ray/examples/newsreader`` directory, start the server with +* In the ``ray/doc/examples/newsreader`` directory, start the server with ``python server.py``. * Clone the client code with ``git clone https://github.com/ray-project/qreader`` * Start the client with ``cd qreader; npm install; npm run dev`` * You can now add a channel by clicking "Add channel" and for example pasting ``http://news.ycombinator.com/rss`` into the field. * Star some of the articles and dump the database by running - ``sqlite3 newsreader.db`` in a terminal in the ``ray/examples/newsreader`` + ``sqlite3 newsreader.db`` in a terminal in the ``ray/doc/examples/newsreader`` directory and entering ``SELECT * FROM news;``. .. _`frontend`: https://github.com/saqueib/qreader -.. _`code for this example`: https://github.com/ray-project/ray/tree/master/examples/newsreader +.. _`code for this example`: https://github.com/ray-project/ray/tree/master/doc/examples/newsreader diff --git a/doc/source/example-parameter-server.rst b/doc/source/example-parameter-server.rst index f104ca00a..bed1fce33 100644 --- a/doc/source/example-parameter-server.rst +++ b/doc/source/example-parameter-server.rst @@ -11,17 +11,17 @@ dependencies. You can view the `code for this example`_. -.. _`code for this example`: https://github.com/ray-project/ray/tree/master/examples/parameter_server +.. _`code for this example`: https://github.com/ray-project/ray/tree/master/doc/examples/parameter_server The examples can be run as follows. .. code-block:: bash # Run the asynchronous parameter server. - python ray/examples/parameter_server/async_parameter_server.py --num-workers=4 + python ray/doc/examples/parameter_server/async_parameter_server.py --num-workers=4 # Run the synchronous parameter server. - python ray/examples/parameter_server/sync_parameter_server.py --num-workers=4 + python ray/doc/examples/parameter_server/sync_parameter_server.py --num-workers=4 Note that this examples uses distributed actor handles, which are still considered experimental. diff --git a/doc/source/example-resnet.rst b/doc/source/example-resnet.rst index b5c48646b..403772472 100644 --- a/doc/source/example-resnet.rst +++ b/doc/source/example-resnet.rst @@ -24,7 +24,7 @@ Then run the training script that matches the dataset you downloaded. .. code-block:: bash # Train Resnet on CIFAR-10. - python ray/examples/resnet/resnet_main.py \ + python ray/doc/examples/resnet/resnet_main.py \ --eval_dir=/tmp/resnet-model/eval \ --train_data_path=cifar-10-batches-bin/data_batch* \ --eval_data_path=cifar-10-batches-bin/test_batch.bin \ @@ -32,7 +32,7 @@ Then run the training script that matches the dataset you downloaded. --num_gpus=1 # Train Resnet on CIFAR-100. - python ray/examples/resnet/resnet_main.py \ + python ray/doc/examples/resnet/resnet_main.py \ --eval_dir=/tmp/resnet-model/eval \ --train_data_path=cifar-100-binary/train.bin \ --eval_data_path=cifar-100-binary/test.bin \ @@ -101,4 +101,4 @@ object store. .. _`TensorFlow ResNet example`: https://github.com/tensorflow/models/tree/master/resnet .. _`TensorFlow`: https://www.tensorflow.org/install/ -.. _`code for this example`: https://github.com/ray-project/ray/tree/master/examples/resnet +.. _`code for this example`: https://github.com/ray-project/ray/tree/master/doc/examples/resnet diff --git a/doc/source/example-rl-pong.rst b/doc/source/example-rl-pong.rst index d8da3a5c2..c6309bb90 100644 --- a/doc/source/example-rl-pong.rst +++ b/doc/source/example-rl-pong.rst @@ -17,7 +17,7 @@ Then you can run the example as follows. .. code-block:: bash - python ray/examples/rl_pong/driver.py --batch-size=10 + python ray/doc/examples/rl_pong/driver.py --batch-size=10 To run the example on a cluster, simply pass in the flag ``--redis-address=``. @@ -32,7 +32,7 @@ an issue`_. .. _`code`: https://gist.github.com/karpathy/a4166c7fe253700972fcbc77e4ea32c5 .. _`blog post`: http://karpathy.github.io/2016/05/31/rl/ -.. _`code for this example`: https://github.com/ray-project/ray/tree/master/examples/rl_pong +.. _`code for this example`: https://github.com/ray-project/ray/tree/master/doc/examples/rl_pong .. _`submitting an issue`: https://github.com/ray-project/ray/issues **Note** that these times depend on how long the rollouts take, which in turn diff --git a/doc/source/example-streaming.rst b/doc/source/example-streaming.rst index a066f2188..82f3f7360 100644 --- a/doc/source/example-streaming.rst +++ b/doc/source/example-streaming.rst @@ -7,7 +7,7 @@ computes word counts on wikipedia articles. You can view the `code for this example`_. -.. _`code for this example`: https://github.com/ray-project/ray/tree/master/examples/streaming +.. _`code for this example`: https://github.com/ray-project/ray/tree/master/doc/examples/streaming To run the example, you need to install the dependencies @@ -20,7 +20,7 @@ and then execute the script as follows: .. code-block:: bash - python ray/examples/streaming/streaming.py + python ray/doc/examples/streaming/streaming.py For each round of articles read, the script will output the top 10 words in these articles together with their word count: diff --git a/tools/install-prometheus-server.sh b/doc/tools/install-prometheus-server.sh similarity index 100% rename from tools/install-prometheus-server.sh rename to doc/tools/install-prometheus-server.sh diff --git a/setup_hooks.sh b/setup_hooks.sh index 3d92fbfef..0e4fcece4 100755 --- a/setup_hooks.sh +++ b/setup_hooks.sh @@ -1,2 +1,2 @@ #!/bin/bash -ln -s $PWD/hooks/pre-push $PWD/.git/hooks/pre-push +ln -s $PWD/scripts/pre-push $PWD/.git/hooks/pre-push