Skip to content

Commit

Permalink
[Docs] Fix anyscale template utm tracking (#50236)
Browse files Browse the repository at this point in the history
Verified fixes locally:

<img width="1668" alt="Screenshot 2025-02-04 at 5 35 20 PM"
src="https://github.com/user-attachments/assets/4f776122-5ef0-466c-b668-f5bf49c4c68c"
/>
<img width="898" alt="Screenshot 2025-02-04 at 5 35 10 PM"
src="https://github.com/user-attachments/assets/3c214fb4-820a-4c87-9fbb-6dfd1d4aeea9"
/>
<img width="1670" alt="Screenshot 2025-02-04 at 5 32 22 PM"
src="https://github.com/user-attachments/assets/a3706aa9-070b-4ab8-b1eb-a7756ab8e35b"
/>
<img width="621" alt="Screenshot 2025-02-04 at 5 32 15 PM"
src="https://github.com/user-attachments/assets/34d8ae19-d893-497a-a024-3cf24a1bdaff"
/>
<img width="1665" alt="Screenshot 2025-02-04 at 5 31 56 PM"
src="https://github.com/user-attachments/assets/4b56b779-f5c8-46d8-83b0-6084c297c392"
/>
<img width="402" alt="Screenshot 2025-02-04 at 5 31 49 PM"
src="https://github.com/user-attachments/assets/ee0c7234-9c9a-4055-b61f-c3222484189b"
/>

<!-- Thank you for your contribution! Please review
https://github.com/ray-project/ray/blob/master/CONTRIBUTING.rst before
opening a pull request. -->

<!-- Please add a reviewer to the assignee section when you create a PR.
If you don't have the access to it, we will shortly find a reviewer and
assign them to your PR. -->

## Why are these changes needed?

Markdown URLs with "&" incorrectly rendered to "&amp", which is breaking
utm tracking

e.g. Clicking on "Run quickstart" on
https://docs.ray.io/en/latest/data/examples/pytorch_resnet_batch_prediction.html
renders
"https://www.anyscale.com/ray-on-anyscale?utm_source=ray_docs&amp;utm_medium=docs&amp;utm_campaign=image-classification-batch-inference-with-pytorch&amp;redirectTo=/v2/template-preview/ray-data-batch-image-classification"

## Related issue number

<!-- For example: "Closes #1234" -->

## Checks

- [ ] I've signed off every commit(by using the -s flag, i.e., `git
commit -s`) in this PR.
- [ ] I've run `scripts/format.sh` to lint the changes in this PR.
- [ ] I've included any doc changes needed for
https://docs.ray.io/en/master/.
- [ ] I've added any new APIs to the API Reference. For example, if I
added a
method in Tune, I've added it in `doc/source/tune/api/` under the
           corresponding `.rst` file.
- [ ] I've made sure the tests are passing. Note that there might be a
few flaky tests, see the recent failures at https://flakey-tests.ray.io/
- Testing Strategy
   - [ ] Unit tests
   - [ ] Release tests
   - [ ] This PR is not tested :(

---------

Signed-off-by: Chris Zhang <[email protected]>
  • Loading branch information
chris-ray-zhang authored Feb 5, 2025
1 parent e77e1fa commit a3d6bf8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"source": [
"# Image Classification Batch Inference with PyTorch\n",
"\n",
"[![try-anyscale-quickstart-image-classification-batch-inference-with-pytorch](../../_static/img/run-quickstart-anyscale.svg)](https://www.anyscale.com/ray-on-anyscale?utm_source=ray_docs&utm_medium=docs&utm_campaign=image-classification-batch-inference-with-pytorch&redirectTo=/v2/template-preview/ray-data-batch-image-classification)\n",
"<a href=\"https://www.anyscale.com/ray-on-anyscale?utm_source=ray_docs&utm_medium=docs&utm_campaign=image-classification-batch-inference-with-pytorch&redirectTo=/v2/template-preview/ray-data-batch-image-classification\">\n",
" <img src=\"../../_static/img/run-quickstart-anyscale.svg\" alt=\"try-anyscale-quickstart-image-classification-batch-inference-with-pytorch\">\n",
"</a>\n",
"<br></br>\n",
"\n",
"In this example, we will introduce how to use [Ray Data](data) for **large-scale batch inference with multiple GPU workers.**\n",
"\n",
Expand Down
5 changes: 4 additions & 1 deletion doc/source/ray-overview/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,10 @@ Learn more about Ray RLlib

## Ray Core Quickstart

[![try-anyscale-quickstart-ray-quickstart](../_static/img/run-quickstart-anyscale.svg)](https://www.anyscale.com/ray-on-anyscale?utm_source=ray_docs&utm_medium=docs&utm_campaign=ray-core-quickstart&redirectTo=/v2/template-preview/workspace-intro)
<a href="https://www.anyscale.com/ray-on-anyscale?utm_source=ray_docs&utm_medium=docs&utm_campaign=ray-core-quickstart&redirectTo=/v2/template-preview/workspace-intro">
<img src="../_static/img/run-quickstart-anyscale.svg" alt="try-anyscale-quickstart-ray-quickstart">
</a>
<br></br>

Turn functions and classes easily into Ray tasks and actors,
for Python and Java, with simple primitives for building and running distributed applications.
Expand Down
6 changes: 4 additions & 2 deletions doc/source/serve/tutorials/stable-diffusion.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ orphan: true

# Serve a Stable Diffusion Model

[![try-anyscale-quickstart-ray-serve-stable-diffusion-quickstart](../../_static/img/run-quickstart-anyscale.svg)](https://console.anyscale.com/register/ha?utm_source=ray_docs&utm_medium=docs&utm_campaign=ray-serve-stable-diffusion-quickstart&redirectTo=/v2/template-preview/serve-stable-diffusion-v2)

<a href="https://www.anyscale.com/ray-on-anyscale?utm_source=ray_docs&utm_medium=docs&utm_campaign=ray-serve-stable-diffusion-quickstart&redirectTo=/v2/template-preview/serve-stable-diffusion-v2">
<img src="../../_static/img/run-quickstart-anyscale.svg" alt="try-anyscale-quickstart-ray-serve-stable-diffusion-quickstart">
</a>
<br></br>
This example runs a Stable Diffusion application with Ray Serve.

To run this example, install the following:
Expand Down

0 comments on commit a3d6bf8

Please sign in to comment.