Skip to content
Open
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
6 changes: 6 additions & 0 deletions doc/source/data/examples.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is used to auto-generate the Examples Gallery page.
# Do not edit the generated examples.rst page directly.
# To request formatting changes to the generated page, file an issue with the Ray docs team.
# To reference the generated page, use examples.html.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

In Sphinx, referencing other documentation pages should be done using the :doc: role (e.g., :doc:/data/examples) rather than hardcoding the .html extension.

Hardcoding .html links is an anti-pattern in Sphinx because:

  1. It bypasses Sphinx's link validation (Sphinx won't warn you if the target file is moved or deleted).
  2. It can break if the documentation is built using a non-HTML builder (like PDF or EPUB).

Consider updating this instruction to recommend the :doc: role:

To reference the generated page, use :doc:/data/examples.

# When adding a new example, include the skill level and framework, if applicable.

text: Below are examples for using Ray Data for batch inference workloads or large-scale data processing with a variety of frameworks and use cases.
columns_to_show:
- frameworks
Expand Down
6 changes: 6 additions & 0 deletions doc/source/serve/examples.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is used to auto-generate the Examples Gallery page.
# Do not edit the generated examples.rst page directly.
# To request formatting changes to the generated page, file an issue with the Ray docs team.
# To reference the generated page, use examples.html.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

In Sphinx, referencing other documentation pages should be done using the :doc: role (e.g., :doc:/serve/examples) rather than hardcoding the .html extension.

Hardcoding .html links is an anti-pattern in Sphinx because:

  1. It bypasses Sphinx's link validation (Sphinx won't warn you if the target file is moved or deleted).
  2. It can break if the documentation is built using a non-HTML builder (like PDF or EPUB).

Consider updating this instruction to recommend the :doc: role:

To reference the generated page, use :doc:/serve/examples.

# When adding a new example, include the skill level and framework, if applicable.

text: Below are tutorials for exploring Ray Serve capabilities and learning how to integrate different modeling frameworks.
groupby: related_technology
examples:
Expand Down
6 changes: 6 additions & 0 deletions doc/source/train/examples.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file is used to auto-generate the Examples Gallery page.
# Do not edit the generated examples.rst page directly.
# To request formatting changes to the generated page, file an issue with the Ray docs team.
# To reference the generated page, use examples.html.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

In Sphinx, referencing other documentation pages should be done using the :doc: role (e.g., :doc:/train/examples) rather than hardcoding the .html extension.

Hardcoding .html links is an anti-pattern in Sphinx because:

  1. It bypasses Sphinx's link validation (Sphinx won't warn you if the target file is moved or deleted).
  2. It can break if the documentation is built using a non-HTML builder (like PDF or EPUB).

Consider updating this instruction to recommend the :doc: role:

To reference the generated page, use :doc:/train/examples.

# When adding a new example, include the skill level and framework, if applicable.

text: Below are examples for using Ray Train with a variety of frameworks and use cases. Ray Train makes it easy to scale out each of these examples to a large cluster of GPUs.
columns_to_show:
- frameworks
Expand Down
Loading