forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Clean up doc structure (first part) (ray-project#21667)
- Loading branch information
1 parent
a4581e5
commit 38e46c9
Showing
456 changed files
with
941 additions
and
802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,8 @@ | ||
auto_examples/ | ||
# Generated documentation files | ||
_build | ||
source/_static/thumbs | ||
|
||
source/ray-core/examples/ | ||
source/ray-tune/tutorials/ | ||
source/ray-tune/generated_guides/ | ||
source/ray-data/examples/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,77 @@ | ||
# Ray Documentation | ||
|
||
To compile the documentation, run the following commands from this directory. | ||
Note that Ray must be installed first. | ||
Repository for documentation of the Ray project, hosted at [docs.ray.io](https://docs.ray.io). | ||
|
||
## Installation | ||
|
||
To build the documentation, make sure you have `ray` installed first. | ||
For building the documentation locally, allowing for faster builds, install the _development_ dependencies: | ||
|
||
```bash | ||
pip install -r requirements-dev.txt # development dependencies for faster builds | ||
``` | ||
|
||
If you want to reproduce the production environment and its build, install the _production_ dependencies instead: | ||
|
||
|
||
```bash | ||
pip install -r requirements-doc.txt # readthedocs.org dependencies | ||
```` | ||
|
||
## Building the documentation | ||
|
||
To compile the documentation and open it locally, run the following command from this directory. | ||
|
||
```bash | ||
pip install -r requirements-doc.txt | ||
pip install -U -r requirements-rtd.txt # important for reproducing the deployment environment | ||
make html | ||
open _build/html/index.html | ||
make html && open _build/html/index.html | ||
``` | ||
|
||
To test if there are any build errors with the documentation, do the following. | ||
To build the documentation more strictly, by treating warnings as errors, run the following command | ||
(the `-W` flag is required for this to work): | ||
|
||
```bash | ||
sphinx-build -W -b html -d _build/doctrees source _build/html | ||
``` | ||
|
||
## Building just one sub-project | ||
|
||
Often your changes in documentation just concern one sub-project, such as Tune or Train. | ||
To build just this one sub-project, and ignore the rest (leading to build warnings due to broken references etc.), run the following command: | ||
|
||
```shell | ||
DOC_LIB=<project> sphinx-build -b html -d _build/doctrees source _build/html | ||
``` | ||
where `<project>` is the name of the sub-project and can be any of "cluster", "contribute", | ||
"ray-core", "ray-data", "ray-design-patterns", "ray-more-libs", | ||
"ray-observability", "ray-overview", "ray-rllib", "ray-serve", "ray-train", | ||
"ray-tune", or "ray-workflows". | ||
|
||
## Announcements and includes | ||
|
||
To add new announcements and other messaging to the top or bottom of a documentation page, | ||
check the `_includes` folder first to see if the message you want is already there (like "get help" | ||
or "we're hiring" etc.) | ||
If not, add the template you want and include it accordingly, i.e. with | ||
|
||
```markdown | ||
.. include:: /_includes/<my-announcement> | ||
``` | ||
|
||
This ensures consistent messaging across documentation pages. | ||
|
||
## Checking for broken links | ||
|
||
To check if there are broken links, run the following (we are currently not running this | ||
in the CI since there are false positives). | ||
|
||
```bash | ||
make linkcheck | ||
``` | ||
|
||
## Running doctests | ||
|
||
To run tests for examples shipping with docstrings in Python files, run the following command: | ||
|
||
```shell | ||
make doctest | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
click | ||
colorama | ||
colorful | ||
filelock | ||
flask | ||
flatbuffers | ||
fastapi | ||
jsonschema | ||
mock | ||
numpy | ||
scikit-image | ||
pandas | ||
pickle5 | ||
pillow | ||
pyarrow | ||
pydantic | ||
pygments | ||
pyyaml | ||
redis | ||
sphinx==4.3.2 | ||
sphinx-click | ||
sphinx-copybutton | ||
sphinxemoji | ||
sphinx-gallery | ||
sphinx-jsonschema | ||
sphinx-tabs==3.2.0 | ||
sphinx-version-warning | ||
sphinx-book-theme==0.1.7 | ||
sphinx-external-toc==0.2.3 | ||
sphinxcontrib.yt | ||
starlette | ||
tabulate | ||
uvicorn | ||
werkzeug | ||
git+https://github.com/ray-project/tune-sklearn@master#tune-sklearn | ||
git+https://github.com/ray-project/xgboost_ray@master#egg=xgboost_ray | ||
git+https://github.com/ray-project/lightgbm_ray@main#lightgbm_ray | ||
git+https://github.com/ray-project/ray_lightning#ray_lightning | ||
scikit-optimize | ||
sphinx-sitemap==2.2.0 | ||
myst-parser | ||
myst-nb | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,43 @@ | ||
click | ||
colorama | ||
colorful | ||
filelock | ||
flask | ||
flatbuffers | ||
fastapi | ||
jsonschema | ||
mock | ||
numpy | ||
scikit-image | ||
pandas | ||
pickle5 | ||
pillow | ||
pyarrow | ||
pydantic | ||
Pygments==2.3.1 | ||
setuptools==41.0.1 | ||
docutils==0.16 | ||
mock==1.0.1 | ||
pillow==8.3.2 | ||
alabaster>=0.7,<0.8,!=0.7.5 | ||
commonmark==0.8.1 | ||
recommonmark==0.5.0 | ||
pyyaml | ||
recommonmark | ||
redis | ||
sphinx==3.0.4 | ||
readthedocs-sphinx-ext<1.1 | ||
sphinx-click | ||
sphinx-copybutton | ||
sphinxemoji | ||
sphinx-gallery | ||
sphinx-jsonschema | ||
sphinx-tabs | ||
sphinx-version-warning | ||
sphinx-book-theme==0.0.42 | ||
sphinx-external-toc==0.2.3 | ||
sphinxcontrib.yt | ||
starlette | ||
tabulate | ||
uvicorn==0.16.0 | ||
werkzeug | ||
git+https://github.com/ray-project/tune-sklearn@master#tune-sklearn | ||
git+https://github.com/ray-project/xgboost_ray@master#egg=xgboost_ray | ||
git+https://github.com/ray-project/lightgbm_ray@main#lightgbm_ray | ||
git+https://github.com/ray-project/ray_lightning#ray_lightning | ||
scikit-optimize | ||
sphinx-sitemap==2.2.0 | ||
myst-parser | ||
myst-nb |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.