[docs][serve] Fix Serve LLM examples sidebar doc links 404#64209
[docs][serve] Fix Serve LLM examples sidebar doc links 404#64209ryankert01 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces mechanism to rewrite legacy deployment serve LLM links and generate HTML redirects for legacy templates. The feedback highlights three key improvement opportunities: making the URL matching regex more robust by using a wildcard instead of hardcoded version segments, fixing a potential redirect bug caused by HTML-escaping inside a JavaScript block (suggesting json.dumps instead), and handling double content segments in legacy paths within canonicalize_collection_href to prevent broken links.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
44d8747 to
b7b7e38
Compare
3345b49 to
ee5bbeb
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ee5bbeb. Configure here.
ee5bbeb to
60cb170
Compare
|
@dstrodtman can you review this ? |
Signed-off-by: Ryan Huang <ryankert01@gmail.com>
44dd30b to
cbc27fd
Compare

Why?
When clicked on the sidebar of ray serve -> Serving llms -> examples -> serve small llms(or any others in this dir), they 404ed.
Summary
Fix stale Serve LLM tutorial links after
deployment-serve-llmmoved tosphinx_collectionsoutput under/_collections. Clicking the Serve LLM entries from the sidebar could still open the old path and 404._collectionspages.serve/tutorials/deployment-serve-llm/...paths.Root Cause
The tutorials should be preserved. The in-tree copies were removed after the collection move, but some generated/sidebar links still used the old path shape.
Validation
python -m compileall -q doc/source/conf.py doc/source/custom_directives.pygit diff --check -- doc/source/conf.py doc/source/custom_directives.pycontentlegacy paths.doc/source/by config.